arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1304.0917cs.DS
收藏

简洁的语法压缩

A Succinct Grammar Compression

Yasuo Tabei, Yoshimasa Takabatake, Hiroshi Sakamoto

摘要:

我们解决了一个公开的问题,有关的最佳编码的直线程序(SLP),规范形式的语法压缩推导出一个单一的字符串确定性。我们表明,一个信息理论的下界表示一个SLP与n个符号需要至少2n+logn!+ o(n)位。然后,我们提出了一个简洁的表示的SLP,这种表示是渐近等价的下界。对于rho leq 2sqrt{n},空间最多为2n log {rho}(1 + o(1))位,同时支持在O(log log n)时间内随机访问SLP的任何产生式规则。此外,我们提出了一种新的动态数据结构相关联的一个digram与一个唯一的符号。这种数据结构被称为命名函数,并且已经使用具有空间-时间折衷的哈希表来实现。因此,在产生式规则的开发过程中,内存空间主要由哈希表占用。或者,我们通过利用小波树背后的思想为命名函数构建一个动态数据结构。该空间严格限制为2nlogn(1 + o(1))位,同时支持O(logn)的查询和更新时间。

英文摘要:

We solve an open problem related to an optimal encoding of a straight line program (SLP), a canonical form of grammar compression deriving a single string deterministically. We show that an information-theoretic lower bound for representing an SLP with n symbols requires at least 2n+logn!+o(n) bits. We then present a succinct representation of an SLP; this representation is asymptotically equivalent to the lower bound. The space is at most 2n log {rho}(1 + o(1)) bits for rho leq 2sqrt{n}, while supporting random access to any production rule of an SLP in O(log log n) time. In addition, we present a novel dynamic data structure associating a digram with a unique symbol. Such a data structure is called a naming function and has been implemented using a hash table that has a space-time tradeoff. Thus, the memory space is mainly occupied by the hash table during the development of production rules. Alternatively, we build a dynamic data structure for the naming function by leveraging the idea behind the wavelet tree. The space is strictly bounded by 2n log n(1 + o(1)) bits, while supporting O(log n) query and update time.

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

↑