arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.08209cs.DS
收藏

高度受限的Lempel-Ziv编码

Height-bounded Lempel-Ziv encodings

Hideo Bannai, Mitsuru Funakoshi, Diptarama Hendrian, Myuji Matsuda, Simon J. Puglisi

AI总结:

本文提出高度受限的LZ编码(LZHB),通过限制隐式引用森林高度保证$O(h)$访问时间,给出常量字母表下贪心LZHB的线性时间算法,并证明其大小在重复性度量中具有理论优势。

摘要:

我们引入了高度受限的LZ编码(LZHB),这是一种新的压缩表示族,是Lempel-Ziv解析的变体,重点关注通过压缩表示直接限制对文本中任意位置的最坏情况访问时间。类LZ编码将字符串划分为长度为1且可按字面编码的短语,或长度至少为2且在字符串中有先前出现并可通过其位置和长度编码的短语。类LZ编码在字符串位置集上诱导出一个隐式引用森林。LZHB编码是隐式引用森林高度受限的类LZ编码。具有高度约束$h$的LZHB编码允许使用$O(h)$次前驱查询访问底层文本的任意位置。虽然高效计算最小LZHB编码似乎很困难[Cicalese & Ugazio 2024, arxiv],但我们给出了首个线性时间算法,用于常量大小字母表上的字符串,计算贪心LZHB编码,即从头到尾处理字符串,并将剩余字符串中能满足高度约束的最长前缀作为下一个短语。我们的算法在理论和实践上都显著改进了Lipták等人(arxiv,将发表于CPM 2024)最近且独立提出的算法。我们还在重复性度量的背景下分析了高度受限LZ编码的大小,并证明对于某个常数$c$,高度约束为$c\log n$的最优LZHB编码大小$z_{HB}$为$O(g_{rl})$,其中$g_{rl}$是最小游程语法的大小。我们还证明对于某些字符串族$z_{HB} = o(g_{rl})$,使$z_{HB}$成为已知最小的重复性度量之一,可使用线性空间实现$O({\sf polylog} n)$时间访问。

英文摘要:

We introduce height-bounded LZ encodings (LZHB), a new family of compressed representations that are variants of Lempel-Ziv parsings with a focus on bounding the worst-case access time to arbitrary positions in the text directly via the compressed representation. An LZ-like encoding is a partitioning of the string into phrases of length $1$ which can be encoded literally, or phrases of length at least $2$ which have a previous occurrence in the string and can be encoded by its position and length. An LZ-like encoding induces an implicit referencing forest on the set of positions of the string. An LZHB encoding is an LZ-like encoding where the height of the implicit referencing forest is bounded. An LZHB encoding with height constraint $h$ allows access to an arbitrary position of the underlying text using $O(h)$ predecessor queries. While computing the smallest LZHB encoding efficiently seems to be difficult [Cicalese \& Ugazio 2024, arxiv], we give the first linear time algorithm for strings over a constant size alphabet that computes the greedy LZHB encoding, i.e., the string is processed from beginning to end, and the longest prefix of the remaining string that can satisfy the height constraint is taken as the next phrase. Our algorithms significantly improve both theoretically and practically, the very recently and independently proposed algorithms by Lipták et al. (arxiv, to appear at CPM 2024). We also analyze the size of height bounded LZ encodings in the context of repetitiveness measures, and show for some constant $c$, the size $z_{HB}$ of the optimal LZHB encoding with height bound $c\log n$ is $O(g_{rl})$, where $g_{rl}$ is the size of the smallest run-length grammar. We also show $z_{HB} = o(g_{rl})$ for some family of strings, making $z_{HB}$ one of the smallest known repetitiveness measures for which $O({\sf polylog} n)$ time access is possible using linear space.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