FindingMath

One cutoff gives the best growth rate for trees that reserve space by branch size

Version 1 Published 2026-11-26 DOI 10.5281/zenodo.24567082

Importance (self-rated) Notable

The matching lower bound pins down the limit of one universal-tree construction method: reserving separately supplied branches by size along a path.

Why it matters

One way to store many branching patterns in one tree is to reserve space for smaller branches along a path. Changing the sizes or order of those reservations can save leaves at particular sizes, but we proved that it cannot improve on the known design’s long-run growth exponent.

Given two nodes in a hierarchy, how can we find their deepest shared ancestor from their labels alone? One way to assign labels is to fit the hierarchy into a fixed tree, called a host, and use each node's address in the host as its label. A smaller host takes fewer bits to address. The challenge is to keep it small while making it universal: it must hold every binary branching pattern with at most n leaves.

One construction reserves space for side branches along a path. Each reservation must hold any branch up to a specified number of leaves, and each gets a separate host built by the same rule. A known construction picks one cutoff position for the largest reservation and follows a fixed rule on either side. Could choosing the size and position of every reservation freely make the host grow more slowly? We prove that the minimum number of host leaves grows as n^p, up to constant factors, with p=1.893111146\ldots. The one-cutoff construction already achieves this exponent of 1.893111\ldots.

How one tree fits into another

In a full rooted binary tree, each node is either a leaf or has two children. Left and right children are interchangeable. To recover a branching pattern from a host, select some leaves and trace their paths back to their nearest common ancestor, the deepest node ancestral to them all. Keep the paths and remove each node that now has only one child, joining the path on either side of it. A pattern obtained this way is a rooted topological minor of the host. For examples of binary tree shapes, see the appendix of Brosch and Puges [3].

To fit a given tree (the target) into a host, start at the target's root. At each fork, follow the child with more leaves below it, choosing either child in a tie. This route ends at a leaf and is called the heavy path. Each fork has a side branch: the other child and its descendants. Fit the heavy path along a path in the host and assign its side branches to host branches in the order in which they occur.

Gawrychowski and Łopuszański [1] used geometrically spaced branch sizes and a single threshold, or cutoff, at which the path enters a smaller universal tree. They derived an inequality for their host's growth exponent and verified an upper bound of 1.894. Kuhn, Panagiotou and Su [2] gave the optimized upper exponent 1.89311\ldots for a binary tree construction that preserves each pair's nearest common ancestor. This property makes the labels useful: the nearest common ancestor of two host addresses is the address of the corresponding ancestor in the target. For binary hosts free to use any arrangement that contains every target as a rooted topological minor, Gawrychowski and Łopuszański proved a lower bound of order n^{1.728}.

Turning branches into requests for space

Suppose there are r leaves below a fork on the target's heavy path. Its side branch requests room for d leaves, where 1\le d\le\lfloor r/2\rfloor. The floor symbol means to round down to an integer. The path continues with r-d leaves. Call the sequence of requests from a tree with r leaves a word of size r. A tree of size one gives the empty word. Every word allowed by this rule occurs in a tree: at each fork attach a d-leaf tree beside the continuation of size r-d, using a copy of the continuation in a tie.

A schedule lists the capacities d_1,\ldots,d_s reserved along the host path from the root down. Each reservation is a slot with a positive integer capacity. A word fits if its requests can use distinct slots in order, each with capacity at least as large as the request. It can skip slots. For example, (1,2,1) covers every word of size at most four. A first request of two uses the middle slot, leaving the last slot for the final request of one. A first request of one uses the first slot, leaving enough room for every continuation of size three. Reordering the slots as (1,1,2) loses the word (2,1): after the request of two, no slot remains.

Let f(n) be the fewest leaves a host built by this rule needs to cover every word of size at most n. The host path ends in a leaf, so f(1)=1. For n\ge2, the cost of a schedule is 1+\sum_{j=1}^s f(d_j): count the terminal leaf and the leaves in the separate host for each slot. Minimize this cost over schedules that cover all the words. We require d_j\le\lfloor n/2\rfloor, the largest possible request. The example costs five leaves, four in the side branches and one at the end of the path. The minimum cost cannot decrease with n: a schedule for a larger tree size still covers every word under a smaller size bound, and oversized slots can be trimmed recursively.

In this notation the result is f(n)=\Theta(n^p). A constant times n^p leaves suffices, and every schedule needs at least a positive constant times n^p leaves. The exponent p=1.893111146\ldots is the unique solution in (1,2] of equation (2) below.

Finding the cheapest schedule

Number the positions along the host path n,n-1,\ldots,2 from the root down. The numbers track how many leaves remain in the target. A request for d out of r remaining leaves can use any position in the interval

[r-d+1,r].
If this interval contains a slot of capacity at least d, the request fits and positions r-d and below remain free for the continuation. A schedule therefore covers all words if it meets this interval requirement for every 2\le r\le n and 1\le d\le\lfloor r/2\rfloor.

