Elamur Research

Minimum projective linearizations of trees in linear time

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

Summary

A tree records which vertices are connected, but it does not determine their positions along a line. Once positions are assigned, each edge acquires a length: the gap between its endpoints. Finding an order that minimizes the combined length of the edges is the minimum linear arrangement problem. This paper examines versions with geometric restrictions. In a planar arrangement, edges drawn above the line cannot cross. In a projective arrangement, crossings are forbidden and a designated root cannot sit beneath an edge connecting other vertices. Such restrictions matter in the study of dependency parsing, where a rooted tree and an order of its vertices are closely related, although the paper studies the mathematical ordering task instead of the recovery of linguistic dependencies.

The root requirement changes which answers are allowed. A crossing-free order may satisfy projectivity under one root and violate it under another, even though the vertex positions and connections remain unchanged. The authors demonstrate this with a tree whose projective minimum is 7 when vertex 1 is the root, while its planar minimum is 6. The example establishes that ignoring the designated root can change the optimization problem. However, a carefully selected root also connects the problems: a projective optimum obtained by rooting a free tree at a centroidal vertex supplies a planar optimum. Here, centroidal refers to the sizes of surrounding branches, instead of the distances used to define a tree’s center.

The paper revisits an earlier planar algorithm by Hochberg and Stallmann, abbreviated HS. Its basic organization already performs most of the work needed for projective optimization, but that component had not been presented separately. The authors extract it, simplify preparation for an already rooted input, and repair a defect in the recursive position calculation. The defect concerns vertices that fall between a subtree root and its parent: their contribution must be included when calculating displacement. The repair preserves the underlying ordering principle while making the assigned positions consistent with it.

A further construction replaces displacement bookkeeping with explicit position intervals. Child subtrees are ranked by size, assigned alternately to opposite ends of the available region, and arranged recursively. Each call eventually leaves a single unused position for its own root. Both projective constructions have O(n) running time and O(n) storage requirements, with n denoting the vertex count. Centroid selection extends the interval construction to planar optimization under the same bounds. These are proved algorithmic results, supported by structural arguments and an accounting of preparation, traversal, and recursive storage. There is no corpus evaluation or measured runtime comparison. The contribution resolves an earlier uncertainty about the projective complexity bound while clarifying how the planar and projective tasks share a computational core.

Interesting ideas

Specify feasibility before optimizing. An objective does not completely define a task: the permitted answers matter equally. Planarity and projectivity minimize the same quantity, yet the root condition distinguishes their feasible sets. This lesson transfers to scheduling, layout, and constrained search, where an impressive objective value can conceal a violation of the actual request. An optimizer needs an explicit account of admissibility before its output can be judged.

Separate a general procedure into reusable stages. HS’s planar method combines root selection with a subsequent arrangement computation. Recognizing that the latter stage already addresses a fixed-root task creates a useful component without discarding the earlier structure. Similar opportunities arise in processing pipelines that mix preparation, configuration, and computation. Extracting the shared operation can reveal which work belongs to the mathematical problem and which work merely prepares a particular use.

Let a theorem select the configuration. The planar problem could appear to invite repeated projective optimization under different roots. The centroid relationship supplies a justified root directly. Its value comes from replacing exploratory configuration choices with a structural guarantee. This principle applies elsewhere when a reduction identifies a representative input, boundary condition, or decomposition that preserves the desired optimum. The assumptions of that reduction must accompany the shortcut.

Give recursive components explicit regions. The interval construction describes a subtree’s responsibility through the positions it may occupy. Child calls receive disjoint regions of appropriate sizes, while the parent keeps the remainder. This makes allocation and completion visible in the representation itself. Recursive layouts, serialization procedures, and storage allocation can benefit from the same approach when their components must fit within contiguous regions.

Include the surrounding boundary in a local task. A subtree’s orientation depends on which side of its parent it occupies. Internal structure alone therefore does not determine the appropriate recursive choice. The reusable insight is to identify what information about the surrounding problem must cross the recursive interface. Carrying that information explicitly can prevent a locally reasonable answer from becoming globally incompatible.

Analyze preparation alongside the main traversal. A cheap recursive procedure cannot establish a cheap complete algorithm if its inputs require expensive construction. Subtree sizes, ordered adjacency information, and rooting all belong to the complexity argument. This discipline is useful in indexing, graph processing, and data analysis, where an apparently simple operation may depend on substantial preparation. Resource claims should describe the computation that a caller actually needs.

Use a compact witness to distinguish close specifications. The paper’s root-sensitive tree makes the difference between planarity and projectivity observable through exact costs. It is not a representative sample or a statistical estimate. Its purpose is to disprove an interchangeability claim. Small structural witnesses can similarly expose missing assumptions in validators, recursive interfaces, and optimization contracts, frequently more clearly than a collection of ordinary successful cases.

Deep dive: Minimum projective linearizations of trees in linear time

How linear-time algorithms minimize tree edge lengths under projectivity and planarity, and why rooting and recursive placement matter. · about 35 minutes to read

How Mova uses it

Mova builds dependency structures in Rust, interprets them through frames, and retains a world of the text. It also has deterministic algorithm components, validation gates, source-bound mathematical descriptions, and explicit distinctions between implemented behavior and development direction. These mechanisms make several transfers plausible. They do not establish that either arrangement construction has been implemented in Mova. The status marks below concern the connection to documented mechanisms; proposed additions remain unverified, and a missing implementation record does not itself establish novelty.

Idea: Declare the arrangement’s feasibility conditions. Where: Introduction, definitions of crossing and root coverage. Area: syntax and verification. A prospective Mova operation should state whether it accepts a free tree for planar optimization or a rooted tree for projective optimization. Existing tree validation provides a related mechanism, but it does not establish this particular optimization contract. Mova: частково є (en dependency structures and the structural checks in peta/tools/treeagree/src/tree.rs). Why Mova: explicit admissibility would let a logical component explain why an apparently shorter ordering cannot answer a request with a fixed root.

