计算机科学 > 数据结构与算法
[提交于 2026年7月2日]
标题:Efficient Pattern Matching in Unordered Term Tree Patterns with Height Constraints
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Unordered trees appear in applications where the order among child vertices is insignificant, such as abstract syntax trees and chemical structures. To describe patterns in such trees, we propose unordered term tree patterns, which employ height-constrained variables that restrict trunk length and subtree height. We formalize the pattern matching problem between an unordered term tree pattern and an unordered tree, and present an $O(N \cdot \max\{nD^{3/2}, \mathcal{S}\})$-time algorithm, where $n$ and $N$ are the numbers of vertices in the pattern and tree, $D$ is the maximum vertex degree, and $\mathcal{S}$ is the sum of trunk constraints. Computational results show that the algorithm runs efficiently in practice.
提交历史
来自:Takayoshi Shoudai[v1] 2026年7月2日 星期四 04:55:03 UTC