paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Constant-delay enumeration for SLP-compressed documents

SLP 压缩文档的常数延迟枚举
LMCS vol.Volume 21, Issue 12025匹配度 2/10 · 该论文研究 SLP 压缩文档上的 annotated automata 查询枚举与延迟保证,属于自动机与数据库理论方向,与用户关注的静态分析、LLM/Agent、浮点程序分析及贝叶斯程序分析均无直接交叉。虽然包含形式化理论,但缺乏与编程语言、AI 或实际分析工具的结合。引用 15 inbox
Martín Muñoz, Cristian Riveros
crossref: 2026-09-10

AI 速览

一句话:提出在 SLP 压缩文档上对 annotated automata 查询进行结果枚举的算法,实现 output-linear/常数延迟并改进已有对数延迟。

论文研究压缩文档上的查询结果枚举问题。压缩模型采用 straight-line program(SLP),查询模型为 Annotated Automata,它是带字母标注的正则自动机扩展,可产出任意长结果并推广 regular spanners。作者设计持久化数据结构 Enumerable Compact Sets with Shifts,在预处理后以 output-linear delay 枚举所有结果。预处理时间线性于 SLP 大小、三次于自动机大小;该延迟优于 Schmid 与 Schweikardt 在相同预处理时间下关于未压缩文档大小的对数延迟。该结果给出 regular spanners 的常数延迟枚举算法;通过 succinctly encoded annotations 的扩展,相较 vset automata 的已有结果节省指数因子;并沿用 Schmid 与 Schweikardt 的方式支持复杂文档编辑且保持常数延迟。

问题
如何在 SLP 压缩表示的文档上高效枚举正则类查询的所有结果,并避免解压带来的开销;已有方法的枚举延迟会随未压缩文档大小对数增长。
方法
将查询建模为 annotated automata,并设计持久化数据结构 Enumerable Compact Sets with Shifts,在预处理后以 output-linear/常数延迟枚举结果,同时支持 succinct annotations 与文档编辑扩展。
评估
通过理论复杂度分析评估:预处理时间对 SLP 线性、对自动机三次;枚举延迟为 output-linear,进而实现常数延迟,优于 Schmid 和 Schweikardt 的对数延迟结果。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@article{abs-2209-12301,
  title = {Constant-delay enumeration for SLP-compressed documents},
  author = {Martín Muñoz and Cristian Riveros},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 21, Issue 1},
  year = {2025},
  doi = {10.46298/lmcs-21(1:17)2025}
}