Different binary trees can show the same set of shapes on two thirds of their leaves
Why it matters
Imagine trying to recover a family tree of species from smaller samples. Even if you list every branching shape seen when you keep two thirds of the species (rounded up), two different trees of the same size can fit that list if you leave out the species names and how often each shape occurs. This shows what can go wrong in the worst case, not how often it happens with real species trees.
Can we recover a tree's branching pattern if we can see only some of its leaves at a time? Imagine that we know how many leaves the tree has. We choose a sample size, try every choice of that many leaves and list each branching pattern we see. The list is complete, but it leaves out how often each pattern occurs. How large must the samples be before the list identifies the tree?
For every tree size from four leaves onward, we construct two different trees with identical lists even when the sample includes two thirds of the leaves, rounded up. They also agree at every smaller sample size. For infinitely many tree sizes, two trees still agree when the sample includes five sixths of the leaves, rounded down. For those pairs we give the pattern that tells them apart when we keep one more leaf.
From samples to a reconstruction bound
The trees are rooted and binary: branching starts at a root, and each fork has two children. The leaves have no names, and swapping the children at any fork leaves the shape unchanged. To find the shape of a sample, trace the selected leaves back to the first ancestor they all share. Keep just those paths and remove vertices with only one remaining child, joining the path across each removed vertex. The resulting shape is a card. The set of distinct cards from samples of exactly k leaves is the k-deck. This set determines every smaller deck. Any smaller sample can be extended to k leaves, so its shape occurs among the cards obtained by sampling the k-deck in turn.
Clifton and colleagues [1] asked how many leaves a sample needs to identify every tree of a known size. Write R(n) for this minimum sample size for trees with n leaves. They proved that 2\lceil n/4\rceil < R(n)\le n-1 for n\ge6. A single pair with the same deck shows that a sample of that size is too small to guarantee identification. Our pairs raise the leading coefficient of the lower bound across tree sizes from one half to two thirds:
How long small trees agree
We compared all 377,528,145 pairs of different trees with the same number of leaves from 4 through 17. Among trees with 17 leaves, six pairs had identical 13-leaf decks. No pair had identical 14-leaf decks. Table 1 gives the last sample size at which any pair agreed and compares it with the size guaranteed by the two-thirds bound.
| Leaves in each tree | Agreement guaranteed by the all-size bound | Largest sample with any tied pair | Pairs still tied there |
|---|---|---|---|
| 5 | 4 | 4 | 1 |
| 8 | 6 | 6 | 4 |
| 11 | 8 | 9 | 2 |
| 14 | 10 | 10 | 10 |
| 17 | 12 | 13 | 6 |
Table 1. Exact counts for selected tree sizes. A pair consists of two different shapes of the indicated size; each pair is counted once.
Two ways for trees to agree help explain these ties. One depends on the order of short branches along a path and gives examples at every tree size. The other starts with the five-leaf pair in Table 1 and doubles the size of the first card that distinguishes the trees. Its first doubling gives one of the two 11-leaf pairs that agree through nine leaves, one leaf beyond the all-size guarantee.
Reordering branches gives the same deck
Consider a path starting at the root. At each fork along it, attach either a single leaf or a pair of sibling leaves, called a cherry, beside the continuing path. End the path with a cherry. A string of digits describes the side branches in order: 1 means a leaf and 2 means a cherry. For example, 12 and 21 describe different five-leaf trees. The first root splits its leaves into groups of 1+4, the second into 2+3. We can always recover the string from the tree by removing the smaller branch at the root and repeating until only the terminal cherry remains. If the branches tie before then, both are cherries, so either choice gives the digit 2.
Call these trees spines, and count a single leaf as a spine too. A tree is a spine exactly when every fork has a branch of at most two leaves: removing the smaller branch repeatedly gives the description above. Sampling a spine gives another spine, because the short branch at any fork that survives sampling still has at most two leaves.
Now suppose a spine has a string of length L with no two 1s in a row. Whatever the order of its digits, this tree displays every spine with at most L+2 leaves. To see why, match the digits of a desired card in order, starting at the root of the tree being sampled. For a 1, take a leaf from the next side branch, even if it is a cherry. For a 2, take the next side branch if it is a cherry; if it is a leaf, skip it and use the following cherry. Thus matching a digit uses at most as many positions as its value. For a desired card of k leaves other than a single leaf, the digits sum to k-2. When k-2\le L, there is room for every match. Take the terminal cherry and omit all unused side branches. A single leaf can always be sampled separately. These trees therefore have identical decks through L+2 leaves: each deck contains all spines of its size and nothing else.
To build different trees with the same number n of leaves, set the string length L and the number of 1s, s, to
The two remaining sizes also give ties. The two four-leaf shapes agree through three leaves because only one shape exists at each smaller size. For six leaves, give each of the five-leaf examples a new root, with the original tree on one side and a single leaf on the other. Every sample stays in the old tree, takes the new leaf alone or joins the new leaf to a card from the old tree. The six-leaf trees thus agree through four leaves, as required.
At any fixed sampling fraction \alpha below two thirds (0<\alpha<2/3), exponentially many different trees can share a deck. Choose a string length L=\lfloor\beta n\rfloor with \max(\alpha,1/2)<\beta<2/3. Both the number of 1s, s, and the number of unoccupied gaps, L-s+1-s, grow linearly with n. The binomial count of arrangements therefore grows at least exponentially in n. All these trees agree through \lfloor\alpha n\rfloor leaves.
Why does requiring every spine to appear lead to two thirds? Among the k-leaf spines are two extremes: one has only its terminal cherry, the other has \lfloor k/2\rfloor cherries. Deleting a leaf can lower the cherry count by at most one. It cannot increase the count: a new cherry can form only if a former cherry collapses to a leaf. A tree that displays both extremes must start with at least \lfloor k/2\rfloor cherries and have enough spare leaves to discard at least \lfloor k/2\rfloor-1 cherries. It therefore needs at least k+\lfloor k/2\rfloor-1 leaves. For every k\ge2, the alternating string of length k-2 starting with 1 attains this minimum (use the empty string for k=2).
An intact branch extends agreement to five sixths
Two trees can agree on larger samples if their shared deck need not contain every spine. Clifton and colleagues [1, Lemma 3.3] showed agreement at half the leaves using a subtree common to both trees that already displayed every card of that size in either tree. We use a tree with two different shapes left by deleting one leaf. If each deletion still displays all the parent's small cards, an intact copy of the parent can supply the larger branch of a sample. This lets us double the threshold below which agreement is guaranteed.
To find a starting pair, we compared 257,352 distinct pairs of a parent tree and a one-leaf deletion at sizes 5 through 17, using parents with at least two different deletion shapes. Two six-leaf parents each had two deletions that retained every four-leaf card. Figure 1 shows the parent with three cherries, labelled B, and its deletions, A and C.

