重访用于语法压缩字符串随机访问的民间传说算法
Revisiting the Folklore Algorithm for Random Access to Grammar-Compressed Strings
AI总结:
针对语法压缩字符串随机访问实用研究不足的问题,本文修改了乔姆斯基范式下的民间传说随机访问算法使其适配通用语法,验证了其实际运行速度快、内存效率高的优势。
摘要:
基于语法的压缩是一种被广泛认可的字符串压缩模型,支持对压缩数据进行高效直接的操作。绝大多数此类操作都依赖于基础的随机访问查询——即在无需显式解压的情况下,快速返回原始未压缩字符串指定位置字符的任务。尽管已有针对语法压缩字符串随机访问的高级数据结构,能保证理论上的查询时间和空间界,但针对这一重要问题的实用视角研究仍十分匮乏。本文中,我们重访了一种针对乔姆斯基范式语法的知名民间传说随机访问算法,对其进行修改使其可直接作用于通用语法,并证明该修改版本在实际应用中速度快且内存效率高。
英文摘要:
Grammar-based compression is a widely-accepted model of string compression that allows for efficient and direct manipulations on the compressed data. Most, if not all, such manipulations rely on the primitive \emph{random access} queries, a task of quickly returning the character at a specified position of the original uncompressed string without explicit decompression. While there are advanced data structures for random access to grammar-compressed strings that guarantee theoretical query time and space bounds, little has been done for the \emph{practical} perspective of this important problem. In this paper, we revisit a well-known folklore random access algorithm for grammars in the Chomsky normal form, modify it to work directly on general grammars, and show that this modified version is fast and memory efficient in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。