论文标题
树木上的MSO查询:使用森林代数列举更新下的答案
MSO Queries on Trees: Enumerating Answers under Updates Using Forest Algebras
论文作者
论文摘要
我们描述了一个框架,用于维持未排名树木的对数高度的森林代数表示。可以在O(n)时间计算此类表示形式,并在O(log(n))时间中进行更新。该框架对于数据结构和算法的潜在感兴趣,其复杂性取决于树的深度(表示)。我们为框架提供了框架的示例应用,以有效地列出对受本地更新的树木的MSO可定义查询的答案。我们展示了一种使用O(n)预处理阶段的算法,并用它们之间的o(log(log(n))延迟列举答案。当树更新时,该算法可以避免重复昂贵的预处理,并在O(log(log(n))时间内重新启动枚举阶段。我们的算法和复杂性在论文中的结果是根据代表MSO查询的节点选择的树自动机提出的。
We describe a framework for maintaining forest algebra representations that are of logarithmic height for unranked trees. Such representations can be computed in O(n) time and updated in O(log(n)) time. The framework is of potential interest for data structures and algorithms for trees whose complexity depend on the depth of the tree (representation). We provide an exemplary application of the framework to the problem of efficiently enumerating 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. Our algorithms and complexity results in the paper are presented in terms of node-selecting tree automata representing the MSO queries.