[Paper Review] Bidirectional Text Compression in External Memory
This paper presents plcpcomp, the first external memory bidirectional text compression algorithm that leverages the permuted longest common prefix (PLCP) array and suffix array to achieve high-speed compression on massive datasets (up to 128 GiB) using only 16 GiB of RAM. It outperforms all known LZ77 compressors in throughput while producing a comparable number of factors, and introduces the first external memory decompressor for bidirectional schemes.
Bidirectional compression algorithms work by substituting repeated substrings by references that, unlike in the famous LZ77-scheme, can point to either direction. We present such an algorithm that is particularly suited for an external memory implementation. We evaluate it experimentally on large data sets of size up to 128 GiB (using only 16 GiB of RAM) and show that it is significantly faster than all known LZ77 compressors, while producing a roughly similar number of factors. We also introduce an external memory decompressor for texts compressed with any uni- or bidirectional compression scheme.
Motivation & Objective
- To design an efficient external memory compression algorithm for large-scale text datasets that outperforms existing LZ77-based methods.
- To adapt the bidirectional compression scheme lcpcomp for external memory by optimizing memory access patterns.
- To develop the first external memory decompressor capable of decoding files compressed with any bidirectional scheme.
- To evaluate the performance of the proposed algorithm on real-world datasets of up to 128 GiB, focusing on throughput, disk usage, and factor count.
Proposed method
- The algorithm uses the suffix array (SA) and the permuted longest common prefix (PLCP) array to guide bidirectional parsing, enabling references to both preceding and following substrings.
- It performs a single scan of the text and the PLCP and SA arrays stored in external memory, minimizing random I/Os.
- The PLCP array is computed via a modified version of the pEM-BWT algorithm, with the Φ array generated as a side product.
- The compression process greedily selects the longest bidirectional match using the PLCP array to guide factorization.
- The decompression algorithm reconstructs the original text by resolving dependencies in the factor list through multiple external sorting steps.
- The decompressor is designed to handle any bidirectional compression output, not just plcpcomp, by analyzing the dependency graph of factors.
Experimental results
Research questions
- RQ1Can a bidirectional compression scheme be efficiently implemented in external memory with minimal I/O overhead?
- RQ2How does the performance of plcpcomp compare to existing LZ77 compressors in terms of throughput and memory usage on large datasets?
- RQ3What is the impact of the parameter ξ on the number of factors and decompression efficiency?
- RQ4Can an external memory decompressor be designed that works universally for all bidirectional compression schemes?
- RQ5How does the decompression performance scale with increasing input size?
Key findings
- plcpcomp achieves a throughput of up to 1.1 GiB/h on 64 GiB of commoncrawl data, significantly outperforming EM-LPF and other LZ77 compressors.
- The algorithm reduces disk usage compared to EM-LPF, with maximum disk usage scaling linearly with input size.
- plcpcomp produces a number of factors comparable to LZ77, with only a slight increase in literal factors for larger ξ values.
- The decompression throughput decreases by only 1% when scaling from 32 GiB to 64 GiB of commoncrawl data, indicating strong scalability.
- The decompressor requires multiple external sorting steps, making it significantly slower than the compression phase, but remains feasible for large-scale data.
- The choice of ξ affects the trade-off between number of referencing factors and total factor count, with higher ξ reducing referencing factors and disk usage during decompression.
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.