arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.17536cs.FLcs.DS
收藏

正则树语言的动态成员问题

Dynamic Membership for Regular Tree Languages

Antoine Amarilli, Corentin Barloy, Louis Jachiet, Charles Paperman

AI总结:

针对重标记更新下正则树语言的动态成员问题,提出任意固定正则树语言的$O(\text{log}n/\text{log log}n)$算法,引入几乎交换树语言类并证明其常数时间更新特性,还证明该类在中性字母存在时的条件最优性。

摘要:

我们研究了重标记更新下正则树语言的动态成员问题:固定字母表$Σ$和$Σ$上的正则树语言$L$(例如用树自动机表示),给定标签属于$Σ$的树$T$,需在处理更改$T$中单个节点标签的重标记更新时,维护$T$是否属于$L$的信息。我们的首个贡献是证明该问题对任意固定正则树语言存在$O(\text{log}n/\text{log log}n)$算法,改进了已知的$O(\text{log}n)$算法,这推广了单词上已知的$O(\text{log}n/\text{log log}n)$上界,且匹配动态成员问题对某些单词语言及存在性标记祖先问题的$Ω(\text{log}n/\text{log log}n)$下界。第二个贡献是引入几乎交换树语言类,证明此类语言在重标记更新下的动态成员问题可通过常数时间每更新解决;几乎交换语言推广了交换语言和有限语言,是单词上具有常数时间动态成员的ZG语言的树类比。主要技术贡献是证明当字母表含中性字母(即不影响语言成员资格的字母)时,该类条件最优:若前缀-U1问题无常数时间算法,则含中性字母但非几乎交换的正则树语言无法以常数时间维护。

英文摘要:

We study the dynamic membership problem for regular tree languages under relabeling updates: we fix an alphabet $Σ$ and a regular tree language $L$ over $Σ$ (expressed, e.g., as a tree automaton), we are given a tree $T$ with labels in $Σ$, and we must maintain the information of whether the tree $T$ belongs to $L$ while handling relabeling updates that change the labels of individual nodes in $T$. Our first contribution is to show that this problem admits an $O(\log n / \log \log n)$ algorithm for any fixed regular tree language, improving over known $O(\log n)$ algorithms. This generalizes the known $O(\log n / \log \log n)$ upper bound over words, and it matches the lower bound of $Ω(\log n / \log \log n)$ from dynamic membership to some word languages and from the existential marked ancestor problem. Our second contribution is to introduce a class of regular languages, dubbed almost-commutative tree languages, and show that dynamic membership to such languages under relabeling updates can be decided in constant time per update. Almost-commutative languages generalize both commutative languages and finite languages: they are the analogue for trees of the ZG languages enjoying constant-time dynamic membership over words. Our main technical contribution is to show that this class is conditionally optimal when we assume that the alphabet features a neutral letter, i.e., a letter that has no effect on membership to the language. More precisely, we show that any regular tree language with a neutral letter which is not almost-commutative cannot be maintained in constant time under the assumption that the prefix-U1 problem from (Amarilli, Jachiet, Paperman, ICALP'21) also does not admit a constant-time algorithm.

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

↑