Figure 1. Deleting a leaf from opposite branches of B produces different five-leaf trees A and C. Both still display both four-leaf shapes. For the balanced shape, take the intact four-leaf branch in A, or take two leaves per side in C. For the unbalanced shape, take one leaf on the left and three on the right in either tree.
Write X\oplus Y for the tree formed by joining X and Y at a new root. Suppose A and C are distinct one-leaf deletions of B and each displays every card of B with fewer than d leaves. Join two copies of the parent, then delete a leaf from just one copy:
Use subscripts to count doublings, starting with the trees A_0,B_0,C_0 in Figure 1. Both deletions display all the parent's cards with fewer than d_0=5 leaves. After j doublings, the parent B_j has 6\cdot2^j leaves. Its deletions A_j and C_j have n=6\cdot2^j-1 leaves and agree at every sample size below d_j=5\cdot2^j.
What distinguishes the pair at exactly d_j leaves? Start with the card W_0=A_0. It uses all five leaves, so it cannot occur in the different five-leaf tree C_0. Double the card along with the trees by taking W_{j+1}=W_j\oplus W_j. Whenever A_j displays W_j, its parent B_j does too. Joining them therefore gives a copy of W_{j+1} in A_{j+1}. In C_{j+1}, however, neither root branch alone can hold the 10\cdot2^j leaves of W_{j+1}. A copy spanning the root would require an entire W_j in C_j. Since C_0 lacks W_0, this rules out the doubled card at every step. The first distinguishing card thus has exactly d_j leaves, one more than \lfloor5n/6\rfloor.
Enumeration and checks
We generated tree shapes in order of increasing leaf count. For each count we joined every unordered pair of smaller shapes with that many leaves between them. We checked the small deletion examples against the public table of 399 shapes through 11 leaves in the appendix of Brosch and Puges [2].
To compute decks for a fixed sample size k, we began with trees of k leaves, each of which has only itself as a card. For each larger tree, we combined the sets of cards from all its distinct one-leaf deletions. This gives the full deck because every sample smaller than the tree omits at least one leaf. We grouped trees of the same size by their decks and counted all pairs within each group to obtain the census. Comparing each parent's deck with those of its deletions identified parents with two deletions that preserved the deck.
We also computed cards directly from the two branches at the root. We paired every sample shape from one branch with every sample shape from the other; choosing no leaves on one side gives just the shape from the other side. This independent calculation verified the common decks for every string of the lengths used in the all-size bound through 28 leaves. Among them were 84 distinct trees on 24 leaves that agreed through 16. For the five-sixths construction, the calculation found the first differences at 5, 10 and 20 leaves for pairs on 5, 11 and 23 leaves, respectively. The proofs extend beyond the sizes enumerated.
These are worst-case bounds: a card that distinguishes one pair need not distinguish every pair of the same size. The five-sixths construction gives infinitely many tree sizes. Whether pairs can agree that far at every sufficiently large size remains open.
References
[1] A. Clifton, É. Czabarka, A. Dossou-Olory, K. Liu, S. Loeb, U. Okur, L. Székely and K. Wicke. Decks of rooted binary trees. European Journal of Combinatorics 124 (2025), 104076. Theorems 3.2 and 3.12; Lemma 3.3; Problem 5.1.
[2] D. Brosch and D. Puges. Getting to the root of the problem: sums of squares for limits of trees. Appendix, table of rooted binary tree shapes.