Two tree-to-path bijections for binary pattern avoidance

Gregor, Mütze and Namrata asked for direct bijections from two binary-tree pattern avoidance classes to Motzkin-type paths with the same known counts. Both bijections preserve size exactly. For every integer \(n\geq 0\), they send a tree with \(n\) vertices to a path with \(n\) steps and recover the tree, including its left and right child positions, from the path alone. The two maps differ in what they record about the part of the tree reached by taking two consecutive right edges. In the skew Motzkin alternative, the question is whether a tree class counted by A025242 can be mapped directly to skew Motzkin paths. The bijection uses the representative \((1243,1--)\) from Theorem 12(iv) and Table 2. Its target consists of paths starting and ending at height zero, staying at non-negative heights, and using \(U=(1,1)\), \(D=(1,-1)\), \(F=(1,0)\) and \(L=(-1,-1)\), with the consecutive pairs \(UL\) and \(LU\) forbidden. The count at size \(n\) is \(A025242(n+2)=A086581(n)\). Gregor, Mütze and Namrata, §9, first bullet, skew Motzkin alternative (p. 39) In the A176677 alternative, the question is whether a tree class in the specified Wilf family, whose patterns have equal avoidance counts, can be mapped directly to Motzkin paths with an extra flat-step colour at odd heights. The bijection uses the permitted representative \((12435,10--)\), enumerated in Lemma 23. Its target uses \(U,D\) and horizontal steps, starts and ends at height zero, and stays at non-negative heights. At every even height there is one flat-step colour \(F\), and at every odd height there are two, \(A\) and \(B\). The count at size \(n\) is \(A176677(n+1)\). Gregor, Mütze and Namrata, §9, first bullet, A176677 alternative (p. 39) In both classes the trees are rooted, with separately optional left and right children. If the root has a right child, let \(Y\) be the root's left subtree, and let \(X\) and \(C\) be the left and right subtrees of its right child. For \((1243,1--)\), the right subtree of every right child must be a chain whose edges all point right. For \((12435,10--)\), the right subtree of every right child must have at most one child at each vertex, with either direction allowed. Thus \(X\) and \(Y\) are arbitrary avoiders in the relevant class, and \(C\) is an independently chosen chain of the required kind, possibly empty. The tree has \(2+|X|+|Y|+|C|\) vertices, where \(|\cdot|\) counts vertices for trees and steps for paths. In either map, written \(\Phi\) for the class in use, the empty tree maps to the empty word \(\epsilon\). A root with empty right subtree and left subtree \(Y\) maps to \(F\Phi(Y)\). For the skew map with a right child, put \(P=\Phi(X)\), \(Q=\Phi(Y)\) and write \(|C|=2q+b\) with \(q\geq 0\) an integer and \(b\in\{0,1\}\). Form the base word \(V\) and the output by concatenation: \[V=\begin{cases} UPDQ, & b=0,\\ UFQL, & b=1,\ P=\epsilon,\\ UPLFQ, & b=1,\ P\ne\epsilon, \end{cases} \qquad \Phi(T)=U^q V L^q. \] The powers indicate repeated steps. To decode an up-first path, locate its first return to height zero. If that return is a final \(L\) and its interior starts with \(U\), strip the outer \(U,L\) and repeat. The number of such removals is \(q\). In the remaining word, a return by \(D\) gives the first base case, a final return by \(L\) with a flat-first interior gives the second, and a return by \(L\) followed by a flat gives the third. These cuts identify \(P,Q\) and \(b\), so \(2q+b\) rebuilds the right chain and the two smaller paths recover the left subtrees. The chain length therefore controls both the nesting depth and the type of the base return. For the coloured map, let \(E\) and \(O\) be excursions based at even and odd absolute heights, respectively. Each stays at or above its base and returns to it, and its displayed heights are measured relative to that base. To move an excursion from \(E\) to an odd base while keeping its internal flat colours legal, use the length-preserving map \(J\). Write the excursion as \(F^j\) if it consists entirely of flats, or as \(F^j U P D Q\) by taking the first arch after its \(j\geq 0\) initial flats. Here \(P\in O\) is the interior of that arch, \(D\) is its first return to base, and \(Q\in E\) is the suffix. Then \[J(F^j)=A^j,\qquad J(F^j U P D Q)=A^j U Q D P. \] The component swap puts each excursion at the parity required by its flat colours. The image is exactly the odd-base excursions whose initial run of flats contains only \(A\). Reversing the initial recolouring and the swap recovers the even-base excursion. Encode a nonempty chain \(C\) by reading its edges from its root, writing \(A\) for each left edge and \(B\) for each right edge, and appending one terminal \(B\). Write the resulting word as \(W(C)\) and set \(W(\varnothing)=\epsilon\). The word has \(|C|\) letters, one for each vertex. For a root with a right child the full map is \[\Phi(T)=U\,W(C)\,J(\Phi(X))\,D\,\Phi(Y). \] The first return after the opening \(U\) separates the odd-base interior from \(\Phi(Y)\). In the initial flat run of the interior, cut just after its last \(B\), or take an empty prefix if that run has no \(B\). The prefix is \(W(C)\), so removing its terminal letter when present recovers the chain's edge directions. Applying \(J^{-1}\) to the rest gives \(\Phi(X)\). For both bijections, an empty path decodes to an empty tree and a flat-first path decodes by stripping its first flat and filling only the root's left slot. Each recursive call uses a smaller object. These rules let a reader translate any admissible tree or path, including the empty object, without first enumerating its size class.

Authors

Institutions

Publication Details

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

Two tree-to-path bijections for binary pattern avoidance

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

