[Paper Review] Self-Index based on LZ77 (thesis)
This thesis presents the first self-index based on LZ77 for highly repetitive texts, using a novel LZ-End parsing variant that enables efficient random substring extraction. It achieves superior compression (up to 2× better than RLCSA), faster construction (35% of RLCSA time, 60% space), and faster search for short patterns, outperforming the state-of-the-art in key metrics for repetitive data.
Domains like bioinformatics, version control systems, collaborative editing systems (wiki), and others, are producing huge data collections that are very repetitive. That is, there are few differences between the elements of the collection. This fact makes the compressibility of the collection extremely high. For example, a collection with all different versions of a Wikipedia article can be compressed up to the 0.1% of its original space, using the Lempel-Ziv 1977 (LZ77) compression scheme. Many of these repetitive collections handle huge amounts of text data. For that reason, we require a method to store them efficiently, while providing the ability to operate on them. The most common operations are the extraction of random portions of the collection and the search for all the occurrences of a given pattern inside the whole collection. A self-index is a data structure that stores a text in compressed form and allows to find the occurrences of a pattern efficiently. On the other hand, self-indexes can extract any substring of the collection, hence they are able to replace the original text. One of the main goals when using these indexes is to store them within main memory. In this thesis we present a scheme for random text extraction from text compressed with a Lempel-Ziv parsing. Additionally, we present a variant of LZ77, called LZ-End, that efficiently extracts text using space close to that of LZ77. The main contribution of this thesis is the first self-index based on LZ77/LZ-End and oriented to repetitive texts, which outperforms the state of the art (the RLCSA self-index) in many aspects. Finally, we present a corpus of repetitive texts, coming from several application domains. We aim at providing a standard set of texts for research and experimentation, hence this corpus is publicly available.
Motivation & Objective
- Address the need for efficient storage and random access in highly repetitive text collections, such as versioned documents, DNA sequences, and wikis.
- Overcome the limitation of traditional self-indexes that rely on fixed-context prediction and fail to capture long-range repetitions in repetitive data.
- Design a self-index based on LZ77 that supports both random substring extraction and pattern search while using space close to the compressed text.
- Develop a new parsing scheme, LZ-End, to enable fast and space-efficient random access to LZ77-compressed texts.
- Create a publicly available corpus of repetitive texts to standardize experimentation in this domain.
Proposed method
- Introduce LZ-End, a variant of LZ77 that stores only the end positions of phrases, enabling efficient backward traversal for random substring extraction.
- Design a self-index structure built on LZ-End parsings, using wavelet trees and compressed bitmaps to support backward search and rank/select operations.
- Optimize the index construction process to use only 60% of the space and 35% of the time required by RLCSA, leveraging the compressibility of repetitive data.
- Implement a wavelet tree over the depth of LCP arrays to support efficient range queries and locate operations.
- Use compressed bitmaps (e.g., RRR-compressed) for the wavelet tree components to reduce space overhead without sacrificing performance.
- Integrate the index with a new parsing algorithm that allows incremental construction and supports dynamic updates in theory.
Experimental results
Research questions
- RQ1Can LZ77-based self-indexes be made practical for random access and pattern search, despite LZ77's inherent lack of random access?
- RQ2Can a novel LZ77 variant (LZ-End) be designed to enable constant-time per-symbol extraction while maintaining space efficiency?
- RQ3How does an LZ77-based self-index compare to the state-of-the-art RLCSA in terms of compression, construction time, and query performance on repetitive texts?
- RQ4Can the space overhead of the self-index be reduced below that of existing LZ-based indexes, especially for highly repetitive data?
- RQ5Can a standardized, publicly available corpus of repetitive texts be established to serve as a benchmark for future research in this domain?
Key findings
- The proposed LZ-End parsing enables random substring extraction at over 2 million characters per second, more than double the speed of standard LZ77.
- The self-index based on LZ-End achieves up to 2× better compression than RLCSA on DNA and Wikipedia collections, with space usage close to the compressed text size.
- Index construction is 35% faster and uses only 60% of the space required by RLCSA, making it highly efficient for large-scale repetitive text collections.
- Pattern search for short patterns (≤10 characters) is faster than with RLCSA, and the space/time trade-off is favorable for longer patterns.
- The index outperforms RLCSA in all major metrics except for the 'exists' query, where RLCSA remains faster, especially for non-existent patterns.
- A public corpus of repetitive texts from bioinformatics, version control, and wikis is made available at http://pizzachili.dcc.uchile.cl/repcorpus.html to standardize benchmarking.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.