A Space-Optimal Grammar Compression
A Space-Optimal Grammar Compression
复制标题
DOI:
10.4230/lipics.esa.2017.67
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
Yoshimasa Takabatake;I. Tomohiro;H. Sakamoto
中科院分区:
文献类型:
--
作者:
Yoshimasa Takabatake;I. Tomohiro;H. Sakamoto
A grammar compression is a context-free grammar (CFG) deriving a single string deterministically. For an input string of length N over an alphabet of size σ, the smallest CFG is O(lgN)approximable in the offline setting and O(lgN lg∗N)-approximable in the online setting. In addition, an information-theoretic lower bound for representing a CFG in Chomsky normal form of n variables is lg(n!/n) + n + o(n) bits. Although there is an online grammar compression algorithm that directly computes the succinct encoding of its output CFG with O(lgN lg∗N) approximation guarantee, the problem of optimizing its working space has remained open. We propose a fully-online algorithm that requires the fewest bits of working space asymptotically equal to the lower bound in O(N lg lgn) compression time. In addition we propose several techniques to boost grammar compression and show their efficiency by computational experiments. 1998 ACM Subject Classification E.4 Coding and Information Theory