Two tree-to-path bijections for binary pattern avoidance

Zixuan He
preprint en

Abstract

Gregor, Mütze and Namrata asked for direct bijections from two binary-tree pattern avoidance classes to Motzkin-type paths with the same known counts. Both bijections preserve size exactly. For every integer \(n\geq 0\), they send a tree with \(n\) vertices to a path with \(n\) steps and recover the tree, including its left and right child positions, from the path alone. The two maps differ in what they record about the part of the tree reached by taking two consecutive right edges. In the skew Motzkin alternative, the question is whether a tree class counted by A025242 can be mapped directly to skew Motzkin paths. The bijection uses the representative \((1243,1--)\) from Theorem 12(iv) and Table 2. Its target consists of paths starting and ending at height zero, staying at non-negative heights, and using \(U=(1,1)\), \(D=(1,-1)\), \(F=(1,0)\) and \(L=(-1,-1)\), with the consecutive pairs \(UL\) and \(LU\) forbidden. The count at size \(n\) is \(A025242(n+2)=A086581(n)\). Gregor, Mütze and Namrata, §9, first bullet, skew Motzkin alternative (p. 39) In the A176677 alternative, the question is whether a tree class in the specified Wilf family, whose patterns have equal avoidance counts, can be mapped directly to Motzkin paths with an extra flat-step colour at odd heights. The bijection uses the permitted representative \((12435,10--)\), enumerated in Lemma 23. Its target uses \(U,D\) and horizontal steps, starts and ends at height zero, and stays at non-negative heights. At every even height there is one flat-step colour \(F\), and at every odd height there are two, \(A\) and \(B\). The count at size \(n\) is \(A176677(n+1)\). Gregor, Mütze and Namrata, §9, first bullet, A176677 alternative (p. 39) In both classes the trees are rooted, with separately optional left and right children. If the root has a right child, let \(Y\) be the root's left subtree, and let \(X\) and \(C\) be the left and right subtrees of its right child. For \((1243,1--)\), the right subtree of every right child must be a chain whose edges all point right. For \((12435,10--)\), the right subtree of every right child must have at most one child at each vertex, with either direction allowed. Thus \(X\) and \(Y\) are arbitrary avoiders in the relevant class, and \(C\) is an independently chosen chain of the required kind, possibly empty. The tree has \(2+|X|+|Y|+|C|\) vertices, where \(|\cdot|\) counts vertices for trees and steps for paths. In either map, written \(\Phi\) for the class in use, the empty tree maps to the empty word \(\epsilon\). A root with empty right subtree and left subtree \(Y\) maps to \(F\Phi(Y)\). For the skew map with a right child, put \(P=\Phi(X)\), \(Q=\Phi(Y)\) and write \(|C|=2q+b\) with \(q\geq 0\) an integer and \(b\in\{0,1\}\). Form the base word \(V\) and the output by concatenation: \[V=\begin{cases} UPDQ, & b=0,\\ UFQL, & b=1,\ P=\epsilon,\\ UPLFQ, & b=1,\ P\ne\epsilon, \end{cases} \qquad \Phi(T)=U^q V L^q. \] The powers indicate repeated steps. To decode an up-first path, locate its first return to height zero. If that return is a final \(L\) and its interior starts with \(U\), strip the outer \(U,L\) and repeat. The number of such removals is \(q\). In the remaining word, a return by \(D\) gives the first base case, a final return by \(L\) with a flat-first interior gives the second, and a return by \(L\) followed by a flat gives the third. These cuts identify \(P,Q\) and \(b\), so \(2q+b\) rebuilds the right chain and the two smaller paths recover the left subtrees. The chain length therefore controls both the nesting depth and the type of the base return. For the coloured map, let \(E\) and \(O\) be excursions based at even and odd absolute heights, respectively. Each stays at or above its base and returns to it, and its displayed heights are measured relative to that base. To move an excursion from \(E\) to an odd base while keeping its internal flat colours legal, use the length-preserving map \(J\). Write the excursion as \(F^j\) if it consists entirely of flats, or as \(F^j U P D Q\) by taking the first arch after its \(j\geq 0\) initial flats. Here \(P\in O\) is the interior of that arch, \(D\) is its first return to base, and \(Q\in E\) is the suffix. Then \[J(F^j)=A^j,\qquad J(F^j U P D Q)=A^j U Q D P. \] The component swap puts each excursion at the parity required by its flat colours. The image is exactly the odd-base excursions whose initial run of flats contains only \(A\). Reversing the initial recolouring and the swap recovers the even-base excursion. Encode a nonempty chain \(C\) by reading its edges from its root, writing \(A\) for each left edge and \(B\) for each right edge, and appending one terminal \(B\). Write the resulting word as \(W(C)\) and set \(W(\varnothing)=\epsilon\). The word has \(|C|\) letters, one for each vertex. For a root with a right child the full map is \[\Phi(T)=U\,W(C)\,J(\Phi(X))\,D\,\Phi(Y). \] The first return after the opening \(U\) separates the odd-base interior from \(\Phi(Y)\). In the initial flat run of the interior, cut just after its last \(B\), or take an empty prefix if that run has no \(B\). The prefix is \(W(C)\), so removing its terminal letter when present recovers the chain's edge directions. Applying \(J^{-1}\) to the rest gives \(\Phi(X)\). For both bijections, an empty path decodes to an empty tree and a flat-first path decodes by stripping its first flat and filling only the root's left slot. Each recursive call uses a smaller object. These rules let a reader translate any admissible tree or path, including the empty object, without first enumerating its size class.

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