加载中…
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 -time algorithm, where and are the numbers of vertices in the pattern and tree, is the maximum vertex degree, and is the sum of trunk constraints. Computational results show that the algorithm runs efficiently in practice.

生成讲解博客的中文版本

生成AI智能校验的中文版本