Conversely, any covering schedule can be placed at these numbered positions at no extra cost. To see why, consider a suffix, the list of slots from some point to the end of the path. Define its rank h as the largest size up to which it covers all words. The empty suffix has rank one. If a suffix misses a word of size s, adding requests of one to the front of the word gives a missed word at every larger size. Adding a slot to the front of the suffix can therefore raise its rank by at most one. Indeed, take a missed word of size h+1 and put a one in front of it. Wherever that one fits, only slots from the old suffix remain for the missed word.

Label each slot by one plus the rank of the suffix after it. For any r from 2 to n, take the shortest suffix of rank r. Such a suffix exists because the rank rises by at most one per slot. All shorter suffixes have rank at most r-1, so the labels in the chosen suffix are at most r. Now take its earliest slot large enough for a request of d. Every word of size r-d can follow that request. Choosing the earliest slot leaves the most room, so the suffix after it must cover all those words. The slot's label is therefore at least r-d+1. Its label lies in the required interval. Keeping just the largest capacity at each label from 2 to n meets every interval requirement and cannot increase the cost.

Let C(i,j) be the minimum cost of meeting all requirements whose intervals lie wholly inside [i,j]\subseteq[2,n]. An empty interval costs zero. The largest request inside a nonempty interval is

m=\min(j-i+1,\lfloor j/2\rfloor).
The interval of length m ending at j needs a slot at least this large, and no request needs a larger one. Call the position k of a largest slot the pivot and give it capacity m. It satisfies every requirement whose interval contains k. Each remaining requirement lies entirely to one side and needs a slot on that side. Trying every pivot thus gives the exact minimum:
C(i,j)=f(m)+\min_{i\le k\le j}\{C(i,k-1)+C(k+1,j)\},\qquad f(n)=1+C(2,n). \tag{1}

Minimum costs for finite trees

We compared all 603,979,520 pivot choices in (1) through 1,536 target leaves. At every target size n with a pivot, at least one cheapest choice on the full interval satisfied k-1\ge\lfloor n/2\rfloor. An independent search tried slot capacities directly, keeping track of the sets of request words still to be served. Its minima agreed with the interval calculation at every size from 2 through 16.

Minimum host leaves at selected target sizes:

Target leaves All pivot positions Pivot restricted to upper half¹ Direct word search
4 5 5 5
8 14 14 14
16 44 44 44
32 149 149 —
128 1,910 1,910 —
512 25,895 25,895 —
1,024 95,718 95,718 —

¹ The restriction applies to the pivot of [2,n]; the two remaining intervals are optimized freely. A dash means the direct search was not run.

Even when an interval's largest request equals its length L, splitting it evenly can waste leaves. In this subproblem the best cost is f(L) plus the cheapest pair of costs for child intervals whose lengths sum to L-1. At length nine, splitting into four and four costs 34 leaves; three and five cost 33. Splitting as evenly as possible missed the minimum at 1,314 of the 1,535 lengths tested.

Why one cutoff suffices

In the construction of Gawrychowski and Łopuszański [1, §3.1], the cutoff sets the position of the pivot that can take half the leaves. Write t for the fraction of positions on the lower-numbered side of the pivot. On that side the construction uses a smaller universal tree for about tn leaves. On the other side it takes an interval of length about (1-t)n and repeatedly splits it in half.

To see how the cost grows, suppose each capacity d costs at most d^p, with 1<p\le2. Repeatedly halving an interval of length L costs at most A L^p, where A=(1-2^{1-p})^{-1}. The first slot costs at most L^p. At the next level there are twice as many intervals, each half as long, so their combined cost bound falls by a factor of 2^{1-p} at each level. Summing over levels gives the factor A. Before rounding to integers, the three parts have simple cost bounds as fractions of the budget n^p. The pivot costs at most 2^{-p} of the budget, the smaller universal tree at most t^p, and the repeatedly halved interval at most A(1-t)^p. The critical exponent is the one at which the best choice of cutoff just meets the budget:

2^{-p}+\min_{0\le t\le1}\{t^p+A(1-t)^p\}=1. \tag{2}
This is the published threshold inequality at equality, optimized over the authors' threshold \alpha=t. Their geometric-series factor 2^{p-1}/(2^{p-1}-1) equals A. Kuhn, Panagiotou and Su [2] use the complementary parameter \lambda=1-t.

The minimum occurs at t=x/(1+x), where x=A^{1/(p-1)}. The left side of (2) is continuous and strictly decreasing in p: at each fixed t the expression in braces is nonincreasing, and 2^{-p} strictly decreases. The minimizer formula gives a limit of 3/2 as p approaches one and a value of 1/4+2/3 at two. The left side therefore crosses one exactly once. At that exponent the best cutoff is t=0.703850698\ldots.

The same budget covers whole numbers of leaves. Assume f(d)\le d^p for d<n. For an interval of length L<n, a central slot costs at most L^p and leaves two intervals of length at most L/2. Since 1+2^{1-p}A=A, induction on length bounds the total cost by A L^p. On the full interval [2,n], choose k=1+\lfloor tn\rfloor, a valid pivot for n\ge2 since t>1/2. The pivot costs f(\lfloor n/2\rfloor). The lower-numbered interval together with the terminal leaf costs f(k-1), and the higher-numbered interval has length at most (1-t)n. Adding these costs and applying (2) gives f(n)\le n^p, completing the induction on n. The balanced splits on the higher-numbered side therefore suffice for this exponent despite their extra cost at some finite sizes.

