Papers
Topics
Authors
Recent
Search
2000 character limit reached

Ordered Leaf Attachment in Phylogenetics

Updated 6 July 2026
  • Ordered Leaf Attachment is an order-dependent encoding method that represents rooted binary phylogenetic trees as bijective integer vectors with linear-time complexity.
  • It employs persistent negative labels and fixed leaf orderings to record the stepwise attachment process, thereby capturing essential tree-growth history.
  • The method facilitates robust Hamming-distance measures and extensions to reticulation detection and multifurcated trees, linking to classic phylogenetic metrics.

Searching arXiv for the cited Ordered Leaf Attachment papers to ground the article in current sources. Ordered leaf attachment (OLA) is an order-dependent vector encoding of rooted phylogenetic trees in which a fixed ordering of the leaves determines a stepwise tree-growth or tree-deconstruction process, and each step records where the next leaf is attached. In the recent phylogenetics literature, OLA is studied primarily for rooted binary phylogenetic trees, where it provides a bijective integer-vector representation with linear-time encoding and decoding, and induces a Hamming-distance-based dissimilarity on tree space (Richman et al., 13 Mar 2025). Subsequent work analyzes how strongly this induced dissimilarity depends on the chosen leaf ordering and relates it to rooted subtree prune and regraft distance, the hybrid number, the temporal tree-child hybrid number, and maximum acyclic agreement forests; it also extends the framework to reticulation detection and multifurcated trees (Linz et al., 15 Jul 2025, Markin et al., 19 Sep 2025).

1. Definition and basic construction

OLA represents a rooted binary phylogenetic tree relative to a fixed linear order on its leaves. In one formulation, the leaves are labeled 0,1,,n10,1,\dots,n-1, and the tree is imagined as being constructed by adding leaves one by one in that order; the recorded datum at each step is the label of the node that was the sister of the newly inserted leaf (Richman et al., 13 Mar 2025). In another formulation, one fixes a bijection σ:X{1,,n}\sigma:X\to\{1,\dots,n\} or equivalently an ordering (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1}), and processes leaves in increasing order of rank under σ\sigma (Linz et al., 15 Jul 2025, Markin et al., 19 Sep 2025). These are equivalent ordered-growth viewpoints with different indexing conventions.

A central technical feature is the use of persistent internal-node labels. In the formulation of "Vector encoding of phylogenetic trees by ordered leaf attachment" (Richman et al., 13 Mar 2025), OLA assigns canonical negative labels to internal nodes, 1,2,,n+1-1,-2,\dots,-n+1, through a two-pass labeling scheme based on clade-founder and clade-splitter values. In "Order-Dependent Dissimilarity Measures on Phylogenetic Trees" (Linz et al., 15 Jul 2025), the OLA labeling is a map

fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},

with leaves labeled by their ranks under σ\sigma and each newly created internal vertex uiu_i labeled i-i. The common principle is that once an internal vertex receives its negative label, that label is not updated as later leaves are attached.

The encoding can be described either constructively or destructively. Constructively, one starts from the first one or two leaves and repeatedly adjoins the next leaf by subdividing an edge, creating a new internal node, and recording the sibling label of the new leaf (Linz et al., 15 Jul 2025, Markin et al., 19 Sep 2025). Destructively, one assigns canonical internal labels, deletes leaves in reverse order, records each deleted leaf’s sister label, and reconnects the remaining subtree (Richman et al., 13 Mar 2025). These procedures are inverse to corresponding decoding procedures, yielding a bijection between trees and valid integer vectors (Richman et al., 13 Mar 2025).

2. Vector form, valid coordinates, and bijectivity

The OLA vector length depends on convention. In (Richman et al., 13 Mar 2025) and (Markin et al., 19 Sep 2025), an nn-leaf tree is encoded by a vector of length σ:X{1,,n}\sigma:X\to\{1,\dots,n\}0, because there is one recorded placement for each leaf except the first. In (Linz et al., 15 Jul 2025), the vector is presented in length-σ:X{1,,n}\sigma:X\to\{1,\dots,n\}1 form with fixed initial coordinates: σ:X{1,,n}\sigma:X\to\{1,\dots,n\}2 The difference is not substantive; it reflects indexing and initialization conventions.

A notable property of OLA is that the set of valid vectors has a simple explicit description. In (Richman et al., 13 Mar 2025), the valid codes are exactly

σ:X{1,,n}\sigma:X\to\{1,\dots,n\}3

so each coordinate satisfies σ:X{1,,n}\sigma:X\to\{1,\dots,n\}4. In (Markin et al., 19 Sep 2025), the coordinate bounds are written as

σ:X{1,,n}\sigma:X\to\{1,\dots,n\}5

and the corresponding vector set is

σ:X{1,,n}\sigma:X\to\{1,\dots,n\}6

These formulations are compatible after adjusting for whether indexing starts at σ:X{1,,n}\sigma:X\to\{1,\dots,n\}7 or σ:X{1,,n}\sigma:X\to\{1,\dots,n\}8 and how the first fixed coordinate is handled.

