Skip to main content
. 2017 Sep 1;24(9):831–850. doi: 10.1089/cmb.2016.0159

FIG. 8.

FIG. 8.

Composition of two trees t1 and t2 of sizes Inline graphic and Inline graphic to obtain a tree t of size Inline graphic. (A) Trees t1 and t2, with leaves labeled by Inline graphic and Inline graphic. As in Section 2.1, we impose without loss of generality a linear order Inline graphic for the leaves of a tree; here, we have Inline graphic and Inline graphic. (B) Relabeling of trees t1 and t2. After relabeling, t1 and t2 have leaves labeled in the set Inline graphic of size Inline graphic. For the relabeling procedure, we choose (dotted circles) n1 elements among the n possible new labels Inline graphic. There are exactly Inline graphic different choices. The chosen elements relabel t1, whereas the elements not selected (dotted squares) relabel t2. With respect to the order Inline graphic, the ith label of t1 is assigned the label determined by the ith circle. Similarly, the ith label of t2 is assigned the label determined by the ith square. (C) After relabeling t1 and t2, the new tree t is obtained by appending t1 and t2 to a shared root node. Starting with trees t1 and t2 in (A), the same procedure can generate Inline graphic different trees t, one for each possible choice of the n1 elements (dotted circles) among the n new labels. The only exception is when Inline graphic, for which the Inline graphic relabelings generate each tree exactly twice.