MSO queries on trees: enumerating answers under updates
MSO queries on trees: enumerating answers under updates
复制标题
MSO 对树的查询:枚举更新下的答案
DOI:
10.1145/2603088.2603137
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
Wim Martens
中科院分区:
文献类型:
--
作者:
Katja Losemann;Wim Martens
We investigate efficient view maintenance for MSO-definable queries over trees or, more precisely, efficient enumeration of answers to MSO-definable queries over words and trees which are subject to local updates. For words we exhibit an algorithm that uses anO(n) preprocessing phase and enumerates answers withO(logn) delay between them. When the word is updated, the algorithm can avoid repeating expensive preprocessing and restart the enumeration phase withinO(logn) time. For trees, our algorithm usesO(n) preprocessing time, enumerates answers withO(log2n) delay, and can restart enumeration withinO(log2n) time after receiving an update to the tree. This significantly improves the cost of recomputing the answers of a query from scratch. Our algorithms and complexity results in the paper are presented in terms of node-selecting automata representing the MSO queries.