Fast matching statistics in small space

Djamal Belazzougui, Fabio Cunial, Olgert Denas, Marc Herbstritt
2018 Symposium on Experimental and Efficient Algorithms  
Computing the matching statistics of a string S with respect to a string T on an alphabet of size σ is a fundamental primitive for a number of large-scale string analysis applications, including the comparison of entire genomes, for which space is a pressing issue. This paper takes from theory to practice an existing algorithm that uses just O(|T | log σ) bits of space, and that computes a compact encoding of the matching statistics array in O(|S| log σ) time. The techniques used to speed up
more » ... algorithm are of general interest, since they optimize queries on the existence of a Weiner link from a node of the suffix tree, and parent operations after unsuccessful Weiner links. Thus, they can be applied to other matching statistics algorithms, as well as to any suffix tree traversal that relies on such calls. Some of our optimizations yield a matching statistics implementation that is up to three times faster than a plain version of the algorithm, depending on the similarity between S and T . In genomic datasets of practical significance we achieve speedups of up to 1.8, but our fastest implementations take on average twice the time of an existing code based on the LCP array. The key advantage is that our implementations need between one half and one fifth of the competitor's memory, and they approach comparable running times when S and T are very similar.
doi:10.4230/lipics.sea.2018.17 dblp:conf/wea/BelazzouguiCD18 fatcat:bkabknslwbgqtdzpjogw5i3di4