arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.12301cs.DScs.FLcs.LO
收藏

SLP压缩文档的恒定延迟枚举

Constant-delay enumeration for SLP-compressed documents

Martín Muñoz, Cristian Riveros

AI总结:

本研究提出一种算法,在SLP压缩文档上,通过带注释自动机查询,实现预处理后恒定延迟枚举结果,改进了先前工作的对数延迟,并支持文档编辑。

摘要:

我们研究了在压缩文档上执行查询并枚举结果的问题。我们使用的压缩模型是直线程序(SLPs),它由上下文无关文法定义,产生单个字符串。对于我们的查询,我们使用一种称为带注释自动机的模型,它是正则自动机的扩展,允许在字母上添加注释。该模型扩展了正则跨度(Regular Spanners)的概念,因为它允许任意长的输出。我们的主要结果是一种算法,该算法通过枚举所有结果来评估此类查询,在预处理阶段之后,输出线性延迟,预处理阶段在SLP大小上花费线性时间,在自动机大小上花费立方时间。这是对Schmid和Schweikardt结果的改进,他们在相同的预处理时间下,枚举延迟与未压缩文档的大小成对数关系。我们通过一个名为可枚举紧致集与移位(Enumerable Compact Sets with Shifts)的持久化数据结构实现了这一点,该结构在特定限制下保证了输出线性延迟。这些结果在正则跨度(regular spanners)的背景下意味着恒定延迟枚举算法。此外,我们使用了带注释自动机的扩展,该扩展利用简洁编码的注释,从先前处理vset自动机上恒定延迟枚举的结果中节省了一个指数因子。最后,我们以与Schmid和Schweikardt相同的方式扩展了我们的结果,以允许复杂的文档编辑,同时保持恒定延迟保证。

英文摘要:

We study the problem of enumerating results from a query over a compressed document. The model we use for compression are straight-line programs (SLPs), which are defined by a context-free grammar that produces a single string. For our queries, we use a model called Annotated Automata, an extension of regular automata that allows annotations on letters. This model extends the notion of Regular Spanners as it allows arbitrarily long outputs. Our main result is an algorithm that evaluates such a query by enumerating all results with output-linear delay after a preprocessing phase which takes linear time on the size of the SLP, and cubic time over the size of the automaton. This is an improvement over Schmid and Schweikardt's result, which, with the same preprocessing time, enumerates with a delay that is logarithmic on the size of the uncompressed document. We achieve this through a persistent data structure named Enumerable Compact Sets with Shifts which guarantees output-linear delay under certain restrictions. These results imply constant-delay enumeration algorithms in the context of regular spanners. Further, we use an extension of annotated automata which utilizes succinctly encoded annotations to save an exponential factor from previous results that dealt with constant-delay enumeration over vset automata. Lastly, we extend our results in the same fashion Schmid and Schweikardt did to allow complex document editing while maintaining the constant delay guarantee.

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

↑