paperbot · PL 论文追踪

全部论文 待读 收藏

P2 MSO Queries on Trees

树上的 MSO 查询
LICS Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science2018匹配度 2/10 · 该论文属于纯逻辑与自动机理论,研究树上的 MSO 查询枚举与动态更新算法,与用户关注的静态分析/LLM/Agent、浮点程序分析、贝叶斯程序分析等方向没有直接交叉,仅在树自动机或形式化基础层面可能间接相关。引用 16 inbox
Matthias Niewerth
crossref: 2026-09-12

AI 速览

一句话:本文给出树上的 MSO 查询在局部更新下的高效枚举算法,预处理 O(n),答案延迟 O(log n),更新后 O(log n) 恢复。

本文研究在树经历局部更新时,如何高效枚举 MSO 可定义查询的全部答案。作者以节点选择树自动机表示 MSO 查询,提出一种枚举算法:预处理耗时 O(n),枚举答案时相邻答案延迟为 O(log n);当树发生局部更新后,无需从头预处理,可在 O(log n) 时间内重启枚举。该结果改进了此前需要 O(log^2 n) 更新时间和 O(log^2 n) 延迟的工作。为构造算法,论文还引入森林代数公式语法树的平衡方案,该技术本身有望把字符串上的结果提升到树上。

问题
研究树在局部更新下,MSO 可定义查询答案的高效枚举问题,目标是降低预处理、答案延迟与更新后重启代价。
方法
用节点选择树自动机表示 MSO 查询,并引入森林代数公式语法树的平衡方案来设计增量枚举算法。
评估
通过复杂度分析证明预处理为 O(n)、答案延迟为 O(log n);更新后可在 O(log n) 时间重启,优于此前 O(log^2 n) 的结果。
原文摘要(Abstract)

We investigate efficient enumeration of answers to MSO-definable queries over trees which are subject to local updates. We exhibit an algorithm that uses an O(n) preprocessing phase and enumerates answers with O(log(n)) delay between them. When the tree is updated, the algorithm can avoid repeating expensive preprocessing and restart the enumeration phase within O(log(n)) time. This improves over previous results that require O(log2(n)) time after updates and have O(log2(n)) delay. Our algorithms and complexity results in the paper are presented in terms of node-selecting tree automata representing the MSO queries. To present our algorithm, we introduce a balancing scheme for parse trees of forest algebra formulas that is of its own interest to lift results from strings to trees.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4329,
  title = {MSO Queries on Trees},
  author = {Matthias Niewerth},
  booktitle = {LICS},
  year = {2018},
  doi = {10.1145/3209108.3209144}
}