Skip to main content
QUICK REVIEW

[Paper Review] Restructuring Compressed Texts without Explicit Decompression

Keisuke Goto, Shirou Maruyama|arXiv (Cornell University)|Jul 14, 2011
Algorithms and Data CompressionComputer Science27 references5 citations
TL;DR

This paper presents the first polynomial-time algorithms for restructuring compressed texts without explicit decompression, enabling efficient conversion between various compressed representations—such as LZ77, LZ78, RLE, SLPs, and grammar-based formats—while maintaining theoretical speedups over decompression-based methods. The key contribution is that all conversions run in time polynomial in the sizes of the compressed input and output, achieving exponential speedups in the worst case compared to decompression-first approaches.

ABSTRACT

We consider the problem of {\em restructuring} compressed texts without explicit decompression. We present algorithms which allow conversions from compressed representations of a string $T$ produced by any grammar-based compression algorithm, to representations produced by several specific compression algorithms including LZ77, LZ78, run length encoding, and some grammar based compression algorithms. These are the first algorithms that achieve running times polynomial in the size of the compressed input and output representations of $T$. Since most of the representations we consider can achieve exponential compression, our algorithms are theoretically faster in the worst case, than any algorithm which first decompresses the string for the conversion.

Motivation & Objective

  • To develop a framework for processing and transforming compressed strings without decompressing them, enabling faster computation than traditional decompression-based methods.
  • To address the need for dynamic and adaptable compressed text representations in applications like data mining, machine learning, and compressed pattern matching.
  • To enable post-selection of optimal compression formats by allowing efficient conversion between different compressed representations.
  • To support dynamic compressed text data structures by enabling efficient updates and restructuring under edit operations.
  • To extend the scope of compressed string processing by unifying diverse compression formats under a single efficient transformation framework.

Proposed method

  • The method leverages advanced data structures such as range-searchable point sets and tries to efficiently locate substrings and embeddings in compressed representations.
  • It uses a recursive embedding technique to identify maximal repetitions and substrings in compressed form, allowing factorization without decompression.
  • The algorithms employ evidence-based parsing, where each factor is verified via range queries and suffix-prefix matching in compressed substrings.
  • For LZ77 and LZ78 conversion, the approach uses binary search over suffixes and evidence trees to locate the next factor in logarithmic time per step.
  • For RLE to ESP and ESP to Bisection conversions, the method applies iterative replacement of maximal repetitions using integer-encoded run lengths and logarithmic-time embedding checks.
  • The framework integrates edit-sensitive parsing (ESP) and straight-line programs (SLPs) via dynamic range queries and balanced parsing, ensuring polynomial-time complexity.

Experimental results

Research questions

  • RQ1Can compressed string representations be converted to one another without explicit decompression, while maintaining polynomial-time complexity?
  • RQ2What is the theoretical performance gain of such compression-format conversion over decompression-first approaches?
  • RQ3How can dynamic edit operations on compressed strings be efficiently supported through restructuring?
  • RQ4Can post-selection of optimal compression formats be achieved efficiently in the compressed domain?
  • RQ5What are the minimal data structures and algorithms required to enable efficient, lossless transformation between diverse compressed formats?

Key findings

  • The paper presents the first algorithms that convert between compressed representations—including LZ77, LZ78, RLE, SLPs, and grammar-based formats—without decompressing the input, running in polynomial time in the sizes of the compressed input and output.
  • The time complexity for converting a canonical SLP of size $ n $ to LZ78 is $ O(m\log^3 N + n) $, where $ m $ is the number of LZ78 factors and $ N $ is the string length.
  • Conversion from RLE to edit-sensitive parsing (ESP) runs in $ O(n\log^* N) $ time, where $ n $ is the RLE size, achieving near-linear performance.
  • The conversion from ESP to Bisection SLPs runs in $ O(m\log^2 N) $ time, with $ m $ being the size of the resulting SLP, demonstrating efficient handling of balanced grammar construction.
  • For LZ77 factorization from SLPs, the algorithm runs in $ O(m\log^2 n \log^3 N + n\log^2 n) $ time, showing scalability even for large inputs.
  • All proposed algorithms achieve theoretical speedups over decompression-based methods, especially in the worst case where compression ratios are exponential.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.