Back to Search Start Over

Implementing the LZ-index.

Authors :
Navarro, Gonzalo
Source :
Journal of Experimental Algorithmics (JEA); Feb2009, Vol. 13, p1.2-1.49, 1p
Publication Year :
2009

Abstract

The LZ-index is a theoretical proposal of a lightweight data structure for text indexing, based on the Ziv-Lempel trie. If a text of u characters over an alphabet of size σ is compressible to n symbols using the LZ78 algorithm, then the LZ-index takes 4n log<subscript>2</subscript> n (1+o(1)) bits of space (that is, 4 times the entropy of the text) and reports the R occurrences of a pattern of length m in worst case time O(m<superscript>3</superscript> log σ + (m + R)log n). In this paper we face the challenge of obtaining a practical implementation of the LZ-index, which is not at all straightforward from the theoretical proposal. We end up with a prototype that takes the promised space and has average search time O(σ m log u + &sqrt;uR). This prototype is shown to be faster than other competing approaches when we take into account the time to report the positions or text contexts of the occurrences found. We show in detail the process of implementing the index, which involves interesting lessons of theory versus practice. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
10846654
Volume :
13
Database :
Complementary Index
Journal :
Journal of Experimental Algorithmics (JEA)
Publication Type :
Academic Journal
Accession number :
73455624
Full Text :
https://doi.org/10.1145/1412228.1412230