A lower bound for every choice of pivot

For a lower bound, assign each interval a price. The key is to show that wherever we put the pivot, the branch at the pivot plus the two intervals left to fill cost at least the price of the original interval. This lets us carry the bound through every split in (1).

First allow the endpoints a,b to be real numbers with 0\le a\le b. The largest request is represented by w=\min(b-a,b/2). When the interval lies in the upper half of [0,b], the request equals the full length. We price that interval by the cost of repeated halving. For a longer interval the request stops growing at b/2; there we choose a price that accounts for splits below the midpoint as well. The price is

H(a,b)= \begin{cases} A(b-a)^p,&a\ge b/2,\\ b^p-2a^p,&a<b/2 . \end{cases}
Either price is at least b^p-2a^p: we have A\ge2, and convexity with p\le2 gives 2((b-a)^p+a^p)\ge b^p.

The pivot at a split point h incurs a cost of w^p. We need to show that for every a\le h\le b,

w^p+H(a,h)+H(h,b)\ \ge\ H(a,b). \tag{3}
If a\ge b/2, both child intervals also use the price based on length. Convexity makes their combined price smallest at the middle, where (3) is an equality.

If a<b/2, the pivot costs (b/2)^p. For h<b/2, use the general lower bound on both child prices. Subtracting the right side of (3) from the left then leaves at least (b/2)^p-h^p\ge0. For h\ge b/2, the right interval uses the length price A(b-h)^p. Using the general bound for the left interval and canceling -2a^p leaves

(b/2)^p+h^p+A(b-h)^p\ge b^p.
Dividing by b^p gives the budget expression in (2) with t=h/b. Its minimum is one. Thus the same cutoff that attains the upper bound minimizes the cost bound for a split in the upper half, and a split below the midpoint cannot undercut the bound either.

Accounting for whole leaves in the lower bound

Removing a pivot from an integer interval leaves two intervals whose lengths sum to one less than the original length. To make their real endpoints meet as in (3), give each interval one extra unit of length, even when it is empty. Choose a fixed shift D\ge3 large enough that ((D-1)/2)^p\ge A. Represent the integer interval [i,j] by endpoints

a=i-2+D,\qquad b=j+D.
At pivot k the two child intervals now meet at h=k-1+D. A nonempty interval has real length j-i+2, one more than its number of positions. Its integer demand m from (1) satisfies
m+D\ \ge\ w+(D-1)/2,\qquad (m+D)^p\ \ge\ w^p+A. \tag{4}
For the first inequality, the two candidates for m+D exceed b-a and b/2, respectively, by at least (D-1)/2. For the second, raising a sum of nonnegative numbers to this power gives at least the sum of their powers. The extra A will pay for applying the interval bound twice, once on each side of the pivot.

Choose a constant c>0 small enough that c(1+D)^p\le1 and c(2D^p+A)\le1. We prove by induction that f(n)\ge c(n+D)^p. The first condition on c gives the bound at one. For a larger size n, every slot demand in (1) is smaller than n, so we can use the induction bound for its cost. We show that every subinterval satisfies

C(i,j)\ge c\,[H(a,b)-A]. \tag{5}
An empty interval (j=i-1) has real length one and a\ge b/2, so the right side of (5) is zero. In a nonempty interval, the induction bound on the slot cost and (4) give at least c(w^p+A) for the pivot. By induction on length, (5) gives at least c times the two child prices, less 2cA. Adding the pivot cost restores cA, so (3) leaves at least c[H(a,b)-A] for every pivot. This proves (5).

For the full interval [2,n] the lower endpoint is a=D. Using H(a,b)\ge b^p-2a^p and adding the terminal leaf gives

f(n)\ge 1+c[(n+D)^p-2D^p-A]\ge c(n+D)^p.
The last inequality uses the second condition on c. This completes the lower bound for integer leaf counts and proves the matching order of growth f(n)=\Theta(n^p).

Scope of the result

Choosing individual slot sizes and positions can save leaves, but it cannot lower the exponent while each slot is paid for separately and must hold every branch up to its stated size. A host branch may happen to fit particular shapes larger than that guarantee. A construction that uses those shapes or follows a different path need not obey the bound. The gap between the bounds for unrestricted universal trees remains, as does the separate question of how short the labels can be.

References

  1. Paweł Gawrychowski and Jakub Łopuszański (2017). Better Labeling Schemes for Nearest Common Ancestors through Minor-Universal Trees, §§3.1 and 4.1.
  2. Fabian Kuhn, Konstantinos Panagiotou and Pascal Su (2017). Nearest Common Ancestors: Universal Trees and Improved Labeling Schemes.
  3. Daniel Brosch and Diane Puges. Getting to the Root of the Problem: Sums of Squares for Limits of Trees, binary tree shapes in the appendix.