The bijective character of OLA is emphasized in both foundational and later work. "Vector encoding of phylogenetic trees by ordered leaf attachment" proves that the tree-to-vector map σ:X{1,,n}\sigma:X\to\{1,\dots,n\}9 and the vector-to-tree map (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})0 are inverse bijections (Richman et al., 13 Mar 2025). "Ordered Leaf Attachment (OLA) Vectors can Identify Reticulation Events even in Multifurcated Trees" states that every integer vector in (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})1 corresponds to a unique rooted binary phylogenetic tree (Markin et al., 19 Sep 2025). This explicit characterization distinguishes OLA from other encodings whose valid-vector sets are more intricate.

3. Algorithms and computational complexity

OLA was introduced in part to provide a representation that is both structurally simple and computationally efficient. The 2025 encoding paper states that both encoding and decoding are (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})2 in the number of leaves (Richman et al., 13 Mar 2025). The linear-time bound is achieved because canonical internal labeling uses two traversals, and the subsequent encoding or decoding loop processes each leaf once while relying on constant-time label-to-node or label-to-leaf access structures.

The constructive decoding procedure in (Richman et al., 13 Mar 2025) is especially transparent. Starting from a single leaf (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})3, one scans the vector (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})4; for each (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})5, one finds the node currently carrying label (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})6, subdivides its parent edge, labels the new internal node (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})7, and attaches a new leaf (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})8. The inverse encoding deletes leaves in reverse order and records the sister label of each deleted leaf. A stability property under restriction is crucial: if (l0,l1,,ln1)(l_0,l_1,\dots,l_{n-1})9 has OLA vector σ\sigma0, then σ\sigma1 has OLA vector σ\sigma2 for any σ\sigma3 (Richman et al., 13 Mar 2025).

The linear-time perspective is preserved in later generalizations. For fixed ordering σ\sigma4, (Markin et al., 19 Sep 2025) states that both encoding and decoding are σ\sigma5, and that the corrected OLA distance for a fixed set of σ\sigma6 trees can be computed in linear time by a single scan of the vectors. For multifurcated trees, the paper introduces an σ\sigma7 resolution algorithm, where σ\sigma8 is the size of a largest multifurcation (Markin et al., 19 Sep 2025). This places OLA in a regime where vectorization, comparison, and some downstream combinatorial reconstructions remain polynomial-time even when the associated phylogenetic optimization problems are otherwise difficult.

4. The induced OLA distance and ordering dependence

For a fixed leaf ordering, the OLA distance between two rooted phylogenetic trees is the Hamming distance between their OLA vectors. In (Richman et al., 13 Mar 2025), if σ\sigma9 and 1,2,,n+1-1,-2,\dots,-n+10, then

1,2,,n+1-1,-2,\dots,-n+11

In (Linz et al., 15 Jul 2025), the same idea is written as

1,2,,n+1-1,-2,\dots,-n+12

for OLA vectors 1,2,,n+1-1,-2,\dots,-n+13 and 1,2,,n+1-1,-2,\dots,-n+14 computed under the same ordering 1,2,,n+1-1,-2,\dots,-n+15. For fixed 1,2,,n+1-1,-2,\dots,-n+16, this is stated to be a genuine distance satisfying the triangle inequality (Linz et al., 15 Jul 2025).

The defining limitation of OLA is that it is highly order-dependent. The same tree can have substantially different OLA vectors under different orderings, and the dissimilarity between two fixed trees can vary strongly with 1,2,,n+1-1,-2,\dots,-n+17. "Order-Dependent Dissimilarity Measures on Phylogenetic Trees" proves that for certain pairs of trees on 1,2,,n+1-1,-2,\dots,-n+18 leaves, the difference

1,2,,n+1-1,-2,\dots,-n+19

can be as large as fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},0, and that this bound is sharp (Linz et al., 15 Jul 2025). The order-minimized version

fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},1

is therefore natural, but after minimizing over all orderings it is no longer guaranteed to satisfy the triangle inequality (Linz et al., 15 Jul 2025).

This order sensitivity is not merely a technical nuisance. The papers treat it as the central mechanism through which OLA can either obscure or expose structural discordance. A plausible implication is that OLA should be understood less as an intrinsic coordinate system on unlabeled tree space than as a family of order-conditioned encodings whose informativeness depends on how well the ordering aligns with the combinatorial or biological process of interest. This interpretation is explicit in the later connections to cherry-picking sequences and temporally ordered samples (Linz et al., 15 Jul 2025, Markin et al., 19 Sep 2025).

5. Relations to other tree distances and encodings

OLA is repeatedly compared with Phylo2Vec and HOP, two other recent order-dependent vector encodings of rooted phylogenetic trees. The principal contrast with Phylo2Vec is that OLA uses persistent negative labels for internal nodes, whereas Phylo2Vec relabels interior vertices repeatedly as leaves are added (Linz et al., 15 Jul 2025, Richman et al., 13 Mar 2025). Under a cherry-picking-sequence ordering, OLA and Phylo2Vec vectors coincide (Linz et al., 15 Jul 2025). HOP, by contrast, uses a longer vector of length fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},2 and encodes root-to-leaf path structure more richly (Linz et al., 15 Jul 2025).

