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

LZBE: 一种支持O(log n)时间随机访问的LZ风格压缩器

LZBE: an LZ-style compressor supporting $O(\log n)$-time random access

Joint Graduate School of Mathematics for Innovation, Kyushu University(九州大学数学创新联合研究生院);Department of Informatics, Kyushu University(九州大学信息学系);Department of Information and Physical Sciences, Osaka University(大阪大学信息与物理科学系)

Hiroki Shibata, Yuto Nakashima, Yutaro Yamaguchi, Shunsuke Inenaga

AI总结:

LZBE是一种支持O(log n)时间随机访问的LZ风格压缩方法,通过结构限制实现更高效的分解和查询。

摘要:

一种LZ-like的字符串分解将字符串分解为因素,每个因素要么是单个字符,要么是先前子串的复制。虽然基于语法的压缩方案支持以压缩大小线性空间实现高效的随机访问,但一般LZ-like分解没有已知的可比保证。这一限制促使了诸如LZ-End [Kreft和Navarro, 2013] 和高度受限的LZ (LZHB) [Bannai等人, 2024] 等受限变种,它们在压缩效率上做出牺牲以换取更快的访问速度。在本文中,我们引入了LZ-Begin-End (LZBE),一种新的LZ-like变种,其中每个复制因素必须引用先前因素的连续序列。这种结构限制确保任何上下文无关文法都可以转换为相同大小的LZBE分解。我们进一步研究了贪心的LZBE分解,该分解在从左到右处理输入时,选择每个复制因素尽可能长,并证明其可以在线性时间内计算。此外,我们展示了一组字符串,其贪心LZBE分解在渐近上比最小文法更小。这些结果表明,LZBE方案在最坏情况下比基于语法的压缩更具表达性。为了支持快速查询,我们提出了一种数据结构,允许在压缩大小线性空间内以O(log n)时间实现随机访问,其中n是输入字符串的长度。

英文摘要:

An LZ-like factorization of a string divides it into factors, each being either a single character or a copy of a preceding substring. While grammar-based compression schemes support efficient random access with space linear in the compressed size, no comparable guarantees are known for general LZ-like factorizations. This limitation motivated restricted variants such as LZ-End [Kreft and Navarro, 2013] and height-bounded LZ (LZHB) [Bannai et al., 2024], which trade off some compression efficiency for faster access. In this paper, we introduce LZ-Begin-End (LZBE), a new LZ-like variant in which every copy factor must refer to a contiguous sequence of preceding factors. This structural restriction ensures that any context-free grammar can be transformed into an LZBE factorization of the same size. We further study the greedy LZBE factorization, which selects each copy factor to be as long as possible while processing the input from left to right, and show that it can be computed in linear time. Moreover, we exhibit a family of strings for which the greedy LZBE factorization is asymptotically smaller than the smallest grammar. These results demonstrate that the LZBE scheme is strictly more expressive than grammar-based compression in the worst case. To support fast queries, we propose a data structure for LZBE-compressed strings that permits O(log n)-time random access within space linear in the compressed size, where n is the length of the input string.

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

↑