---
title: "Minimum projective linearizations of trees in linear time (2021)"
description: "How minimum projective tree arrangements become a linear-time problem, why the root matters, and how the algorithms repair earlier work."
canonical: "https://research.elamur.ai/free/en/papers/alemany-2021-puig-minimum-projective-linearizations-trees-linear/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alemany-2021-puig-minimum-projective-linearizations-trees-linear/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Minimum projective linearizations of trees in linear time

# Minimum projective linearizations of trees in linear time

Paper · 2021 · Lluis Alemany-Puig, Juan Luis Esteban and Ramon Ferrer-i-Cancho

**Authors:** [Lluis Alemany-Puig](https://md.research.elamur.ai/free/en/authors/lluis-alemany-puig/), [Juan Luis Esteban](https://md.research.elamur.ai/free/en/authors/juan-luis-esteban/) and [Ramon Ferrer-i-Cancho](https://md.research.elamur.ai/free/en/authors/ramon-ferrer-i-cancho/) · **Year:** 2021 · **Venue:** arXiv:2102.03277 · Lluís Alemany-Puig, Juan Luis Esteban, Ramon Ferrer-i-Cancho (2022). Minimum projective linearizations of trees in linear time. Information Processing Letters 174, 106,204 · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**10** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3128591281) · [arXiv:2102.03277 · Lluís Alemany-Puig, Juan Luis Esteban, Ramon Ferrer-i-Cancho (2022). Minimum projective linearizations of trees in linear time. Information Processing Letters 174, 106,204](https://openalex.org/S147953040) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2102.03277)
- [DOI 10.1016/j.ipl.2021.106204](https://doi.org/10.1016/j.ipl.2021.106204)
- [arXiv 2102.03277](https://arxiv.org/abs/2102.03277)
- [OpenAlex](https://openalex.org/W3128591281)

Citations: OpenAlex, 2026-10-14.

## What it is about

How minimum projective tree arrangements become a linear-time problem, why the root matters, and how the algorithms repair earlier work. · about 32 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Putting the vertices of a tree in a row creates a simple optimization problem: how should they be ordered so that the edges connecting them are as short as possible? Each edge contributes the distance between its endpoints, and the objective is to minimize the total. The difficulty changes when the ordering must respect additional structural conditions. This paper studies arrangements in which edges do not cross, and a more restrictive version in which a designated root must also remain uncovered by every edge. Its main contribution is a precise account of how to find optimal arrangements under these conditions in linear time.

The distinction between the conditions is essential. A planar arrangement has no crossings when edges are drawn above the row of vertices. A projective arrangement must additionally leave the root outside the interior of every edge. The same ordering can therefore be projective for one choice of root and fail to be projective for another. The paper illustrates the consequence with a tree whose minimum projective cost, when rooted at vertex 1, is 7, whereas its minimum planar cost is 6. Choosing a particular vertex as the root can impose a real cost, even though the underlying undirected tree has not changed.

The authors connect these problems through a structural result from Hochberg and Stallmann’s earlier work: a minimum planar arrangement can be obtained by rooting the free tree at a centroidal vertex and then finding a minimum projective arrangement. A centroidal vertex minimizes the size of the largest branch remaining around it; it is different from a center defined through distances. This connection exposes a projective optimization procedure inside an algorithm originally presented for the planar problem. It also lets the authors repair that earlier algorithm, whose recursive displacement calculation omitted vertices that affect a node’s position.

The paper develops separate implementations around the same ordering principle. At each vertex, child subtrees are considered from largest to smallest, placed alternately on opposite sides, and allocated positions from the outside inward. One implementation adapts the corrected displacement procedure. Another gives every subtree an interval of available positions and recursively fills its ends until only the parent’s position remains. Both have O(n) time and O(n) space complexity, where n is the number of vertices. The evidence is mathematical and algorithmic: the paper provides constructions, correctness arguments grounded in earlier structural results, and explicit complexity accounting. It does not report a corpus experiment or a runtime benchmark.

### Ideas worth borrowing

Make the constraint part of the problem definition. Planarity and projectivity can look nearly identical in a drawing, yet their feasible arrangements differ because projectivity depends on the root. Treating this distinction explicitly prevents an optimizer from returning an excellent answer to the wrong problem. The same discipline applies whenever a system optimizes over structures with permissions, boundary conditions, designated entry points, or other restrictions that cannot be recovered from the objective alone.

Look for a reusable solver inside a broader algorithm. The planar algorithm reviewed here already contained machinery for projective optimization, although it had not been isolated under that description. Extracting it removes work that a fixed-root problem does not require and reveals a cleaner relationship between tasks. This approach is useful when a mature procedure mixes preprocessing, selection, optimization, and output construction: one of those stages may solve another important problem on its own.

Use a structural reduction rather than searching every configuration. The connection through a centroidal vertex avoids treating every possible root as an independent optimization problem. A theorem identifies a root at which projective optimization also solves the planar task. More broadly, a good reduction can replace a large configuration search with a justified representative, provided the required assumptions and the direction of the guarantee remain explicit.

Represent recursive work through intervals. The interval implementation replaces accumulated positional displacements with a concrete allocation of available positions. Every subtree receives a region of exactly the appropriate size, and recursive calls fill disjoint parts of that region. This makes bounds, ownership, and completion easier to inspect. Similar representations can help with layout, serialization, memory regions, and other recursive processes where a component must occupy a contiguous portion of a larger resource.

Carry the boundary condition into every recursive call. A subtree’s best orientation depends on whether its root lies to the left or right of its parent. Optimizing the subtree in isolation would omit a condition imposed by its connection to the rest of the tree. This is a broadly useful lesson for recursive optimization: the interface must carry whatever information makes a locally solved component compatible with its surrounding structure.

Prove the cost of preparation as well as recursion. Visiting each vertex once does not establish a linear algorithm if an earlier ordering stage costs more. The paper treats subtree-size calculation, sorted adjacency construction, rooting, and recursive placement as parts of the same complexity claim. This habit matters in data processing and graph algorithms, where indexing or sorting can dominate an otherwise inexpensive main loop.

Use a small structural counterexample to separate claims. The tree with projective cost 7 and planar cost 6 demonstrates that the root restriction is consequential. Its role is explanatory rather than statistical: a single valid case can refute an assumed equivalence. Small witnesses are useful for testing specifications, exposing missing state in recursive code, and explaining why a weaker condition cannot stand in for a stronger one.

### How Mova uses it

Mova’s native language pipeline constructs dependency trees and then reads them into frames and a changing world. That makes tree structure directly relevant, but the available implementation evidence does not establish that Mova already contains either minimum-arrangement algorithm from this paper. The proposals below distinguish related mechanisms from the specific transfer being suggested. Their status marks describe possible implementation work, not measured applications or demonstrated gains.

Idea: Keep arrangement constraints explicit. Where: Introduction, definitions of planar and projective arrangements. Area: syntax. Mova could give any future tree-linearization operation an explicit choice between preserving a designated linguistic root and optimizing an undirected tree without that requirement. Its existing UD validation shows why structural conditions belong in an executable contract, but the evidence does not establish this particular optimizer. Mova: частково є (UD validation in `peta/tools/treeagree/src/tree.rs`; native dependency trees in `en`). Why Mova: an explicit contract would prevent a layout or diagnostic operation from silently changing what counts as an admissible result.

Idea: Extract a reusable optimization component. Where: Introduction and Minimum projective linear arrangements, where the projective procedure is separated from HS’s planar algorithm. Area: software architecture. Mova could expose a fixed-root arrangement solver separately from centroid selection and free-tree preprocessing. Its Rust algorithm collection and groupant descriptions provide a plausible home for a narrowly specified component. Mova: частково є (`algorithms` and the source-bound interfaces described in `docs/groupants.md`; the specific solver is unconfirmed). Why Mova: a small deterministic component would be easier to inspect, reuse, and assess than an operation combining several different tasks.

Idea: Use the centroid reduction only within its proven scope. Where: Notation and review, and the planar construction in Minimum projective linear arrangements. Area: math. For an undirected tree-layout request, Mova could obtain a centroidal vertex and invoke the projective solver there. It should not apply the same root change to a linguistic task whose designated root carries meaning. Mova: нове; implementation of this reduction is unknown. Why Mova: the reduction offers an exact shortcut while providing a clear example of why a mathematically permitted transformation can still be inappropriate for another task.

Idea: Allocate positions with intervals. Where: Minimum projective linear arrangements, description of the interval-based recursive procedure. Area: algorithms. A Rust implementation could pass each subtree its available interval and return an arrangement whose positions stay within that region. The digest establishes deterministic algorithm tooling but does not establish this interval construction. Mova: нове; the arrangement-specific mechanism is unconfirmed. Why Mova: interval ownership would make collisions, missing positions, and incorrect subtree sizes easier to diagnose.

Idea: Preserve the parent-side condition. Where: Notation and review, discussion of the optimal orientation of a non-root subtree. Area: syntax. A proposed solver should carry whether a subtree lies to its parent’s left or right instead of treating all recursive calls as identical. Mova already uses structured linguistic roles, but that does not establish this positional state. Mova: нове; the required arrangement state is unknown. Why Mova: it identifies the minimal surrounding information that a recursive tree operation must retain to justify its local choices.

Idea: Account for the entire pipeline’s complexity. Where: Final complexity analysis in Minimum projective linear arrangements. Area: evaluation. Mova could report preparation, ordering, placement, and memory separately when assessing an implementation of the algorithm. Existing tools already distinguish bounded measurements from broader performance claims. Mova: частково є (`tools/dictindex/README.md` measurement boundaries and `tools/twin` cost observations; no arrangement measurements are established). Why Mova: this would keep a fast recursive routine from masking expensive preparation and would make any linear-time claim reviewable.

Idea: Retain the root-sensitive witness as a specification test. Where: Introduction and the figure comparing costs 7 and 6. Area: evaluation. A faithful implementation could retain the paper’s example as a check that fixed-root projectivity and free-tree planarity are not conflated. Mova already uses negative controls and contrast sets, although this particular witness is not established. Mova: частково є (controls in the school reports and structural gates in `treeagree`). Why Mova: a small counterexample would catch a conceptual error that ordinary success cases might leave invisible.

Idea: Compute subtree sizes once and reuse them. Where: Notation and review, and the rooted-tree preprocessing in Minimum projective linear arrangements. Area: data processing. A proposed arrangement module could prepare the size information required by ordering and interval allocation before placement begins. The available evidence does not show whether an existing Mova tree utility already offers the exact operation. Mova: нове; availability of a directly reusable implementation is unknown. Why Mova: shared structural metadata would avoid repeated traversal and give later checks a common account of each subtree’s size.

Idea: Distinguish directional size from rooted-subtree size. Where: Notation and review, definition of s(u,v), and the simplified rooted preprocessing. Area: data representation. Mova could use separate interfaces for a branch viewed across an undirected edge and a subtree under an already fixed root. Its typed structures make this a natural design proposal, but the particular distinction is not established. Mova: нове; arrangement-specific types are unknown. Why Mova: separating the quantities would reduce accidental reuse of a value computed under a different root.

Idea: Check the complementary-size identity. Where: Notation and review, relationship between s(u,v) and s(v,u). Area: verification. A free-tree preprocessing implementation could verify that the directional sizes across an edge account for the whole tree. Mova’s existing validators already use explicit invariants, but the digest contains no application of this identity. Mova: частково є (invariant-oriented groupant tooling and `treeagree` gates; this invariant is proposed). Why Mova: a cheap structural check would expose errors in preprocessing before they become difficult positional failures.

Idea: Treat centroid and center as different concepts. Where: Introduction, terminology footnote. Area: knowledge representation. Mova could encode the centroidal criterion through branch sizes and keep it distinct from the center criterion based on eccentricity. Its compiled knowledge already gives concepts explicit identities, but neither graph concept is confirmed in the supplied implementation evidence. Mova: частково є (concept identities and declarations in `global`; these definitions are unconfirmed). Why Mova: precise terminology would help the logical core explain an algorithm’s actual precondition instead of substituting a familiar but different notion of centrality.

Idea: Repair positional reasoning at the point of omission. Where: Minimum planar linear arrangements, correction of `embed_branch`. Area: debugging. The omitted `under_anchor` quantity suggests a diagnostic pattern: when relative positions are wrong, inspect which vertices lie inside the relevant connection before changing unrelated ordering rules. Mova already retains reasons and rejected edits, but this displacement diagnosis is not established. Mova: частково є (reason-preserving native decisions and `treeagree` rejection records). Why Mova: a localized explanation could turn an incorrect arrangement into a specific, reviewable defect report.

Idea: Compare distinct implementations of the same contract. Where: Minimum projective linear arrangements, the adapted HS procedure and the interval procedure. Area: evaluation. Mova could implement both procedures as independent checks of the minimum cost while allowing valid output orders to differ. Existing comparison tooling supplies a related mechanism, but no such arrangement comparison is documented. Mova: частково є (`tools/correspondence`, `tools/modelcheck`, and parser comparison tooling; the arrangement comparison is proposed). Why Mova: agreement on the objective and constraints would be more informative than requiring identical output from procedures that may choose different optimal orders.

Idea: Separate feasibility from optimality. Where: Introduction and the structural ordering review. Area: verification. An arrangement report could state separately whether positions form a valid ordering, whether the drawing is planar, whether the root is uncovered, and whether the algorithm’s optimality assumptions apply. Mova already distinguishes successful execution from an admitted result. Mova: частково є (explicit operational boundaries in `docs/hybrid-system.md` and validation gates in `treeagree`). Why Mova: this separation would prevent a valid-looking tree drawing from being presented as proof of minimum cost.

Idea: Preserve harmless freedom among optimal outputs. Where: Notation and review, the alternative orientations available at the whole-tree root. Area: determinism. A Mova implementation could choose a documented deterministic orientation while recognizing that another permitted orientation can have the same status. Deterministic inference is already an explicit Mova mechanism; the arrangement tie policy is unknown. Mova: вже є (deterministic ordering and fixed-seed principles in `README.md`; applying them to this solver remains proposed). Why Mova: a stable convention would support reproducible output without confusing reproducibility with mathematical uniqueness.

Idea: Assess root restrictions without importing linguistic claims. Where: Introduction, the example separating planar and projective minima. Area: syntax evaluation. Mova could use the arrangement cost as a structural diagnostic on a dependency tree, while explicitly avoiding the claim that the resulting order is grammatical or semantically equivalent. Existing parsing and downstream frame interpretation make that boundary especially relevant. Mova: частково є (`en` dependency trees and `prag` frame extraction; the minimum-cost diagnostic is unconfirmed). Why Mova: it could reveal a tree’s geometric properties while preserving the distinction between a graph optimum and a usable sentence.

Idea: Keep auxiliary-space claims visible. Where: Final complexity analysis, including the recursion stack for path graphs. Area: operational engineering. A proposed implementation should include recursive storage in its resource account rather than reporting only the arrangement vector or adjacency lists. Mova already has job limits and cost records, but no arrangement resource profile is established. Mova: частково є (`tools/jobs` and `tools/twin`; solver-specific accounting is proposed). Why Mova: transparent memory requirements would help bounded workers decide whether the operation fits their available resources.

Idea: Bind a formal guarantee to its assumptions. Where: Conclusions and the relationship between the planar and projective procedures. Area: mathematical reasoning. A groupant for this algorithm could state that the input is a tree, identify whether the root is fixed, describe the admissible arrangements, and associate the linear bound with the specified preparation and placement procedures. Mova already has source-bound descriptions of algorithms and checks. Mova: частково є (`docs/groupants.md` and `docs/mathematical-modeling.md`; a description for this paper’s algorithm is unknown). Why Mova: the logical module could explain exactly which conclusion follows from the admitted input instead of treating an algorithm name as sufficient evidence.

Idea: Keep open optimization questions separate from executable capabilities. Where: Conclusions and future work, discussion of maximum linear arrangement. Area: research planning. Mova could record the proposed extension to maximization as a research question without exposing it as an available exact solver. Its architecture already distinguishes configured capabilities from development direction. Mova: вже є (implemented-versus-direction boundaries in `docs/hybrid-system.md`; the specific research entry is unconfirmed). Why Mova: preserving that distinction would let the system retain a useful mathematical lead without overstating what it can execute.

### The problem and its context

#### Ordering vertices changes the cost of edges

A tree specifies connections, not a unique left-to-right order. Once its vertices receive distinct positions along a line, every connection acquires a length. Adjacent positions produce a short edge; endpoints separated by many positions produce a longer one. The minimum linear arrangement problem asks for the ordering with the smallest sum of these lengths.

The object being optimized is therefore a permutation of vertices. The connections themselves stay fixed. An algorithm cannot remove an inconvenient edge, attach a vertex to another parent, or change the tree into a different structure. Its freedom concerns where the existing vertices appear along the line.

This distinction helps explain the relevance to [dependency parsing](https://md.research.elamur.ai/free/en/topics/dependency-parsing/) without turning the paper into a parsing study. A dependency tree can be treated as a tree whose vertices have positions, but choosing a short arrangement is a different task from deciding which dependencies a sentence contains. The paper addresses the arrangement problem after the tree is given.

In an arbitrary graph, the authors describe minimum linear arrangement as NP-hard. Trees admit polynomial-time solutions even without the extra conditions studied here. The introduction reviews successively stronger bounds from earlier work: Goldberg and Klipker’s O(n³) algorithm, Shiloach’s O(n^2.2) algorithm, and Chung’s algorithms with O(n²) and O(n^λ) running times. For the latter bound, λ must exceed log 3/log 2. The authors identify that last approach as the best known unrestricted tree algorithm in their account.

These results establish the background, but they do not make the constrained cases redundant. Adding a restriction changes the set of permitted answers. It can also expose structure that allows a faster exact algorithm. This paper’s linear-time results apply to the planar and projective variants, instead of superseding the unrestricted algorithms on their own terms.

#### Two geometric restrictions

The geometric convention places vertices along a horizontal line and draws edges above it as semicircles. Under this convention, a crossing occurs when endpoints of different edges alternate along the line. One edge begins, another begins, the first ends, and then the second ends. Planarity excludes that pattern.

Nested edges are different. An edge can span another edge without crossing it, because both endpoints of the inner edge remain between the outer edge’s endpoints. Consequently, an arrangement can be planar even when an edge stretches over a vertex of special importance.

Projectivity adds exactly such a special vertex: the root. The root must not lie strictly between the endpoints of any edge. This requirement is evaluated with respect to a chosen root, not simply the shape of the undirected tree. Changing the root can therefore change whether an unchanged ordering qualifies.

The paper’s example is particularly effective because it holds the free tree constant. Its projective optimum under one root costs 7, while its planar optimum costs 6. The cheaper arrangement remains available geometrically, but the root condition can exclude it. The issue is not that the optimizer failed to discover the shorter arrangement. That arrangement belongs to a different feasible set.

#### Earlier linear-time approaches and an unresolved account

For planar arrangements, the authors identify Iordanskii’s work as the earliest linear-time algorithm known to them. Hochberg and Stallmann later supplied another linear-time method. The present paper concentrates on the latter approach because its subtree-ordering structure can be adapted to projectivity.

The earlier projective account was less complete. Gildea and Temperley described an algorithmic sketch and asserted a linear running time. Park and Levy instead attributed a bound involving the logarithm of the maximum degree, but the present authors judge the accompanying explanation insufficient to establish that higher cost.

The contribution is therefore more specific than introducing a new optimization objective. The paper supplies a detailed route from structural ordering rules to complete procedures, repairs a defect in an existing recursive calculation, and makes the time and space arguments explicit. It also clarifies why a planar algorithm and a projective algorithm can share most of their implementation.

This context matters when assessing priority. The authors do not claim that nobody had proposed linear projective optimization before them. Their claim concerns a clear, justified construction, the correction of HS’s implementation, and the relationship between the constrained problems. The distinction between an earlier sketch and a fully accounted algorithm is central to the paper.

### The method, step by step

#### Define the objective before choosing the construction

Let G be a graph with vertex set V and edge set E. A linear arrangement assigns every vertex a distinct position. The paper uses positions from 1 through n, where n is the size of V.

```
n = |V|
```

Here, n counts vertices, V is the vertex set, and vertical bars denote the number of elements in that set. The same n determines the available positions in the arrangement.

The arrangement function, written here as π, associates a vertex with its position. The distance for an edge is the absolute difference between its endpoint positions.

```
d(u,v) = |π(u) − π(v)|
```

The vertices u and v are endpoints of an edge. The function π gives their positions, d is their distance in the arrangement, and the vertical bars now denote absolute value rather than set size. The notation differs in purpose, but the meaning is determined by what appears inside the bars.

The optimization target sums this distance over all edges.

```
D = Σ_{ {u,v} ∈ E } |π(u) − π(v)|
```

D is the total arrangement cost, E is the edge set, and the summation includes each undirected edge. Minimization chooses an admissible π with the smallest D. The important word is admissible: unrestricted, planar, and projective problems use the same objective while allowing different arrangements.

For the planar condition, consider edges with endpoints ordered so that s precedes t and u precedes v. Their crossing pattern is:

```
π(s) < π(u) < π(t) < π(v)
```

The symbols s, t, u, and v identify the relevant endpoints. This interleaving is forbidden in a planar arrangement. In contrast, one edge entirely nested inside another does not satisfy this pattern.

For projectivity, the root must additionally avoid being covered.

```
π(u) < π(w) < π(v)
```

Here, w is a vertex covered by the edge joining u and v, assuming u occurs before v. A projective arrangement forbids this condition when w is the root. The condition concerns strict interior positions; an edge incident to the root does not cover it merely by having the root as an endpoint.

#### Understand the recursive pieces

The paper distinguishes a free tree from a rooted tree. A free tree has undirected edges and no designated root. A rooted tree has a specified root, with edges understood to point outward toward descendants.

For a vertex u in a rooted tree, its subtree contains u and the descendants reached below it. An immediate subtree is rooted at a child of u. These immediate subtrees are the pieces that the arrangement procedure orders around u.

The preparation stage associates each immediate subtree with its size. At a vertex with k immediate subtrees, their sizes are listed in nonincreasing order.

```
n₁ ≥ ⋯ ≥ nₖ ≥ 1
```

The quantity nᵢ is the number of vertices in the immediate subtree assigned index i, and k is the number of such subtrees. Larger pieces receive earlier indices. The ordering permits equal sizes; the essential condition is that a smaller subtree does not precede a strictly larger one in this size ranking.

This ranking is structural. It does not use vertex names, linguistic labels, or a learned score. The optimizer relies on how many vertices each child subtree contains and on the boundary condition inherited from the parent.

The complete route can be summarized as follows:

Constructing a minimum constrained tree arrangement The steps in order.

The centroid stage belongs only to the free-tree planar problem. A fixed-root projective problem begins with its root already determined, so changing it would change the task.

#### The ordering rule behind both implementations

The key structural rule is to arrange child subtrees by decreasing size while alternating sides. Larger child subtrees occupy positions farther from their parent, and smaller ones are fitted closer to it. The final left-to-right sequence is therefore not simply the sorted list placed beside the parent.

The paper describes the root-level order through alternating indices. One side contains the odd-indexed subtrees, and the other contains the even-indexed subtrees, with their visible order determined by placement from the outside inward. A reflected orientation is also possible at the whole-tree root.

A newcomer can understand the construction as reserving blocks. The largest block takes an outer position on one side. The next largest takes an outer position on the other side. Subsequent blocks alternate sides while moving toward the parent. The parent occupies the position left between the assembled blocks.

That description is not a free-standing greedy proof. The paper grounds the rule in lemmas from HS’s earlier work. Those results are what justify the size ordering and orientation as components of an optimal projective arrangement. The implementation then realizes the justified structure efficiently.

The situation changes slightly below the root. A non-root vertex has a parent outside its own subtree, and the incoming edge affects which of the reflected orientations is appropriate. The procedure must know whether the subtree root is placed to its parent’s left or right.

This is why the parent-side parameter is substantive. A child subtree is not being optimized solely for its internal edges. Its position and orientation also affect the connection to its parent. The interface carries enough surrounding information to choose the correct form of the otherwise similar local arrangement.

The paper’s notation review assumes an even number of immediate subtrees when displaying the alternating sequences. That presentation makes the paired pattern easy to read. The operational principle is the alternating allocation of the ranked subtrees, rather than a requirement that input trees have only even branching.

#### Prepare the fixed-root and free-tree cases differently

For a tree whose root is already fixed, preprocessing needs the size of each rooted subtree and a child list ordered by those sizes. There is no need to find a centroidal vertex. There is also no need to retain every direction across an undirected edge once the parent-child relation has been established.

For a free tree, the paper introduces directional sizes. Removing the connection between neighboring vertices separates the tree into parts; the directional size records how much of the tree lies on the selected side of that connection when viewed from the other endpoint.

The complementary directions satisfy:

```
s(u,v) + s(v,u) = n
```

The function s(u,v) is the directional size toward v from u. Reversing the arguments selects the complementary part. Their sizes account for all n vertices of the tree.

The paper includes an illustrative free tree with s(u,v)=7 and s(v,u)=3. It also gives an edge whose directional values are both 5. These examples explain the meaning of the stored quantities; they are not measurements of an algorithm’s accuracy or speed.

The free-tree preparation uses directional sizes to construct sorted adjacency information and locate a centroidal vertex. Once the root is chosen, the representation must be oriented away from it. The paper describes this rooting operation as removing, from each non-root vertex’s list, the entry that leads back to its parent.

That operation changes the representation instead of the underlying undirected connections. Its purpose is to make recursive descent visit children without returning along a parent edge. The authors state that it can be performed in linear time and do not expand it into a separate pseudocode listing.

The paper provides linear-time constructions for the size information and sorted lists. This detail is necessary to the final result. If the placement procedure received an appropriately ordered list only after an unaccounted expensive stage, its own linear traversal would not establish a linear bound for the complete algorithm.

#### Why the centroid connects the problems

A centroidal vertex is selected through branch sizes. The paper distinguishes it from a central vertex, whose definition concerns eccentricity and radius. Substituting the latter concept would not preserve the stated reduction.

The structural fact used here is that an optimal planar arrangement can be obtained as an optimal projective arrangement when the free tree is rooted at a centroidal vertex. Thus, the planar procedure does not need an unrelated placement engine. It needs the correct choice of root before using the projective engine.

The guarantee has a specific direction. It supplies a way to obtain the planar optimum from a projective problem at the selected root. It does not say that any root has the same projective optimum, nor that every planar optimum must be projective with respect to every vertex.

The root-sensitive example makes this boundary concrete. Vertex 1 imposes a projective requirement that leads to cost 7. The planar arrangement with cost 6 instead corresponds to projective optimization at vertex 2. The tree has not changed, but the constraint attached to its chosen root has.

This reduction also explains the architecture of HS’s planar algorithm. Its centroid selection can be separated from the subsequent arrangement work. Once separated, the remaining procedure is recognizable as a solver for the fixed-root projective problem.

#### Repair the displacement implementation

HS’s implementation uses a procedure for the whole tree and a recursive procedure for branches. The whole-tree procedure chooses a centroidal vertex, orders its branches, and later converts relative positions into positions along the full line.

The relative-position vector must therefore mean something precise: every stored value must be the displacement of its vertex from the eventual position of the selected centroidal vertex. A relative value measured from a different reference point would not become correct merely because the final procedure added the centroid’s position.

The error identified by the authors occurs in calculating those displacements. For a non-root vertex, some vertices belonging to its own subtree can lie between it and its parent. Their presence contributes to the displacement, but the earlier recursive calculation failed to account for them correctly.

The correction introduces the quantity called `under_anchor`. It counts the relevant vertices of the subtree between the vertex and its parent. Adding that count to the base used for placement repairs the reference distance before the recursion continues.

The notation review explains the geometry through an anchor and a coanchor: portions of an edge separated by a boundary associated with the subtree arrangement. The anchor’s length depends on which child-subtree blocks lie toward the parent. In the displayed ordering, the relevant size contribution comes from the even-indexed subtrees.

This is a useful distinction between a correct ordering idea and a correct implementation. The ranking and alternating-side structure can be right while the conversion into actual positions is wrong. The paper repairs the positional accounting without replacing the structural argument that makes the ordering optimal.

The recursive calls also need the complete set of parameters required by the corrected calculation. A fix at the current vertex would be incomplete if deeper calls continued with insufficient state. The authors therefore change the recursive interface alongside the displacement update.

#### Replace displacements with available intervals

The alternative implementation avoids accumulating those relative positions. Every recursive call instead receives the interval of positions that its entire subtree must occupy.

For the full rooted tree, the interval is:

```
[1,n]
```

The endpoints are the first and last available positions, and n is the number of vertices. A call for a smaller subtree receives an interval whose size matches that subtree.

Suppose a call is arranging the subtree rooted at u within [a,b]. The symbols a and b are the currently available left and right bounds. Let a child subtree rooted at v contain nᵥ vertices.

When that child subtree belongs at the left end, its assigned interval is:

```
[a, a + nᵥ − 1]
```

The quantity nᵥ counts all vertices in the child subtree, including v. The expression reserves exactly its required positions beginning at a.

When the child subtree belongs at the right end, the assigned interval is:

```
[b − nᵥ + 1, b]
```

This reserves the corresponding block ending at b. The child receives its block together with the orientation information needed for its own recursive arrangement.

After a left allocation, the available left boundary advances.

```
a ← a + nᵥ
```

The arrow denotes an update. The new a skips every position assigned to the child subtree.

After a right allocation, the available right boundary retreats.

```
b ← b − nᵥ
```

The new b excludes the child’s reserved block. Subsequent children therefore receive positions from the region that remains.

The procedure alternates which end it uses while processing the size-ranked child list. The initial side depends on the relation between u and its own parent. This is how the interval construction preserves the boundary condition that the structural argument requires.

When all immediate subtrees have been allocated, their vertices have been accounted for. Only u itself remains. The available interval has therefore contracted to a single position.

```
a = b
```

The equality describes completion of the current call, not a condition expected at entry. The subtree root is placed there:

```
π(u) = a
```

The function π records the final position of u. A leaf naturally reaches this assignment without allocating any child interval.

The advantage is representational clarity. Each call owns a specific region, passes disjoint pieces to children, and retains the remaining position for its root. The paper still needs the ordering theorem for optimality, but the mechanics of assigning distinct positions become easier to follow.

#### Account for time and space

The final complexity argument combines preparation with recursive placement. The paper states that the required sorted rooted adjacency representation can be constructed in O(n) time. The recursive procedure then performs constant-time allocation work around each child call.

Across the whole tree, the cost is expressed through vertex degrees:

```
O(Σ_{u ∈ V} deg(u)) = O(n)
```

The notation deg(u) means the degree associated with vertex u in the traversal’s accounting, and the summation ranges over the vertex set V. The paper uses this aggregate bound to justify linear total work instead of multiplying a worst-case local branching factor by every vertex.

The spatial argument includes more than stored output. Adjacency information and sorting preparation require O(n) space. The recursion can also require O(n) space, with a path graph providing the worst-case shape discussed by the authors.

Both the fixed-root projective algorithm and the centroid-based planar algorithm retain the O(n) time and O(n) space bounds. The planar version adds preparation for the appropriate root, but that preparation has the same linear bound.

There is no training procedure in this method. Its input is a tree, its decisions follow structural rules, and its output is an optimal arrangement under the selected constraint. Correctness is not estimated from examples; it is established through the construction and the results on which the construction relies.

### Experiments and results

#### The result is an algorithmic guarantee

The paper does not report a dataset-based evaluation, a timing study, or a comparison of measured implementations on a shared machine. There are no training and test splits, predictive accuracy scores, or empirical averages to interpret. Its principal results are exact optimization procedures with established resource bounds.

For the projective problem, the authors give a corrected adaptation of HS’s approach and an interval-based construction. Both run in O(n) time and use O(n) space. For the planar problem, centroid selection followed by projective optimization gives the same asymptotic bounds.

This resolves the complexity issue raised in the introduction. GT’s sketch had been associated with a linear claim, while PL described a bound of O(n log d_max), with d_max denoting maximum degree. The paper establishes that the projective task can be solved in O(n), making the additional logarithmic factor unnecessary for the presented construction.

These are asymptotic statements, not observations about elapsed time. They describe how the required work and storage scale with tree size under the algorithmic accounting. They do not say how many seconds an implementation needs, which constant factors dominate, or how different tree shapes affect practical cache behavior.

#### The numerical comparison demonstrates the root effect

The central numerical illustration compares arrangements of the same free tree under different constraints. For the rooted version with root 1, the minimum projective arrangement has cost 7. The planar optimum has cost 6 and is associated with the tree’s centroidal vertex.

Same example tree, minimum total edge length Fixing the illustrated root restricts the admissible arrangements and raises the minimum cost.

**The numbers**

| System or setting | total edge length D |
| --- | --- |
| Projective optimum with root 1 | 7 |
| Planar optimum via centroid rooting (this paper) | 6 |

The star marks the best setting shown in this illustration. It does not designate an empirical contest between independently measured systems. Both values belong to the paper’s explanation of the optimization problems.

The authors identify this tree as the smallest one in which choosing a root can make the projective minimum exceed the planar minimum. They also state that no other 6-vertex tree exhibits that behavior. The significance is the separation between problem definitions, instead of the size of an improvement attributed to a new heuristic.

A planar arrangement with the smaller cost does not refute optimality of the projective result. The former is allowed to cover a vertex that the latter must leave uncovered. Comparing costs without carrying the constraint labels would erase the reason the example matters.

#### Earlier bounds supply context, not benchmark baselines

The introduction’s unrestricted algorithms explain why a linear bound for constrained trees is notable. However, their O(n³), O(n^2.2), O(n²), and O(n^λ) bounds are not measured baselines for the same constrained task. They address a broader feasible set.

Likewise, the paper’s discussion of Iordanskii concerns an alternative structural approach. That method uses chains instead of the anchor-based organization emphasized in HS’s work. For the chain approach they outline, the authors report O(n) comparison operations, with additional memory usage of O(n log n).

The present constructions are evaluated through explicit decomposition and resource accounting. Their contribution is a simpler and fully explained route to the claimed bounds, not a measured speedup over a published implementation. Keeping those forms of evidence separate is necessary for an accurate reading of the results.

### What the ablations show

The paper contains no empirical ablation study; its informative comparisons concern problem constraints, algorithm representations, and the components required for correctness.

The root comparison isolates a mathematical condition. Holding the free tree fixed while changing the admissible root relationship shows that projectivity is not interchangeable with planarity. The cost example is therefore a controlled separation of definitions, instead of an estimate of typical behavior across trees.

The fixed-root adaptation removes work that the planar task requires. It does not search for a centroidal vertex, and its size calculations can be specialized to an already rooted tree. This comparison explains where the shared solver ends and task-specific preparation begins. It also shows why reusing an entire planar pipeline would perform unnecessary operations for a projective request.

The displacement correction isolates a different issue. The structural rule for ordering subtrees survives, but the stored relative positions must include vertices lying under the relevant anchor. This analysis identifies a local implementation defect rather than rejecting the overall optimality argument.

The interval construction supplies a representational comparison. It realizes the same justified subtree ordering through explicit regions of positions instead of accumulated displacement. The benefit claimed is compactness, clarity, and simplicity of the procedure. Without runtime measurements, it would be unwarranted to interpret that comparison as evidence that one implementation is faster in practice.

Finally, the complexity argument separates local branching from aggregate work. A vertex can have many neighbors, but the algorithm’s total cost is obtained by accounting across the tree. This explains why a degree-related factor need not appear in the final bound. It is a proof about how work is distributed, not an observed correlation between degree and runtime.

Together, these analyses answer several different questions: whether the constraints matter, which preparation is necessary, why the earlier code was wrong, and how the repaired computation can be expressed more clearly. They should not be compressed into a single claim that the new procedure was empirically validated against every alternative.

### Limitations

#### Limits stated by the authors

The results concern trees. The paper introduces the general minimum linear arrangement problem to establish context, but its constructions do not claim to solve arbitrary graphs in linear time. The absence of cycles and the decomposition into subtrees are fundamental to the procedures.

The optimization guarantees also depend on the chosen constraint. The algorithms solve the projective task for a rooted tree and the planar task for a free tree. They do not establish the same bound for unrestricted minimum linear arrangement. The earlier polynomial-time algorithms remain relevant because they solve a different problem.

The authors explicitly warn that a planar optimum need not be a projective optimum under an arbitrary root. A root may be covered in the arrangement that is best under planarity. The centroid connection supplies a sufficient route for solving the planar task; it does not remove the importance of the root in a separate projective request.

The conclusion reports that the authors learned, during review, of Bommasani’s master’s thesis identifying an error in GT’s algorithm. They state that their implementation is unaffected. They do not develop that thesis result into a broader account of every possible implementation of GT’s sketch.

The paper leaves maximization open as a research direction. It asks whether the connection between planarity and projectivity can help with maximum linear arrangement and whether corresponding constrained tree problems admit linear-time solutions. These questions are not answered by the minimization algorithms.

The authors also express a suspicion that Iordanskii’s planar algorithm may contain a projective subalgorithm. That possibility is not established in the paper. Their detailed extraction and reconstruction concern HS’s approach.

#### Limits visible from the setup

The paper provides no empirical runtime evidence. Its linear bound is stronger than a collection of favorable timings in one sense, because it applies to the specified procedure rather than selected inputs. Nonetheless, it does not answer implementation questions about constants, memory locality, or comparative execution time.

The O(n) space bound includes a potentially deep recursion stack. The authors identify path graphs as the worst case for that stack. A practical implementation therefore needs to take the recursion resource seriously; the mathematical space bound does not imply that every execution environment can accommodate every admissible input size.

The objective gives each edge a contribution equal to endpoint distance. No result is established here for additional edge-specific weights, penalties for particular orders, or combinations with other objectives. Such changes might preserve some structural ideas, but their correctness would require a separate argument.

For linguistic applications, the input tree is already given. The method does not infer the intended dependencies, repair an incorrect parse, or decide which root is linguistically appropriate. It optimizes positions for a supplied structure under an explicit geometric constraint.

Nor does the optimization establish that the resulting vertex order is a grammatical sentence. The cost function contains edge lengths and the admissibility conditions concern crossings and root coverage. It does not encode every condition that a language places on word order. Applying the algorithm to a dependency tree would therefore produce a structural optimum, not automatically a complete account of acceptable expression.

The method also does not establish a cognitive explanation merely by finding short arrangements. Its exact results concern a combinatorial objective. Connecting that objective to [psycholinguistics](https://md.research.elamur.ai/free/en/topics/psycholinguistics/) would require evidence beyond the algorithmic constructions reported here.

The preprocessing claim is part of the guarantee, not an optional implementation detail. Replacing the stated preparation with a more expensive routine could change the total complexity while leaving the recursive placement unchanged. A later implementation must preserve the full pipeline’s accounting before adopting the paper’s linear-time description.

Finally, an optimal arrangement need not be unique. The root-level discussion allows alternative orientations, and size ordering can contain equal values. The result concerns the minimum cost and validity of the produced arrangement, rather than a universally required permutation. Evaluation should consequently distinguish harmless output variation from failures of feasibility or optimality.

### What came after

No later citing works are available to discuss here, so there is no supported account of subsequent extensions, implementations, or applications.

The paper itself closes with a clear next question: whether the relationship between planar and projective minimization can guide the corresponding maximization problems. It also suggests examining Iordanskii’s chain-based construction for a projective procedure hidden inside it.

Those are prospective directions. Bommasani’s thesis belongs to the background the authors encountered during review, rather than a later development building on their result. The established endpoint is the repaired displacement method, the interval construction, and the linear-time connection between fixed-root projective optimization and centroid-rooted planar optimization.

## Cite

Cite as Lluis Alemany-Puig, Juan Luis Esteban and Ramon Ferrer-i-Cancho. 2021. Minimum projective linearizations of trees in linear time. arXiv:2102.03277 · Lluís Alemany-Puig, Juan Luis Esteban, Ramon Ferrer-i-Cancho (2022). Minimum projective linearizations of trees in linear time. Information Processing Letters 174, 106,204.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1016/j.ipl.2021.106204](https://doi.org/10.1016/j.ipl.2021.106204) · [arXiv 2102.03277](https://arxiv.org/abs/2102.03277)

```bibtex
@misc{alemanypuig2021minimum,
  title = {{Minimum projective linearizations of trees in linear time}},
  author = {Lluis Alemany-Puig, Juan Luis Esteban and Ramon Ferrer-i-Cancho},
  year = {2021},
  doi = {10.1016/j.ipl.2021.106204},
  eprint = {2102.03277},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1016/j.ipl.2021.106204}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