The relationship between OLA distance and classical rearrangement distances is nuanced. The original OLA paper shows that a single NNI move can alter as many as fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},3 OLA entries, so no worst-case constant-factor comparison with NNI distance is possible (Richman et al., 13 Mar 2025). Nevertheless, if fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},4 is a uniformly random NNI neighbor of a fixed tree fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},5, then

fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},6

for fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},7 (Richman et al., 13 Mar 2025). For SPR, the paper provides examples where a single SPR move also yields large OLA distance and states the conjecture

fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},8

where fOLA:(V(T){ρ}){1,2,,n}{2,3,,n},f_{\mathrm{OLA}}:(V(T)-\{\rho\})\to \{1,2,\dots,n\}\cup\{-2,-3,\dots,-n\},9 is a uniformly random SPR neighbor of fixed σ\sigma0 (Richman et al., 13 Mar 2025).

Later work gives stronger comparison results with rooted subtree prune and regraft distance and hybridization parameters. For OLA, (Linz et al., 15 Jul 2025) proves that there exists an ordering σ\sigma1 such that

σ\sigma2

hence

σ\sigma3

At the same time, the paper shows there are pairs with

σ\sigma4

so OLA does not characterize rSPR exactly (Linz et al., 15 Jul 2025). It also proves the more general upper bound

σ\sigma5

where σ\sigma6 is the hybrid number, while noting that strict inequality can occur for OLA (Linz et al., 15 Jul 2025).

6. Cherry-picking sequences, agreement forests, and reticulation

OLA acquires sharper combinatorial meaning when the leaf ordering is constrained by a common cherry-picking sequence. If σ\sigma7 is a common cherry-picking sequence for two trees σ\sigma8 and σ\sigma9, and uiu_i0 is the induced ordering given by the reverse order of the sequence, then (Linz et al., 15 Jul 2025) states that

uiu_i1

After minimizing over all such induced orderings, one obtains

uiu_i2

where uiu_i3 is the temporal tree-child hybrid number (Linz et al., 15 Jul 2025). In this regime, OLA is not merely a proxy but an exact representation of the same quantity.

The 2025 reticulation paper refines the distance notion by defining a corrected OLA distance uiu_i4 that propagates mismatches when both trees attach a leaf above a placement already known to differ (Markin et al., 19 Sep 2025). For two trees, the mismatch set uiu_i5 includes index uiu_i6 either when the corresponding OLA entries differ, or when both entries are the same negative index uiu_i7 with uiu_i8. The corrected distance is then uiu_i9; the construction extends to sets of i-i0 trees (Markin et al., 19 Sep 2025).

The central theorem of (Markin et al., 19 Sep 2025) states that if i-i1 for a set i-i2 of rooted binary trees on the same leaf set, then

i-i3

where i-i4 is a maximum acyclic agreement forest. The paper proves both directions: an acyclic agreement forest yields an ordering with small corrected OLA distance, and conversely a mismatch structure in optimal OLA vectors yields an acyclic agreement forest of corresponding size (Markin et al., 19 Sep 2025). It also states that a MAAF can be reconstructed directly from optimal OLA vectors by identifying mismatch indices, forming initial blocks, assigning consensus leaves by span, and taking induced subtrees on those leaf blocks.

7. Extensions, applications, and scope

The most substantial extension beyond binary trees appears in (Markin et al., 19 Sep 2025), which adapts OLA to multifurcated trees by preprocessing each tree into a placement vector i-i5 together with a Boolean vector i-i6 indicating whether a given leaf creates a multifurcation in the partial tree. The paper’s resolution algorithm then constructs binary refinements that preserve the corrected-distance/MAAF correspondence under a fixed ordering. The resulting theorem states that if i-i7 minimizes the corrected OLA distance on trees resolved by this algorithm, and i-i8 is a set of optimal resolutions minimizing i-i9, then

nn0

for possibly nonbinary trees as well (Markin et al., 19 Sep 2025).

These results motivate applications to fast phylogenetic network computation, reticulation-number estimation, and agreement-forest reconstruction. When no distinguished leaf order is available, (Markin et al., 19 Sep 2025) proposes sampling many random leaf permutations, computing nn1 for each, and retaining the minimum as a practical heuristic upper bound. When a natural temporal order exists, the paper argues that the sample collection date often provides such an ordering for pathogens and fast-evolving microbes; under the stated mild assumption that ancestors are rarely sampled after descendants, reticulation events can then be identified in polynomial time (Markin et al., 19 Sep 2025).

A common misconception would be to regard OLA as an order-invariant summary of tree topology or as an exact substitute for rSPR or hybrid number in unrestricted settings. The cited results do not support that interpretation. Instead, OLA is a compact, bijective, and computationally efficient encoding whose explanatory power depends critically on ordering. In unrestricted form it is an order-dependent Hamming-space representation; under special orderings, especially those induced by common cherry-picking sequences or agreement-forest structure, it becomes tightly coupled to reticulation-aware phylogenetic invariants (Linz et al., 15 Jul 2025, Markin et al., 19 Sep 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Ordered Leaf Attachment.