Approximate String Matching with Compressed Indexes
Open Access
- 10 September 2009
- journal article
- research article
- Published by MDPI AG in Algorithms
- Vol. 2 (3) , 1105-1136
Abstract
A compressed full-text self-index for a text T is a data structure requiring reduced space and able to search for patterns P in T. It can also reproduce any substring of T, thus actually replacing T. Despite the recent explosion of interest on compressed indexes, there has not been much progress on functionalities beyond the basic exact search. In this paper we focus on indexed approximate string matching (ASM), which is of great interest, say, in bioinformatics. We study ASM algorithms for Lempel-Ziv compressed indexes and for compressed suffix trees/arrays. Most compressed self-indexes belong to one of these classes. We start by adapting the classical method of partitioning into exact search to self-indexes, and optimize it over a representative of either class of self-index. Then, we show that a Lempel- Ziv index can be seen as an extension of the classical q-samples index. We give new insights on this type of index, which can be of independent interest, and then apply them to a Lempel- Ziv index. Finally, we improve hierarchical verification, a successful technique for sequential searching, so as to extend the matches of pattern pieces to the left or right. Most compressed suffix trees/arrays support the required bidirectionality, thus enabling the implementation of the improved technique. In turn, the improved verification largely reduces the accesses to the text, which are expensive in self-indexes. We show experimentally that our algorithms are competitive and provide useful space-time tradeoffs compared to classical indexes.Keywords
This publication has 49 references indexed in Scilit:
- Average-optimal single and multiple approximate string matchingACM Journal of Experimental Algorithmics, 2004
- New text indexing functionalities of the compressed suffix arraysJournal of Algorithms, 2003
- Very fast and simple approximate string matchingInformation Processing Letters, 1999
- A fast bit-vector algorithm for approximate string matching based on dynamic programmingJournal of the ACM, 1999
- A sublinear algorithm for approximate keyword searchingAlgorithmica, 1994
- Fast text searchingCommunications of the ACM, 1992
- Finding approximate patterns in stringsJournal of Algorithms, 1985
- Compression of individual sequences via variable-rate codingIEEE Transactions on Information Theory, 1978
- A universal algorithm for sequential data compressionIEEE Transactions on Information Theory, 1977
- On the Complexity of Finite SequencesIEEE Transactions on Information Theory, 1976