arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1301.5842cs.DScs.FL
收藏

基于语法的压缩通过再压缩的近似

Approximation of grammar-based compression via recompression

Artur Jeż

摘要:

在本文中,我们提出了一个简单的线性时间算法构造一个上下文无关文法的大小为O(g log(N/g))的输入字符串,其中N是输入字符串的大小和g的最佳语法生成这个字符串的大小。该算法适用于任意大小的字母表,但运行时间是线性的,假设输入字符串的字母表可以用{1,.,N^c}对于某个常数c。否则,O(n log)的额外开销|Σ|)是必须的。这种近似保证和运行时间的算法是已知的,本文的新颖之处是一个特别简单的算法以及算法的分析,它使用了一个一般的技术,最近介绍了作者的再压缩。此外,与以前的结果相反,这项工作没有使用输入字符串的LZ表示的建设,也没有在分析。

英文摘要:

In this paper we present a simple linear-time algorithm constructing a context-free grammar of size O(g log(N/g)) for the input string, where N is the size of the input string and g the size of the optimal grammar generating this string. The algorithm works for arbitrary size alphabets, but the running time is linear assuming that the alphabet Σof the input string can be identified with numbers from {1, ..., N^c} for some constant c. Otherwise, additional cost of O(n log|Σ|) is needed. Algorithms with such approximation guarantees and running time are known, the novelty of this paper is a particular simplicity of the algorithm as well as the analysis of the algorithm, which uses a general technique of recompression recently introduced by the author. Furthermore, contrary to the previous results, this work does not use the LZ representation of the input string in the construction, nor in the analysis.

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

↑