Idea: Isolate the fixed-root computation. Where: Introduction and Minimum projective linear arrangements, extraction of the projective procedure from HS. Area: software architecture. Mova could keep projective placement separate from the preparation that chooses a centroid for a free tree. Its deterministic algorithms and source-bound interfaces offer related architectural support; the extracted arrangement component is unconfirmed. Mova: частково є (algorithms, with algorithm descriptions and checks discussed in docs/groupants.md). Why Mova: a narrowly defined component would be easier to reuse and inspect than a procedure whose root-selection policy is implicit.

Idea: Admit the centroid reduction with its assumptions. Where: Notation and review, relationship between centroid rooting and planar minimization. Area: mathematical reasoning. For a free-tree request, Mova could select a centroidal vertex and solve the resulting projective task. For a linguistic task with an established root, the same transformation would need a different justification. Mova: нове (this specific reduction is unconfirmed; novelty beyond the digest is unknown). Why Mova: the result offers an exact structural shortcut while making the distinction between mathematical freedom and task-specific restrictions explicit.

Idea: Represent recursive ownership through intervals. Where: Minimum projective linear arrangements, interval procedure. Area: algorithms and data representation. Each proposed Rust call could receive the region assigned to its subtree and return positions confined to that region. The documented algorithm tooling does not demonstrate this particular allocation representation. Mova: нове (availability of an equivalent arrangement routine is unknown). Why Mova: concrete bounds would make misplaced vertices, overlapping allocations, and incomplete output easier to identify than errors hidden inside accumulated displacement values.

Idea: Pass the parent-side condition explicitly. Where: Notation and review, orientations of non-root subtrees. Area: recursive interfaces. A Mova implementation could represent left-versus-right attachment as a declared input to subtree placement. This is more specific than the structural roles already present in its language pipeline. Mova: нове (the arrangement-specific boundary state is not established). Why Mova: preserving the required external condition would let the solver justify local decisions through a small, inspectable interface instead of relying on surrounding mutable state.

Idea: Include preprocessing in performance claims. Where: Minimum projective linear arrangements, final complexity argument. Area: evaluation and resource analysis. A future implementation could report size preparation, adjacency ordering, placement, and storage as parts of the same operation. Mova already records scoped measurements and prospective resource observations. Mova: частково є (tools/dictindex/README.md distinguishes bounded measurements from broader claims; tools/twin records predictions and measured runs). Why Mova: complete accounting would prevent a cheap final traversal from obscuring the cost required to prepare its input.

Idea: Preserve a root-sensitive specification witness. Where: Introduction, arrangement example with costs 7 and 6. Area: evaluation design. Once represented faithfully, that example could check whether a proposed solver respects the distinction between a prescribed root and an unrestricted planar request. Existing controls establish the general practice, but not this test. Mova: частково є (school-report controls and treeagree validation gates). Why Mova: an exact witness could detect a conceptual conflation that many ordinary trees would fail to reveal.

Idea: Share subtree-size preparation across later steps. Where: Minimum projective linear arrangements, rooted size calculation and ordered adjacency construction. Area: data processing. A proposed module could prepare size metadata once and use it for both ranking children and allocating their regions. Whether Mova already has a directly reusable implementation is unknown. Mova: нове (the required shared arrangement metadata is unconfirmed). Why Mova: common structural metadata would reduce repeated work and give the ordering and allocation stages the same account of how much space each subtree requires.

Idea: Distinguish rooted size from directional size. Where: Notation and review, definition of s(u,v), and the specialized rooted preparation. Area: typed data. Mova could use distinct representations for a descendant subtree under a fixed root and a branch reached across an undirected edge. Its typed native structures provide a general precedent, without proving this distinction already exists. Mova: частково є (typed constants and structured interfaces in the native core; the particular size types are unknown). Why Mova: separating these quantities would reduce errors caused by reusing metadata under a different rooting convention.

Idea: Validate complementary branch accounting. Where: Notation and review, identity connecting opposite directional sizes. Area: verification. Free-tree preparation could check that the sizes viewed across either direction of an edge jointly describe the complete vertex set. Mova’s existing validators admit structural invariants, although this identity is not documented as one of them. Mova: частково є (tools/modelcheck, groupant invariants, and structural gates in treeagree). Why Mova: the check could localize a preparation defect before incorrect sizes propagate into root selection and final positions.

Idea: Keep centroid and center semantically distinct. Where: Introduction, terminology footnote. Area: knowledge representation. Mova could retain separate concept descriptions for branch-size centrality and distance-based centrality. The digest confirms explicit concept identities but does not confirm these graph-theoretic entries. Mova: частково є (global declarations and concept codes described in docs/architecture.md). Why Mova: precise definitions would help the logical core retrieve the actual precondition of the reduction rather than substitute another familiar meaning of centrality.

Idea: Inspect omitted contributions before replacing an ordering rule. Where: Minimum planar linear arrangements, repair of embed_branch. Area: diagnosis. The displacement defect suggests checking which vertices contribute to a positional quantity when an otherwise justified construction produces inconsistent positions. Mova retains reasons for native decisions and rejected structural edits, but no arrangement diagnosis is established. Mova: частково є (reason-bearing native inference and treeagree rejection records). Why Mova: a failure report could identify missing positional accounting instead of proposing an unrelated change to the size-ordering principle.

Idea: Make the reference point of a quantity part of its meaning. Where: Minimum planar linear arrangements, interpretation of relPos. Area: mathematical data representation. A prospective solver could distinguish displacement from the selected global root from displacement relative to an immediate parent. The paper’s repair shows why these cannot be treated as interchangeable. Mova: нове (arrangement-specific reference-point representations are unknown). Why Mova: explicit origins would make arithmetic explanations auditable and prevent a numerically plausible value from being applied in the wrong coordinate system.

Idea: Cross-check independent constructions at the right level. Where: Minimum projective linear arrangements, displacement and interval implementations. Area: evaluation. If Mova implements both, comparison should concern objective value and admissibility rather than demand the same permutation. Existing correspondence and comparison components offer related support. Mova: частково є (tools/correspondence, tools/modelcheck, and parser comparison tooling; this comparison is unconfirmed). Why Mova: independent positional constructions could expose implementation defects while allowing different arrangements that satisfy the same exact contract.

Idea: Report validity separately from minimality. Where: Introduction and Notation and review, feasibility definitions and optimal ordering results. Area: proof obligations. A solver could report distinct checks for position uniqueness, noncrossing edges, root exposure, and the assumptions supporting its optimum claim. Mova already distinguishes execution success from an admitted result. Mova: частково є (docs/hybrid-system.md describes evidence boundaries; treeagree enforces structural acceptance gates). Why Mova: separating obligations would stop a visually acceptable drawing from being mistaken for an optimality argument.

Idea: Use a stable convention for equivalent choices. Where: Notation and review, reflected root-level arrangements. Area: reproducibility. A Mova implementation could document how it selects an allowed orientation and resolves equal-size ordering choices. Deterministic computation is already an explicit system principle, although this solver’s convention is unknown. Mova: вже є (ordered computation and reproducibility requirements in README.md; their application to this algorithm remains proposed). Why Mova: stable outputs would support diagnosis without implying that the mathematical optimum determines a unique ordering.

Idea: Keep structural optimization separate from sentence acceptability. Where: Introduction, arrangement definitions, and Minimum projective linear arrangements. Area: syntax evaluation. Mova could calculate minimum edge length as a property of an admitted dependency tree without presenting the resulting order as a grammatical sentence. The language pipeline exists; the proposed diagnostic does not have confirmed implementation evidence. Mova: частково є (en, followed by frame reading in prag and world interpretation). Why Mova: this boundary would permit a useful geometric analysis while preserving the separate questions of syntax, meaning, and communicative suitability.

Idea: Include recursion in storage estimates. Where: Minimum projective linear arrangements, space analysis for path graphs. Area: operational resources. A prospective worker could account for pending recursive calls alongside adjacency data and the arrangement itself. Resource-limited jobs and cost observations already provide related mechanisms. Mova: частково є (tools/jobs and tools/twin; arrangement-specific estimates are unknown). Why Mova: a transparent estimate would help an admitted task fit its execution budget and make a deep-tree failure explainable.

Idea: Bind a guarantee to an identified procedure. Where: Minimum projective linear arrangements, preparation and traversal bounds. Area: formal algorithm descriptions. A groupant could associate the tree assumptions, fixed-root policy, ordered-list construction, and placement routine with the claimed complexity. Source-bound descriptions already exist, but no entry for this algorithm is established. Mova: частково є (docs/groupants.md, tools/modelcheck, and typed correspondence tooling). Why Mova: the logical module could explain which implementation choices support the guarantee rather than treating the algorithm’s name as sufficient evidence.

Idea: Preserve the provenance of a correction. Where: Minimum planar linear arrangements and Conclusions and future work. Area: research evidence. Mova could record that the displacement repair concerns HS, while the separate GT error mentioned during review comes from Bommasani’s thesis and is reported as not affecting the authors’ implementation. Source and version identities are established practices in Mova. Mova: частково є (source-bound groupants and version-sensitive evidence in corpus tooling). Why Mova: distinct provenance would prevent different defects in related algorithms from becoming one unsupported claim.

Idea: Prefer aggregate work accounting to repeated worst-case charges. Where: Minimum projective linear arrangements, degree-sum argument. Area: algorithm analysis. Mova’s reasoning component could explain the traversal through the total adjacency work across the tree, rather than charging the maximum degree independently at every vertex. An implementation of this mathematical explanation is unknown. Mova: нове (this analysis rule is proposed; existing equivalent coverage is unknown). Why Mova: it would help distinguish a justified linear bound from an unnecessarily loose estimate derived from local branching alone.

Idea: Represent a structural result without converting it into a statistical claim. Where: Introduction, the smallest root-sensitive example, and the final complexity analysis. Area: evidence classification. The tree example demonstrates possibility, while the proof establishes behavior for the specified algorithm. Neither supplies an empirical frequency of difficult roots. Mova: частково є (docs/hybrid-system.md distinguishes evidence kinds; typed epistemic information is present in prag/src/frames.rs). Why Mova: preserving the evidence type would keep exact counterexamples, universal guarantees, and measured observations from being confused.

Idea: Optimize preprocessing for the actual input contract. Where: Minimum projective linear arrangements, simplification of free-tree preparation for rooted trees. Area: software efficiency. A fixed-root operation could omit centroid discovery and avoid preparing branch directions that its recursive construction does not need. Related configured interfaces exist, but this specialization is unconfirmed. Mova: нове (the specific preparation split is unknown). Why Mova: eliminating logically unnecessary stages would make the operation smaller and its resource explanation more faithful to the request.

Idea: Inspect another construction for a hidden subproblem solver. Where: Conclusions and future work, conjecture concerning Iordanskii’s method. Area: research planning. Mova could retain this as an investigation task, asking whether the chain-based planar construction admits a separately specified projective component. The authors present the possibility without proving it. Mova: частково є (configured bounded tasks and explicit capability limits in docs/hybrid-system.md; this investigation is not established). Why Mova: a precise research question could guide review without being promoted to an available algorithm.

Idea: Keep maximization outside the admitted minimization capability. Where: Conclusions and future work, questions about maximum arrangements. Area: capability management. Mova could connect the research question to the existing minimization description while marking the changed objective as unsupported by this result. The implemented-versus-direction distinction is already explicit. Mova: вже є (docs/hybrid-system.md and the Direction discussion in docs/architecture.md; the specific research record is unknown). Why Mova: retaining a promising extension separately would preserve useful mathematical context without claiming an executable guarantee.

The problem and its context

The tree stays fixed while the order changes

The input specifies a collection of vertices and the edges joining them. An arrangement chooses where those vertices appear in a sequence. Nothing in the optimization permits an edge to be removed or a vertex to acquire a different neighbor. The decision concerns positions, with the original tree held constant.

This separates the combinatorial structure from its presentation. A connection may be short under one ordering and long under another. Since moving a vertex can affect several incident edges, the objective cannot generally be optimized by shortening each connection independently. The algorithm needs a coordinated assignment of positions.

The cost used here is especially direct. Every edge contributes the absolute gap between its endpoints, and the contributions are added. No linguistic labels, edge-specific preferences, or additional penalties enter that definition. The simplicity of the objective does not imply that every version of the problem is easy.

The introduction describes unrestricted minimum arrangement as NP-hard on arbitrary graphs. Trees permit polynomial algorithms. In the historical progression reported by the authors, Goldberg and Klipker provide an O(n³) procedure, followed by Shiloach’s O(n^2.2) result. Chung gives O(n²) and O(n^λ) alternatives, with the latter requiring λ greater than log 3/log 2. The paper identifies that last result as the strongest known unrestricted bound in its account.

These earlier bounds concern the unrestricted tree problem. They should not be read as slow implementations of the exact constrained task solved here. A constrained optimum may exclude the unrestricted optimum. Restriction changes the permitted search space, and the structure of that smaller space can also support a simpler exact construction.

Crossing is about alternating endpoints

The drawing convention places the sequence horizontally and draws the connections above it. Whether edges cross depends on endpoint order. If the beginning of another edge occurs inside the first edge but its end lies outside, their endpoints interleave and the drawing contains a crossing.

Containment is different. A long edge may enclose both endpoints of a shorter edge without producing the prohibited alternation. This distinction is important because avoiding crossings alone does not prevent a special vertex from lying inside an edge’s span.

Planarity in this setting therefore describes an ordering property, not simply the abstract tree’s ability to be drawn without intersections elsewhere. The positions and the prescribed above-line drawing matter. The alternative terminology reviewed by the authors is a book embedding with a single page.

The projective condition adds a designated root to this geometry. A root is covered when it occurs strictly inside the endpoints of an edge. Projectivity rules that out in addition to crossings. An edge incident to the root is not a violation merely because the root is its endpoint; coverage concerns a position between the endpoints.

Changing the root consequently changes the question asked about an otherwise unchanged order. A drawing can remain planar while failing the extra condition for a newly designated vertex. This dependence explains why an algorithm for a free tree cannot simply ignore the root when used for a rooted task.

Why the earlier accounts needed clarification

The authors credit Iordanskii with the earliest planar linear-time result known to them. They then examine HS’s later method in detail. HS supplies the structural ingredients on which the present constructions depend, but the authors find an error in its displacement procedure.

For projectivity, Gildea and Temperley, abbreviated GT, had outlined a construction and asserted a linear bound. Park and Levy, abbreviated PL, subsequently attributed a cost involving a logarithm of maximum degree. The present authors consider the justification incomplete and show that the extra factor is not required for their detailed construction.

The disagreement concerns the accounting of an exact algorithmic task. It is not a contest over predictive performance or over the quality of approximate answers. The present paper aims to make the procedure, its preparation, and its resource proof sufficiently explicit that the complexity claim no longer depends on an unexplained sketch.

An additional contribution is conceptual. The planar construction contains a projective computation after the appropriate root has been chosen. Identifying that relationship reorganizes the earlier work: root selection and rooted arrangement become separable responsibilities.

The root-sensitive example establishes a boundary

The illustrative tree is important because its arrangement costs distinguish the specifications. Under root 1, projectivity yields minimum cost 7. Allowing the planar task instead yields minimum cost 6. The authors identify this as the smallest tree exhibiting a root for which the projective optimum is greater.

They further state that the phenomenon occurs in no other tree with 6 vertices. That statement concerns the example’s minimal structural role. The paper does not turn it into a distribution over trees or a claim about how often linguistic dependency structures exhibit the same behavior.

The example also supports the reduction. Vertex 2 serves as the root for a projective solution that attains the planar optimum. The crucial conclusion is not that root choice can be treated casually. It is that a particular structural criterion provides a root with the required guarantee.

The method, step by step

Express the target and admissibility separately

Let V denote the vertices and E the edges. The arrangement function π assigns positions without repetition. Its domain is the vertex set, and its values are the integers available along the line.

n = |V|

Here, n is the vertex count, and the vertical bars indicate the size of the set V. The arrangement uses the positions from 1 through n.

For an edge joining u and v, its length follows from the assigned positions.

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

The symbols u and v name vertices. Their positions are π(u) and π(v), and d(u,v) is the absolute gap. In this expression, the bars mean absolute value.

The combined objective is:

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

D denotes total edge length. The summation visits the undirected edges in E, adding each endpoint gap. The optimization chooses a permitted arrangement with the least value of D.

To describe crossings, the endpoints can be named so that their relevant ordering has the following form:

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

The edges connect s to t and u to v. Their endpoints alternate, which is the forbidden configuration for planarity. The names are chosen according to the ordering assumptions used in the paper; the same geometric issue can be recognized after renaming endpoints.

Coverage uses a shorter condition:

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

The vertex w lies inside the edge joining u and v. A projective solution excludes this condition when w is the designated root. Hence, the cost formula and the feasibility rules perform different jobs: the former ranks permitted answers, while the latter decide which answers may be ranked.

Identify the recursive units

For a rooted input, edges are regarded as pointing from parents towards descendants. The root has no parent. Every other vertex has a parent and may have children.

A subtree rooted at u contains u together with the vertices below it. The immediate subtrees are those rooted at u’s children. These form the blocks that must be arranged around u.

The sizes of these blocks are prepared before placement. At a vertex with k children, the paper indexes the child subtrees so that their sizes descend:

n₁ ≥ ⋯ ≥ nₖ ≥ 1

Each nᵢ counts the vertices in the child subtree with index i. The symbol k denotes the number of immediate subtrees. Equal sizes are permitted by the non-strict inequalities.

The ordering does not depend on the names given to vertices. Its structural input is the size ranking and, below the full-tree root, information about the parent’s side. These quantities are enough for the placement construction justified by the earlier lemmas.

The overall organization is:

From a tree to its minimum arrangement

The steps in order.

From a tree to its minimum arrangementStep 1: Determine whether the root is fixed1. Determine whether the root is fixedStep 2: Select a centroid when solving planarity2. Select a centroid when solving planarityStep 3: Prepare subtree sizes and ordered adjacency3. Prepare subtree sizes and ordered adjacencyStep 4: Assign child regions at alternating ends4. Assign child regions at alternating endsStep 5: Recurse with the attachment side5. Recurse with the attachment sideStep 6: Place each root in the remaining slot6. Place each root in the remaining slot

The diagram combines the shared arrangement stage with the preparation required by the planar task. The fixed-root projective task does not perform root selection.

Understand the size-ranked placement pattern

The immediate subtrees are processed from larger to smaller. Their blocks are assigned to alternating sides of the current vertex. The earlier, larger blocks occupy the outer regions, while later blocks fill positions closer to the vertex.

This is different from placing a decreasing-size list consecutively along the line. Alternation splits the ranked list across opposite sides. The visible left-to-right order follows from which side receives each block and from filling each side inward.

At the full-tree root, the paper permits reflected versions of the construction. One orientation puts the odd-indexed blocks on a particular side; reversing the whole choice puts them on the other. The objective does not force a preferred global direction at that root.

For a non-root vertex, however, the connection to its parent supplies a boundary condition. The appropriate orientation depends on whether the vertex is left or right of that parent. The procedure cannot independently choose either reflected arrangement at every level.

This dependency explains what the recursive state must preserve. The incoming edge connects the subtree to the rest of the arrangement. An orientation chosen without considering that connection could optimize the wrong local situation.

The size-and-side rule is not justified merely by intuition about large blocks. The paper appeals to HS’s structural lemmas. Those results establish the optimal arrangement pattern; the present algorithms provide corrected and simplified ways to realize it.

The notation review displays the pattern under an assumption that k is even. That assumption makes the paired odd-and-even description convenient. The construction itself concerns tree inputs generally, instead of a special class whose vertices all have even numbers of children.

Prepare directional information for a free tree

A free tree has no designated parent-child orientation. To prepare a planar solution, the algorithm needs information about branches as viewed from either endpoint of an edge.

The directional size s(u,v) describes the size on v’s side when the tree is viewed from u across their connecting edge. Reversing the direction selects the complementary side. The paper records the identity:

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

The arguments specify an ordered direction across an undirected edge. Together, the opposite directional sizes account for the complete vertex set, whose size is n.

The paper illustrates this with values 7 and 3 for opposite directions across an edge. Another displayed edge has directional values 5 and 5. These quantities explain how the representation changes with viewing direction; they are not experimental observations of speed or solution quality.

From the directional sizes, preparation constructs adjacency lists ordered by the relevant branch sizes. The resulting representation supports centroid selection and later placement.

The authors supply algorithms with O(n) time and O(n) space bounds for the directional-size calculation, sorted-list construction, and centroid calculation. These stages are part of the claimed complete procedure. The main placement algorithm is not assumed to receive its ordered representation without cost.

After a root is selected, the undirected adjacency representation must be oriented. The operation described as root_list removes the entry pointing from a non-root vertex back to its parent. Child entries remain available for descent.

This operation does not delete an underlying tree connection from the mathematical input. It changes which directed adjacency entries the recursive procedure uses. With the root established, the recursion should proceed outward rather than revisit its parent through the reverse entry.

Use the centroid criterion, not a distance substitute

The paper’s terminology distinguishes centroidal vertices from central vertices. A vertex is centroidal if the largest branch surrounding it has the smallest possible size. A central vertex is defined through eccentricity and radius. These are different criteria, and the reduction invokes the former.

The needed connection comes from HS’s structural result: once a centroidal vertex serves as the root of the free tree, a projective optimum yields the planar optimum. The planar solver can therefore be organized as root selection followed by the projective arrangement procedure.

The paper notes that a tree may have a centroid consisting of either a single vertex or a pair. The construction needs a centroidal choice, not a search over arbitrary roots followed by comparison of their arrangement costs.

The direction of the guarantee deserves care. It provides a root at which the projective constraint is compatible with attaining the planar minimum. It does not establish that every other root has the same optimum or that every planar arrangement leaves every possible root uncovered.

The initial example makes the distinction concrete. The root-1 projective task and the root-2 projective task do not have the same optimal cost. The centroid relationship explains why the latter can serve the free-tree planar objective.

This relationship also reveals the hidden organization of HS’s procedure. Its arrangement work is useful beyond the original planar presentation because the root-selection stage can be separated from the rooted computation that follows.

Simplify preparation when the root is already given

A projective input arrives with its root fixed. The algorithm can prepare descendant-subtree sizes directly, rather than build all directional information needed to choose a root in a free tree.

The corresponding adjacency representation is already rooted. Its lists need the children arranged by subtree size, but they do not need a centroid search. The authors adapt the free-tree preparation to avoid calculations that serve only the planar case.

This specialization matters conceptually as well as computationally. The projective task does not grant permission to replace the root with a convenient centroid. Retaining the input root is part of solving the requested problem.

After preparation, the adapted HS method uses the corrected branch procedure. Thus, simplification does not mean omitting the displacement repair. Rooted preprocessing and positional correctness address separate concerns.

The resulting projective implementation inherits the linear resource bounds. Its structure also makes clear which responsibilities remain shared with the planar procedure and which have disappeared because the input contract supplies the root.

Repair the meaning of relative positions

HS’s whole-tree procedure selects a centroid, organizes its branches, and eventually converts relative values into final positions. For that final conversion to work, the relative-position vector must use a consistent origin.

The intended origin is the selected centroid’s position. Every stored displacement must describe the vertex’s offset from that same reference point. If the recursive procedure leaves out part of the geometric distance, the final translation cannot restore the missing contribution.

The authors locate such an omission in embed_branch. For a vertex below the chosen root, some vertices in its own subtree lie between it and its parent. Those vertices affect the required displacement.

The repair explicitly calculates the quantity named under_anchor. It counts the subtree vertices occupying that intervening region. The base passed through the placement computation must include this count.

The anchor terminology distinguishes portions associated with the attachment edge. In the illustrated optimal ordering, the anchor contribution is related to the even-indexed child-subtree sizes. This connects the missing displacement term to the block arrangement already justified by the structural results.

The correction therefore does not reject the size-ranking strategy. It repairs the bookkeeping needed to turn that strategy into actual coordinates. A sound rule for ordering blocks and an accurate calculation of vertex positions are separate requirements.

The recursive calls also change so that the required parameters reach deeper branches. Correcting only the current vertex would leave the same omission possible below it if the recursive interface still lacked necessary information.

This diagnosis is one reason the interval alternative is useful. Rather than maintaining accumulated displacement from a distant origin, it gives each recursive call a directly specified set of positions.

Assign intervals from their exposed ends

The interval procedure receives a subtree and the region where that subtree must be placed. At the initial call, the region covers the full arrangement:

[1,n]

The bracketed expression denotes the inclusive integer interval from 1 to n. It provides a position for every vertex in the input tree.

For a recursive call rooted at u, let the available interval be [a,b]. The values a and b are its current left and right limits. A child subtree rooted at v contains nᵥ vertices.

If that child belongs at the left end, the procedure reserves:

[a, a + nᵥ − 1]

The child receives a block beginning at a and containing exactly the number of positions required by its vertices. The symbol nᵥ denotes the child-subtree size, including its root v.

For a child assigned to the right end, the reserved block is:

[b − nᵥ + 1, b]

This block ends at b and extends leftward by the required amount. Both expressions describe inclusive bounds.

The child is then arranged recursively inside its reserved interval. The call also carries the side information that determines the appropriate internal orientation relative to u.

Once a left block has been assigned, the remaining region begins farther right:

a ← a + nᵥ

The arrow means that a is updated. Every position given to the child is excluded from later allocations by the current call.

For a right block, the update is:

b ← b − nᵥ

The right limit moves left, excluding the reserved block. The unassigned region remains a single interval between the updated bounds.

Children are processed in the prepared size order, with the chosen end alternating. The initial side follows from the current subtree’s relation to its parent; at the full-tree root, a permitted orientation can be selected.

After the children have received their intervals, only the current root remains unplaced. The surviving region therefore satisfies:

a = b

This equality describes the state reached at completion of the child allocations. It is not an assumption about the interval at entry.

The root’s final assignment is:

π(u) = a

The arrangement records u at the remaining position. For a leaf, there are no child blocks to reserve, so its call proceeds directly to this placement.

The representation makes disjointness straightforward to inspect. Each child takes a block from an end of the current region, and the bounds move beyond that block before another child is assigned. Optimality still relies on the structural ordering result; interval ownership alone would not prove that the chosen order minimizes D.

Complete the resource argument

The preparation and arrangement stages each need an explicit bound. The authors state that the required ordered rooted adjacency lists can be built in O(n) time. Placement then performs fixed local work for each child allocation, apart from its recursive call.

The total traversal work is accounted for across vertices:

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

The symbol deg(u) denotes the degree associated with vertex u in the paper’s traversal accounting. The sum runs over V. The equality expresses that the aggregate adjacency work in a tree is linear in its vertex count.

This is why a large local branching factor does not require multiplying every vertex’s cost by that maximum. The algorithm charges work to the adjacency entries actually processed across the tree.

Storage includes the prepared lists and the recursive state. The authors allow O(n) space for preparation and O(n) additional space for the recursive stack in the worst case. A path is the tree shape identified for that deepest recursion.

The planar extension retains the same asymptotic bounds because its root-selection preparation is also linear. It does not perform a complete projective optimization independently under every possible root.

There is no training or data-fitting stage. The procedure receives a tree and follows the size-based structural rule. Its claim is an exact optimum under the stated restrictions, established by mathematical reasoning rather than estimated from held-out examples.

Experiments and results

The principal evidence is an exact construction

There is no empirical evaluation section with timed runs, benchmark corpora, or predictive scores. The paper’s result consists of detailed algorithms and proofs of their resource requirements.

For projectivity, the repaired HS adaptation and the interval construction both require O(n) time and O(n) space. For planarity, the interval procedure combined with centroid rooting has those bounds as well.

These results address the earlier uncertainty about maximum degree. PL had described the projective cost as O(n log d_max), where d_max is the maximum degree. The authors establish an O(n) construction and consequently regard the extra logarithmic factor as an overestimate for the task.

This does not demonstrate a measured runtime advantage on particular hardware. The resource proof concerns the specified sequence of operations as input size changes. Practical constants and elapsed-time differences between implementations are not evaluated.

The numerical example compares restrictions

The paper’s central cost illustration concerns a single free tree. It contrasts the projective task rooted at vertex 1 with the planar task, whose optimum is obtainable through the centroidal root.

Illustrated tree under projective and planar restrictions

The prescribed root excludes an ordering that attains the planar minimum.

Illustrated tree under projective and planar restrictionsProjective, root 1: 7Projective, root 17Planar, centroid-rooted construction (this paper): 6Planar, centroid-rooted construction(this paper)6
The numbers
System or settingminimum total edge length D
Projective, root 17
Planar, centroid-rooted construction (this paper)6

These are exact objective values in an explanatory example. They are not mean scores over a dataset, and the star identifies the lower-cost setting shown rather than an experimentally superior predictive system.

The distinction between the rows must remain attached to their costs. A planar value cannot be substituted for a rooted projective value merely because it is smaller. The rooted task excludes an arrangement if the designated root is covered.

The authors characterize the example through its minimality: it is the smallest tree with a root producing this separation, and no other 6-vertex tree does so. The paper does not report how the gap behaves across larger trees.

Historical bounds are contextual comparisons

The unrestricted tree algorithms reviewed in the introduction have different admissible sets from the constrained procedures. Their O(n³), O(n^2.2), O(n²), and O(n^λ) bounds describe the background against which the new organization is understood. They are not timing baselines in a shared experimental setup.

The discussion of Iordanskii offers a more directly related constructional comparison. Its outline uses chains selected through large branches, with positions assigned while preserving regions for recursive decomposition. According to the account, comparison operations number O(n), while additional memory usage is O(n log n).

The present paper instead concentrates on the HS lineage, which organizes placement through subtree ordering and anchors. Its interval alternative changes the positional representation without replacing that structural basis.

No accuracy metric is appropriate here. The algorithms are intended to return exact optima under their assumptions. The informative measures are the arrangement objective and the proved time and space requirements, with no empirical distribution supplied for either.

What the ablations show

The authors do not perform ablations; their analyses instead compare constraints, preparation requirements, positional representations, and complexity arguments.

The constraint comparison isolates the root’s role

The example keeps the underlying free tree unchanged. Its different minima arise from the admissibility requirement attached to the root. That makes it a direct demonstration that crossing avoidance does not by itself capture projectivity.

This is an exact separation, not evidence about a typical cost penalty. It establishes that a penalty can occur. Without an evaluation over a population of trees, it does not say how frequently it occurs or which tree properties predict its magnitude.

The comparison also explains why the centroid theorem is necessary. If all roots automatically produced the planar optimum, the structural root-selection stage would have no role. The example shows why that assumption would be wrong.

Specialized preparation removes unnecessary work

The projective adaptation starts with a root already fixed. The paper therefore replaces the more general free-tree size preparation with rooted-subtree sizes and eliminates centroid selection.

This comparison identifies a boundary between shared computation and task-specific setup. It is not evidence that centroid selection is expensive in absolute terms; that stage itself has a linear bound. Its omission matters because it is unnecessary for the fixed-root contract.

The specialization also prevents a semantic error. A projective solver must respect the root supplied by its caller rather than silently choose a different one for a better cost.

The correction targets coordinates rather than the theorem

The HS repair examines an implementation-level quantity: the displacement of each vertex. The omitted intervening vertices change that quantity even when the high-level subtree ordering remains correct.

This analysis separates the validity of the structural construction from the faithfulness of its coordinate calculation. It would be misleading to describe the correction as evidence against the ordering lemmas on which the new procedures still depend.

The required parameter changes reinforce the same point. Positional accounting must remain correct through the full recursive chain, not merely at the first branch where a missing contribution is noticed.

Intervals change what must be tracked

The displacement and interval procedures realize the same size-based arrangement principle. Their contrast concerns representation. One carries offsets that must share an origin; the other carries an available position region that is consumed from its ends.

The authors describe the interval version as clearer and more compact. No measured implementation comparison establishes whether its execution is faster. Its explanatory advantage is that position ownership and completion can be followed directly.

The resource analysis is another controlled distinction. Counting local worst cases loosely can suggest a degree-related factor, whereas summing the work actually performed across adjacency lists gives the linear traversal bound. This is a mathematical accounting argument, not an empirical correlation between degree and runtime.

Limitations

Boundaries the authors state

The results apply to tree inputs. Although the introduction discusses general graphs to locate the problem historically, the algorithms depend on decomposition into branches and rooted subtrees. They do not supply a linear procedure for arbitrary graphs.

The restrictions are equally important. Projective minimization fixes a root and excludes coverage of that root. Planar minimization excludes crossings without imposing the same condition at an arbitrary supplied vertex. The paper does not claim that the constrained constructions solve unrestricted minimum arrangement with their linear bound.

The authors expressly distinguish a planar optimum from a projective optimum under a different root. The latter root may be covered by the former arrangement. The centroid relationship is a guarantee about a suitable rooting, not a license to discard root information from every application.

Their discussion of Iordanskii leaves an unresolved possibility. They suspect that his planar construction may also conceal a projective procedure. The paper does not establish that extraction; its detailed derivation instead follows HS.

The conclusion also discusses an error in GT identified by Bommasani’s master’s thesis, which became known to the authors during review. They state that their own implementation is unaffected. This is distinct from the HS displacement defect that they analyze and repair directly.

Maximization remains prospective. The authors ask whether the planar-projective relationship might help with maximum arrangement and whether analogous constrained tree tasks admit linear algorithms. The minimization results do not settle those questions.

Boundaries visible in the setup

The paper supplies no measured runtime study. Its asymptotic proof is a strong form of algorithmic evidence, but it cannot identify practical constants or establish which implementation finishes sooner on a particular machine.

Storage deserves the same care. O(n) space does not mean that recursion depth is negligible. The authors include a path-shaped worst case for the recursive stack. Any concrete implementation must accommodate that storage requirement if it preserves the recursive form.

The guarantee belongs to the complete procedure. Substituting a more expensive ordering stage could change the total bound even if the interval traversal were copied faithfully. Linear placement is only part of the argument; the preparation described by the authors is another part.

The objective is the unweighted sum of endpoint gaps. The paper does not establish the same ordering rule for edge-specific weights or extra penalties. Such variants would alter the mathematical task, and transferring the construction would require further justification.

