English

On the complexity and approximability of Bounded access Lempel Ziv coding

Data Structures and Algorithms 2024-03-26 v1 Computational Complexity

Abstract

We study the complexity of constructing an optimal parsing φ\varphi of a string s=s1sn{\bf s} = s_1 \dots s_n under the constraint that given a position pp in the original text, and the LZ76-like (Lempel Ziv 76) encoding of TT based on φ\varphi, it is possible to identify/decompress the character sps_p by performing at most cc accesses to the LZ encoding, for a given integer c.c. We refer to such a parsing φ\varphi as a cc-bounded access LZ parsing or cc-BLZ parsing of s.{\bf s}. We show that for any constant cc the problem of computing the optimal cc-BLZ parsing of a string, i.e., the one with the minimum number of phrases, is NP-hard and also APX hard, i.e., no PTAS can exist under the standard complexity assumption PNP.P \neq NP. We also study the ratio between the sizes of an optimal cc-BLZ parsing of a string s{\bf s} and an optimal LZ76 parsing of s{\bf s} (which can be greedily computed in polynomial time).

Keywords

Cite

@article{arxiv.2403.15871,
  title  = {On the complexity and approximability of Bounded access Lempel Ziv coding},
  author = {Ferdinando Cicalese and Francesca Ugazio},
  journal= {arXiv preprint arXiv:2403.15871},
  year   = {2024}
}
R2 v1 2026-06-28T15:31:06.915Z