Mixed binary-tree patterns: finite states, algebraic series and an involution

For a mixed pattern in an ordered binary tree, a type-one edge must map to an immediate child on the prescribed side, while a type-zero edge may map farther into that side subtree. The enumeration and generation question of Gregor, Mütze and Namrata, §9 can be addressed by storing two flags per pattern vertex. One tells whether the subpattern matches at the host root and the other whether it matches anywhere. Both start false at the empty tree. When joining two child trees, read the first flag for an immediate requirement and the second for a deeper requirement. The anywhere flag is the disjunction of the new root flag and the anywhere flags in the children. Discard a state whenever an entire forbidden pattern matches. Let \(s_0\) be the all-false state, \(\delta(a,b)\) the resulting state of an ordered pair of children and \(F_s(z)\) the ordinary count by number of vertices in retained state \(s\). Then \[F_s(z)=[s=s_0]+z\sum_{\delta(a,b)=s}F_a(z)F_b(z), \qquad F(z)=\sum_s F_s(z). \] The indicator counts the empty tree. This finite system gives exact coefficients in increasing degree and an algebraic series for any finite family of nonempty patterns. Algebraic elimination supplies a finite comparison cutoff for deciding equality of two such series at every tree order. For a single pattern on \(k\) vertices, a separate traversal lists avoiders of size \(n\ge1\) with \(O(n^3k)\) delay, including startup and termination, and polynomial space. The bijection question in §8.3 concerns the masks \(0\!-\!1\!-\) and \(1\!-\!0\!-\) on \(31245\). Exchange the two subtrees recursively at every vertex that has two children, keeping each unary edge on its original side. This involution preserves right-child existence and interchanges the two tests, giving a size-preserving bijection of the avoidance classes, including the empty tree.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-30
DOI
https://doi.org/10.5281/zenodo.24669465
Primary Topic
Advanced Combinatorial Mathematics
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Mixed binary-tree patterns: finite states, algebraic series and an involution

Zixuan He
Zenodo (CERN European Organization for Nuclear Research)
Advanced Combinatorial Mathematics
preprint

Mixed binary-tree patterns: finite states, algebraic series and an involution

Zixuan He
preprint en

Abstract

For a mixed pattern in an ordered binary tree, a type-one edge must map to an immediate child on the prescribed side, while a type-zero edge may map farther into that side subtree. The enumeration and generation question of Gregor, Mütze and Namrata, §9 can be addressed by storing two flags per pattern vertex. One tells whether the subpattern matches at the host root and the other whether it matches anywhere. Both start false at the empty tree. When joining two child trees, read the first flag for an immediate requirement and the second for a deeper requirement. The anywhere flag is the disjunction of the new root flag and the anywhere flags in the children. Discard a state whenever an entire forbidden pattern matches. Let \(s_0\) be the all-false state, \(\delta(a,b)\) the resulting state of an ordered pair of children and \(F_s(z)\) the ordinary count by number of vertices in retained state \(s\). Then \[F_s(z)=[s=s_0]+z\sum_{\delta(a,b)=s}F_a(z)F_b(z), \qquad F(z)=\sum_s F_s(z). \] The indicator counts the empty tree. This finite system gives exact coefficients in increasing degree and an algebraic series for any finite family of nonempty patterns. Algebraic elimination supplies a finite comparison cutoff for deciding equality of two such series at every tree order. For a single pattern on \(k\) vertices, a separate traversal lists avoiders of size \(n\ge1\) with \(O(n^3k)\) delay, including startup and termination, and polynomial space. The bijection question in §8.3 concerns the masks \(0\!-\!1\!-\) and \(1\!-\!0\!-\) on \(31245\). Exchange the two subtrees recursively at every vertex that has two children, keeping each unary edge on its original side. This involution preserves right-child existence and interchanges the two tests, giving a size-preserving bijection of the avoidance classes, including the empty tree.

Zenodo (CERN European Organization for Nuclear Research)
University of Glasgow (GB)
Advanced Combinatorial Mathematics
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Mixed binary-tree patterns: finite states, algebraic series and an involution — Zixuan He · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS