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

字典压缩的根源:字符串吸引子

At the Roots of Dictionary Compression: String Attractors

Dominik Kempa, Nicola Prezza

摘要:

在无损文本压缩领域的一个众所周知的事实是,高阶熵是一个弱模型,当输入包含长的重复。受此启发,数十年的研究产生了无数所谓的字典压缩器:能够通过利用文本的重复性来减少文本大小的算法。Lempel-Ziv 77是这类工具中最成功和最知名的工具之一,其次是直线程序,游程Burrows-Wheeler变换,宏方案,拼贴系统和紧凑有向无环字图。在本文中,我们表明,这些技术是不同的解决方案相同的,优雅的,组合的问题:找到一个小的位置集捕获所有文本的子串。我们称这样的集合为弦吸引子。我们首先显示字典压缩器和字符串吸引子之间的减少。这给出了字典压缩器相对于最小字符串吸引子的近似比,并揭示了不同压缩器的输出大小之间的新关系。我们发现,$k$吸引子问题:决定一个文本是否有一个大小- $t$的位置集捕捉子串的长度在最$k$,是NP-完全的$k\geq 3$。给出了最小$k$ -吸引子的几种逼近技巧,证明了对于常数$k$,该问题是APX-完全的,并给出了强不可逼近性结果.最后,我们提供了匹配的上下界字符串吸引子的随机访问问题。通过给出一个支持查询的最优时间的数据结构证明了上界。我们的数据结构是通用的:通过我们对字符串吸引子的简化,它支持对任何字典压缩方案的随机访问。特别是,它还匹配LZ 77,直线程序,拼贴系统和宏方案的下限,因此关闭(一次)所有这些压缩器的随机访问问题。

英文摘要:

A well-known fact in the field of lossless text compression is that high-order entropy is a weak model when the input contains long repetitions. Motivated by this, decades of research have generated myriads of so-called dictionary compressors: algorithms able to reduce the text's size by exploiting its repetitiveness. Lempel-Ziv 77 is one of the most successful and well-known tools of this kind, followed by straight-line programs, run-length Burrows-Wheeler transform, macro schemes, collage systems, and the compact directed acyclic word graph. In this paper, we show that these techniques are different solutions to the same, elegant, combinatorial problem: to find a small set of positions capturing all text's substrings. We call such a set a string attractor. We first show reductions between dictionary compressors and string attractors. This gives the approximation ratios of dictionary compressors with respect to the smallest string attractor and uncovers new relations between the output sizes of different compressors. We show that the $k$-attractor problem: deciding whether a text has a size-$t$ set of positions capturing substrings of length at most $k$, is NP-complete for $k\geq 3$. We provide several approximation techniques for the smallest $k$-attractor, show that the problem is APX-complete for constant $k$, and give strong inapproximability results. To conclude, we provide matching lower and upper bounds for the random access problem on string attractors. The upper bound is proved by showing a data structure supporting queries in optimal time. Our data structure is universal: by our reductions to string attractors, it supports random access on any dictionary-compression scheme. In particular, it matches the lower bound also on LZ77, straight-line programs, collage systems, and macro schemes, and therefore closes (at once) the random access problem for all these compressors.

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

↑