The output is an arrangement of an existing tree. It is not an inferred tree, and an optimal result cannot certify that the original connections were correct. If an application supplies a mistaken dependency analysis, the procedure can still optimize that mistaken structure exactly.

For the same reason, a short projective arrangement is not automatically an acceptable sentence. The objective contains geometric distances, and the feasibility rules concern crossings and root coverage. The construction does not incorporate every linguistic restriction governing word order.

This matters for interpreting the connection to syntax and grammar. The paper offers a precise operation on rooted structures. It does not establish that its optimum is a complete account of grammaticality, meaning preservation, or human processing behavior.

Nor do the exact example costs support a statistical claim. The root-sensitive witness proves that the specifications can diverge. It does not measure an average divergence, establish its prevalence in natural language, or provide evidence about a particular corpus.

The resource results also do not imply uniqueness. The root-level description allows reflected choices, and the size ordering can contain ties. Different valid outputs can therefore share the same optimal status. A comparison that demands identical permutations could reject harmless variation.

Finally, the interval representation should not be mistaken for an independent proof of minimality. Disjoint blocks help establish valid position assignment, but many possible block arrangements would be valid without being optimal. The size ranking, alternating placement, attachment-side condition, and structural results together support the optimum claim.

These distinctions preserve the strength of the paper. It gives exact constrained constructions with explicit bounds. Its lack of a corpus study does not weaken that mathematical result, but the result should not be extended into empirical or linguistic conclusions that the setup does not investigate.

What came after

No subsequent citing study is established here, so there is no supported account of later implementations, extensions, or applications.

The paper itself identifies research directions rather than completed follow-up results. One concerns Iordanskii’s chain-based planar construction: perhaps its organization can also yield a separately specified projective solver. Another concerns changing minimization to maximization while retaining the planar and projective restrictions.

Those questions extend different aspects of the contribution. The former asks whether another earlier construction contains the same kind of reusable rooted component. The latter asks whether the relationship between restrictions remains useful when the objective is reversed.

Bommasani’s thesis occupies a different position in the account. It is background encountered during review, cited for an error in GT, rather than evidence of later work building on the present result. The supported contribution remains the repaired HS displacement computation, the explicit projective algorithms, and the centroid-based route connecting them to 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 · arXiv 2102.03277

@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}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/alemany-2021-puig-minimum-projective-linearizations-trees-linear/

References

16 references, from the paper's own bibliography.

  1. Frank Bernhart and Paul C. Kainen. The book thickness of a graph. Journal of Combinatorial Theory, Series B, 27(3):320–331, 1979. OpenAlex ↗ · Scholar ↗
  2. Rishi Bommasani. Generalized optimal linear orders. Master's thesis, Cornell University, 2020. OpenAlex ↗ · Scholar ↗
  3. Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. Introduction to Algorithms. The MIT Press, Cambridge, MA, USA, 2nd edition, 2001. OpenAlex ↗ · Scholar ↗
  4. Michael R. Garey and D. S. Johnson. Some simplified NP-complete graph problems. Theoretical Computer Science, pages 237–267, 1976. OpenAlex ↗ · Scholar ↗
  5. Daniel Gildea and David Temperley. Optimizing grammars for minimum dependency length. In Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, pages 184–191, Prague, Czech Republic, 06 2007. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  6. M. K. Goldberg and I. A. Klipker. Minimal placing of trees on a line. Technical report, Physico-Technical Institute of Low Temperatures. Academy of Sciences of Ukranian SSR, USSR, 1976. in Russian. OpenAlex ↗ · Scholar ↗
  7. Frank Harary. Graph Theory. Addison-Wesley, Reading, MA, 1969. OpenAlex ↗ · Scholar ↗
  8. Refael Hassin and Shlomi Rubinstein. Approximation algorithms for maximum linear arrangement. In Scandinavian Workshop on Algorithm Theory - Algorithm Theory - SWAT 2000, volume 1851, pages 231–236, 2000. OpenAlex ↗ · Scholar ↗
  9. Robert A. Hochberg and Matthias F. Stallmann. Optimal one-page tree embeddings in linear time. Information Processing Letters, 87(2):59–66, 2003. OpenAlex ↗ · Scholar ↗
  10. M. A. Iordanskii. Minimal numberings of the vertices of trees — Approximate approach. In Lothar Budach, Rais Gatič Bukharajev, and Oleg Borisovič Lupanov, editors, Fundamentals of Computation Theory, pages 214–217, Berlin, Heidelberg, 1987. Springer Berlin Heidelberg. OpenAlex ↗ · Scholar ↗
  11. M.A. Iordanskii. Introduction to graph theory. Minin Pedagogical State University, Nizhny Novgorod, 2014. in Russian. OpenAlex ↗ · Scholar ↗
  12. Marco Kuhlmann and Joakim Nivre. Mildly non-projective dependency structures. In Proceedings of the COLING/ACL 2006 Main Conference Poster Sessions, COLING-ACL '06, pages 507–514, 07 2006. OpenAlex ↗ · Scholar ↗
  13. Igor Mel'čuk. Dependency Syntax: Theory and Practice. State University of New York Press, Albany, NY, USA, 1988. OpenAlex ↗ · Scholar ↗
  14. Y. A. Park and Roger Levy. Minimal-length linearizations for mildly context-sensitive dependency trees. In Proceedings of the 10th Annual Meeting of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) conference, pages 335–343, Stroudsburg, PA, USA, 2009. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  15. Fan R. K. Chung. On optimal linear arrangements of trees. Computers & Mathematics with Applications, 10(1):43–60, 1984. OpenAlex ↗ · Scholar ↗
  16. Yossi Shiloach. A minimum linear arrangement algorithm for undirected trees. SIAM Journal on Computing, 8(1):15–32, 1979. OpenAlex ↗ · Scholar ↗