{"ID":5675129,"CreatedAt":"2026-07-03T01:40:09.565152011Z","UpdatedAt":"2026-07-05T04:41:12.03804865Z","DeletedAt":null,"paper_url":"https://arxiv.org/abs/2607.01704","arxiv_id":"2607.01704","title":"Efficient Pattern Matching in Unordered Term Tree Patterns with Height Constraints","abstract":"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.","short_abstract":"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 fo...","url_abs":"https://arxiv.org/abs/2607.01704","url_pdf":"https://arxiv.org/pdf/2607.01704v1","authors":"[\"Shintaro Matsushita\",\"Takayoshi Shoudai\",\"Yusuke Suzuki\"]","published":"2026-07-02T04:55:03Z","proceeding":"cs.DS","tasks":"[\"cs.DS\",\"cs.FL\"]","methods":"[]","has_code":false}
