arXiv:2608.21248cs.DMAug 2026

Manuscript Offprint

arXiv:2608.21248

T-Robinson Spaces: Structure, Recognition, and Applications to Real Data

Patricio Asenjo, Sergio Cavero, Mauricio Soto-Gomez, Christopher Thraves Caro

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

PATRICIO ASENJO*, SERGIO CAVERO†, MAURICIO SOTO-GOMEZ‡, AND CHRISTOPHER THRAVES CARO§

Abstract. We study T-Robinson spaces, a tree-based generalization of Robinson spaces in which every path of a compatible tree induces a Robinson subspace. This framework extends the classical notion of Robinsonian representations from linear orderings to tree structures, allowing the modeling of hierarchical and branching data. We establish a complete combinatorial characterization of T-Robinson spaces by proving their equivalence with several graph- and hypergraph-theoretic properties. In particular, we show that a dissimilarity space is T-Robinson if and only if all its level graphs are dually chordal with a common compatible tree. Combined with the characterization of hypertrees established by Brucker [8], this yields the equivalent characterization in terms of the associated cluster, ball, and 2-ball hypergraphs being hypertrees. Building upon these structural results, we develop a recognition algorithm with complexity O(Kn2)O(Kn^2), where K denotes the number of minimum spanning trees of the dissimilarity space, improving upon existing hypertree-based approaches whenever K remains moderate. We further introduce a quantitative measure of T-Robinson structure that evaluates the extent to which an arbitrary dissimilarity space admits a tree-like representation. Finally, we discuss applications to real-world datasets, illustrating how T-Robinson spaces provide an interpretable framework for analyzing and organizing relational data.

Key words. Dissimilarity Spaces, Robinson Spaces, T-Robinson spaces, Dually chordal graphs, Hypertrees.

MSC codes. 68R12, 68Q25, 68R10

  1. Introduction. The exponential growth of relational data has generated an increasing demand for mathematical tools capable of representing, organizing, and analyzing complex dissimilarity structures. Pairwise dissimilarity information naturally arises in a wide variety of domains, including bioinformatics, phylogenetics, pangenome analysis, network science, clustering, and information retrieval [15, 25, 26]. In many of these applications, the available information consists not of coordinates in a geometric space, but rather of pairwise comparisons or dissimilarity measurements between objects. Understanding how such data can be represented in a structured and interpretable way is, therefore, a fundamental problem at the intersection of mathematics, computer science, and data analysis.

One of the most influential frameworks for representing dissimilarity data is provided by Robinson spaces. Originating in the context of seriation, Robinson spaces capture the principle that similar objects should appear close together in a suitable ordering, while dissimilar objects should appear farther apart [24]. Formally, a Robinson ordering arranges the objects along a line so that dissimilarities increase monotonically when moving away from the diagonal of the corresponding dissimilarity matrix. This simple idea has led to a rich mathematical theory connecting graph representations, combinatorial optimization, metric geometry, and algorithm design [8, 9, 13].

Despite their success, Robinson spaces suffer from an inherent limitation: they

*Departamento de Ingeniería Informática y Ciencias de la Computación, Facultad de Ingeniería, Universidad de Concepción (pasenjo2018@udec.cl).

†Universidad Rey Juan Carlos, (sergio.cavero@urjc.es).

‡^{\ddagger}AnacletoLAB - Computational Biology and Bioinformatics Lab and Center for Complexity and Biosystems, Università degli Studi di Milano (mauricio.soto@unimi.it).

§^{§}Departamento de Ingeniería Matemática, Facultad de Ciencias Físicas y Matemáticas, Universidad de Concepción (cthraves@udec.cl).

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

are fundamentally one-dimensional. Many datasets exhibit a hierarchical or branching structure that cannot be adequately represented by a linear ordering [21]. Phylogenetic relationships, taxonomic classifications, evolutionary histories, and numerous network datasets often exhibit a tree-like structure [1], for which a single linear arrangement fails to capture the underlying geometry. This observation naturally raises the question of whether the Robinson paradigm can be extended from linear representations to tree representations.

In this work, we study T-Robinson spaces, a class of dissimilarity spaces admitting a tree-based Robinson representation. This notion generalizes classical Robinson spaces by replacing the underlying line with a tree, while preserving the fundamental principle that dissimilarities should increase as one travels along the structure of the representation. By treating a dissimilarity matrix as the weighted adjacency matrix of a complete graph, we provide a structural characterization of T-Robinson spaces, establishing a precise connection between these spaces and several well-studied combinatorial structures, including dually chordal graphs and hypertrees. These connections reveal a rich underlying combinatorial framework and allow us to derive necessary and sufficient conditions for the existence of a T-Robinson representation.

Building upon this characterization, we develop a recognition algorithm for T-Robinson spaces. Existing approaches rely on hypertree recognition, leading to algorithms with complexity O(n5)O(n^{5}) [8]. By exploiting the structural properties uncovered in our characterization, we obtain a recognition algorithm with complexity O(Kn2)O(Kn^{2}), where K denotes the number of distinct minimum spanning trees of the input dissimilarity space. This significantly reduces the complexity of the recognition problem whenever the number of minimum spanning trees remains moderate, while simultaneously providing a deeper understanding of the relationship between T-Robinson spaces and their associated spanning-tree structures.

Beyond exact recognition, we introduce a quantitative measure of T-Robinson structure that evaluates how closely an arbitrary dissimilarity space resembles a T-Robinson space. This measure allows us to move beyond the binary question of recognition and to investigate the extent to which tree-Robinson structure is present in real-world datasets. We apply this methodology to several real-data collections, providing the first empirical study of the T-Robinson structure in practical applications.

  1. Definitions. Let XX be a finite set. A dissimilarity on XX is a symmetric function D:X×X→R≥0D: X \times X \to \mathbb{R}_{\geq 0} such that D(x,y)=0D(x, y) = 0 if x=yx = y. The pair (X,D)(X, D) is called a dissimilarity space. Given Y⊆XY \subseteq X, the restriction (Y,D∣Y×Y)(Y, D|_{Y \times Y}) is the subspace of (X,D)(X, D) induced by YY. By abuse of notation, we will often denote this subspace simply by (Y,D)(Y, D).

A dissimilarity space (X,D)(X, D) is Robinson if there exists a total order < on X such that, for every triple x<y<zx < y < z,

D(x,z)≥max⁡{D(x,y),D(y,z)}.D(x,z)\geq\max\{D(x,y),D(y,z)\}.

Such an order is called a compatible order.

The objective of this study is to generalize the concept of Robinson spaces from linear representations to tree representations. This motivates the following definition.

DEFINITION 2.1 (T-Robinson). Let (X,D)(X, D) be a dissimilarity space. We say that (X,D)(X, D) is T-Robinson if there is a tree T with vertex set X, such that for every path P of T, the subspace (V(P),D)(V(P), D) induced by P is Robinson with respect to the order induced by P. In this case, T is called a compatible tree of (X,D)(X, D).

D=[0123101121023120]D=\begin{bmatrix}{{{0}}}&{{{1}}}&{{{2}}}&{{{3}}} \\{{{1}}}&{{{0}}}&{{{1}}}&{{{1}}} \\{{{2}}}&{{{1}}}&{{{0}}}&{{{2}}} \\{{{3}}}&{{{1}}}&{{{2}}}&{{{0}}}\end{bmatrix}

Figure

FIG. 1. Example of a T-Robinson space. The matrix on the left gives the dissimilarity values, while the graph on the right displays a compatible tree, whose edges are drawn as solid lines. Notice that the space is T-Robinson but not Robinson.

It is worth noticing that every Robinson space is T-Robinson. Indeed, for every compatible ordering of a Robinson space, the path whose vertices are ordered according to the (Robinson) compatible order is a compatible tree. Conversely, not every T-Robinson space is necessarily Robinson. Figure 1 depicts an example of a T-Robinson space which is not Robinson.

To establish our structural characterization of T-Robinson spaces, we will use several graph- and hypergraph-theoretic notions, which we introduce below. To this end, we interpret the dissimilarity values as weights on an undirected complete graph defined over the set of elements X. By an abuse of notation, we refer to both the dissimilarity space and its induced weighted complete graph as (X,D)(X, D). Furthermore, in this graph, we denote the edge {x,y}\{x, y\} between elements x and y simply as xy.

For α>0\alpha > 0, the α\alpha-level graph of (X,D)(X, D) is the graph Gα=(X,Eα)G_{\alpha} = (X, E_{\alpha}), where xyxy belongs to EαE_{\alpha} if D(x,y)≤αD(x, y) \leq \alpha. A maximal clique of an α\alpha-level graph is called a cluster of (X,D)(X, D). Given x∈Xx \in X and r>0r > 0, the ball centered at xx with radius rr is

Br(x)={z∈X:D(x,z)≤r}.B_{r}(x)=\{z\in X:D(x,z)\leq r\}.

For x,y∈Xx, y \in X, the 2-ball induced by xx and yy is

Bxy={z∈X:max⁡{D(x,z),D(y,z)}≤D(x,y)}.B_{x y}=\{z\in X:\max\{D(x,z),D(y,z)\}\leq D(x,y)\}.

Associated with a dissimilarity space (X,D)(X, D), we consider the following hypergraphs with vertex set XX: the cluster hypergraph, whose hyperedges are all clusters of all level graphs of (X,D)(X, D); the ball hypergraph, whose hyperedges are all balls of (X,D)(X, D); the 2-ball hypergraph, whose hyperedges are all 2-balls of (X,D)(X, D).

A hypergraph H=(X,E)\mathcal{H} = (X, \mathcal{E}) is called a hypertree if there exists a tree TT on XX such that every hyperedge of H\mathcal{H} induces a subtree of TT. Such a tree is called an underlying tree of H\mathcal{H}.

A graph G=(X,E)G = (X, E) is called dually chordal if there exists a spanning tree T of G such that every closed neighborhood of G induces a subtree of T. Equivalently, Brandstat et al. in [7] show that G is dually chordal if there exists a spanning tree T of G such that every maximal clique of G induces a subtree of T. Such a tree is called a dually chordal compatible tree of G.

  1. State of the art and our results. Robinson’s 1951 introduction of an ordering method for archaeological deposits [29] marked a foundational step in understanding structured data. Building on this work, Kendall [23] gave the first definition and characterization of Robinson matrices, which are dissimilarity matrices of Robinson spaces written according to a compatible ordering.

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

Since then, several recognition methods for Robinson spaces have been studied. Among them, we highlight two optimal polynomial-time algorithms. The first one, due to Préa and Fortin [28], uses PQ-trees, yielding an optimal algorithm with complexity O(n2)O(n^{2}). The second one, due to Carmona et al. [11], is also an optimal O(n2)O(n^{2}) algorithm and is based on the study of mmodules in Robinson spaces. The recognition problem becomes substantially more difficult when the dissimilarity matrix is only partially specified; Aracena and Thraves [2] showed that recognizing Robinson spaces with missing data is NP-hard.

Approximation problems in Robinson spaces are important because real data often contains missing or flawed information. Barthélemy and Brucker [5] studied the problem of approximating a dissimilarity space by a Robinson space through a minimization problem under an LpL^p distance, for p∈[0,+∞)p \in [0, +\infty), and proved that this optimization problem is NP-hard. Later, Chepoi et al. [14] extended this hardness result to the case p=+∞p = +\infty.

The notion of hypergraph was introduced by Berge [6] as a generalization of graphs, allowing one to represent relations that are not necessarily pairwise. Hypertrees constitute a particularly relevant class of hypergraphs for the present work. Flament [18] established a characterization of hypertrees: a hypergraph H=(X,E)H = (X, \mathcal{E}) is a hypertree if and only if it satisfies the following two properties. First, it satisfies the Helly property, namely, for every subfamily E′⊆E\mathcal{E}' \subseteq \mathcal{E} such that any two distinct hyperedges in E′\mathcal{E}' intersect, one has ∩e∈E′e≠∅\cap_{e \in \mathcal{E}' e} \neq \emptyset. Second, its line graph L(H)L(H) is chordal, where V(L(H))=EV(L(H)) = \mathcal{E} and two vertices of L(H)L(H) are adjacent if and only if the corresponding hyperedges intersect in HH.

The motivation for studying T-Robinson spaces comes from Brucker's work [8] on a particular class of dissimilarities: tree quasi-ultrametrics. Diatta and Fichet [16] define a quasi-ultrametric D:X×X→R≥0D: X \times X \to \mathbb{R}_{\geq 0} as a function satisfying, for all x,y,z∈Xx, y, z \in X, if max⁡{D(x,z),D(y,z)}≤D(x,y)\max\{D(x, z), D(y, z)\} \leq D(x, y) then for all tt in XX,

D(t,z)≤max⁡{D(x,t),D(y,t),D(x,y)}.D(t,z)\leq\max\{D(x,t),D(y,t),D(x,y)\}.

This condition is known as the four-point condition. A tree quasi-ultrametric is then a quasi-ultrametric whose cluster hypergraph is a hypertree. Brucker in [8] proved that hypertrees admit a characterization based on an ordering of their vertices, which also provides a way to identify one of their underlying trees. Moreover, Brucker showed that, for any dissimilarity space, the cluster hypergraph, ball hypergraph, and 2-ball hypergraph are equivalent in the sense that if one of them is a hypertree, then the other two are hypertrees as well. Finally, Brucker provided an algorithm for recognizing whether a hypergraph is a hypertree in time O(n3∣E∣)O(n^3|\mathcal{E}|), where n=∣X∣n = |X| is the number of vertices of the hypergraph.

We show that a dissimilarity space is T-Robinson if and only if its 2-ball hypergraph is a hypertree. We further prove that every compatible tree of a T-Robinson space is necessarily a minimum spanning tree (MST) of the underlying dissimilarity space, a property that leads to an efficient recognition algorithm. Recently, Préa [27] investigated a stronger notion of T-Robinson spaces, in which every minimum spanning tree is compatible, and proposed an O(n3)O(n^{3})-time recognition algorithm for this more restrictive class.

Circular seriation extends the classical seriation problem by replacing linear orders with circular ones. In this direction, Armstrong et al. [4] introduced the notion of circular Robinson matrices as the natural analogue of Robinson matrices for circular orders, obtained an optimal O(n2)O(n^{2}) recognition algorithm for strict circular Robinson spaces, and established statistical guarantees on the recovery of the underlying circular order. More recently, Carmona et al. [10] significantly simplified this recognition problem by proposing an O(nlog⁡n)O(n \log n) algorithm for computing a compatible circular order in the strict setting, complemented with an O(n2)O(n^2) verification algorithm. They also proved the equivalence between circular Robinson dissimilarities and pre-circular Robinson dissimilarities, thereby providing a structural characterization of this class.

Our contributions and structure of the document. In Section 4, we develop the structural theory of T-Robinson spaces. As an intermediate result, we establish in Theorem 4.1 a new characterization of dually chordal graphs. Besides being of independent interest, this characterization plays a central role in proving our main structural result, namely the following characterization of T-Robinson spaces in terms of dually chordal graphs and hypertrees.

THEOREM 3.1. Let (X,D)(X, D) be a dissimilarity space and let T be a tree on the vertex set X. The following statements are equivalent:

  1. (X,D)(X, D) is a T-Robinson space with compatible tree T.

  2. For all α>0\alpha > 0, the α\alpha-level graph GαG_{\alpha} is dually chordal with compatible tree T.

  3. The cluster hypergraph of (X,D)(X, D) is a hypertree with underlying tree T.

  4. The ball hypergraph of (X,D)(X, D) is a hypertree with underlying tree T.

  5. The 2-ball hypergraph of (X,D)(X, D) is a hypertree with underlying tree T.

In Section 5, we study the recognition problem for T-Robinson spaces. A key ingredient is Lemma 5.1, where we prove that every compatible tree of a T-Robinson space must be a minimum spanning tree of the dissimilarity space. This structural property is crucial for restricting the search space of candidate compatible trees and forms the basis of our recognition algorithm. Using this result, we establish the following theorem.

THEOREM 3.2. Let (X,D)(X, D) be a dissimilarity space on n elements and let K denote the number of minimum spanning trees of (X,D)(X, D). One can decide whether (X,D)(X, D) is a T-Robinson space in O(Kn2)O(Kn^2) time and O(n2)O(n^2) space.

In Section 6, we move beyond the recognition problem and introduce a quantitative measure of T-Robinson structure. We then propose a heuristic based on minimum spanning trees that aims to find spanning trees maximizing this measure. Finally, in Section 7, we evaluate the proposed methodology on real-world datasets and provide, to the best of our knowledge, the first empirical analysis of T-Robinson structure in practice. Together, these results establish new theoretical foundations for tree-based Robinson representations and provide practical tools for the analysis of relational data.

  1. Characterization. In this section, we establish the combinatorial characterization of T-Robinson spaces, which constitutes the main structural result of this work. Our approach relies on a sequence of equivalences connecting T-Robinson spaces with graph- and hypergraph-theoretic structures. As a first step, we revisit the class of dually chordal graphs and provide a new characterization in terms of a spanning-tree property.

Let GG be a graph and let TT be a spanning tree of GG. We say that TT satisfies the TT-clique property for GG if, for every edge xy∈E(G)xy \in E(G), the vertices of the unique x−yx-y path in TT induce a clique in GG.

As we shall see, this property provides a natural bridge between dually chordal graphs and T-Robinson spaces, and will play a central role in the development of our main characterization theorem.

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

THEOREM 4.1. Let G=(X,E)G = (X, E) be a graph. Then, G=(X,E)G = (X, E) is a dually chordal graph with compatible tree T if and only if T satisfies the T-clique property for G.

Proof. Suppose that T satisfies the T-clique property for G. We prove that G is dually chordal with compatible tree T. By the characterization of dually chordal graphs in terms of maximal cliques, it is enough to show that every maximal clique of G induces a subtree of T.

Let CC be a maximal clique of GG. Assume, for a contradiction, that T[C]T[C] is not connected. Then there exist vertices x,y∈Cx, y \in C such that the unique x−yx-y path in TT contains a vertex z∉Cz \notin C. Since CC is a clique, we have xy∈Exy \in E. As TT satisfies the T-clique property for GG, all vertices of the x−yx-y path in TT induce a clique in GG. In particular, zz is adjacent to both xx and yy.

We claim that zz is adjacent to every vertex of CC. Indeed, let w∈Cw \in C. Since CC is a clique, both wxwx and wywy are edges of GG. Moreover, as zz lies on the x−yx-y path in the tree TT, it follows that zz lies on at least one of the paths from ww to xx or from ww to yy. Applying the T-clique property to the corresponding edge, we conclude that wz∈Ewz \in E. Thus zz is adjacent to every vertex of CC, and therefore C∪{z}C \cup \{z\} is a clique of GG, contradicting the maximality of CC. Hence T[C]T[C] is connected for every maximal clique CC, and so GG is dually chordal with compatible tree TT.

Conversely, suppose that G is dually chordal, and let T be a spanning tree of G such that every maximal clique of G induces a subtree of T. We prove that T satisfies the T-clique property for G.

Let xy∈Exy \in E. Choose a maximal clique CC of GG containing both xx and yy. Since T[C]T[C] is a subtree of TT, the unique x−yx-y path in TT is entirely contained in CC. As CC is a clique of GG, all vertices of this path induce a clique in GG. Since the edge xyxy was arbitrary, TT satisfies the T-clique property for GG.

We now show a fundamental lemma that offers an alternative description of the T-Robinson property. This reformulation will serve as a key tool for the remainder of the section.

LEMMA 4.2. Let (X,D)(X, D) be a dissimilarity space. The space (X,D)(X, D) is T-Robinson with compatible tree T if and only if for every x−yx - y-path, and for every pair of elements v and w in the path it holds D(v,w)≤D(x,y)D(v, w) \leq D(x, y).

Proof. Suppose first that (X,D)(X, D) is T-Robinson with compatible tree TT. Assume, for a contradiction, that there exist vertices x,y,v,w∈Xx, y, v, w \in X such that vv and ww belong to the x−yx-y path of TT and D(v,w)>D(x,y)D(v, w) > D(x, y). Since (X,D)(X, D) is T-Robinson, every path of TT induces a Robinson ordering. Without loss of generality, assume that vv lies on the x−wx-w path. Since the path is Robinson, we obtain

D(x,w)≥max⁡{D(x,v),D(v,w)},D(x,w)\geq\max\{D(x,v),D(v,w)\},

and therefore D(x,w)≥D(v,w)D(x,w) \geq D(v,w). On the other hand, because ww lies on the x−yx-y path, the Robinson property also yields D(x,y)≥D(x,w)D(x,y) \geq D(x,w). Combining these inequalities gives

D(v,w)>D(x,y)≥D(x,w)≥D(v,w),D(v,w)>D(x,y)\geq D(x,w)\geq D(v,w),

a contradiction. Hence, for every x−yx-y path in TT and every pair of vertices v,wv,w on that path, we have D(v,w)≤D(x,y)D(v,w) \leq D(x,y).

Conversely, suppose that TT is a tree on vertex set XX such that, for every x−yx-y path in TT and every pair of vertices v,wv,w on that path, D(v,w)≤D(x,y)D(v,w) \leq D(x,y). Let x,y∈Xx,y \in X and let PP be the unique x−yx-y path in TT. For any vertex zz of PP, the hypothesis implies that

max⁡{D(x,z),D(y,z)}≤D(x,y).\max\{D(x,z),D(y,z)\}\leq D(x,y).

Therefore, the subspace induced by V(P)V(P) is Robinson with respect to the order induced by the path. Since x and y were arbitrary, every path of T induces a Robinson subspace. Consequently, (X,D)(X, D) is T-Robinson with compatible tree T.

We now present our first characterization of T-Robinson spaces using dually chordal graphs.

LEMMA 4.3. Let (X,D)(X, D) be a dissimilarity space and let T be a spanning tree of (X,D)(X, D). Then (X,D)(X, D) is a T-Robinson space with compatible tree T if and only if for every α>0\alpha > 0, the α\alpha-level graph GαG_\alpha is dually chordal with compatible tree T.

Proof. Suppose that (X,D)(X, D) is TT-Robinson with compatible tree TT. Let α>0\alpha > 0 and let GαG_\alpha be the corresponding α\alpha-level graph. Consider an edge xy∈E(Gα)xy \in E(G_\alpha). Then D(x,y)≤αD(x, y) \leq \alpha.

Let uu and vv be any two vertices on the x−yx-y path of TT. By Lemma 4.2, D(u,v)≤D(x,y)≤αD(u,v) \leq D(x,y) \leq \alpha. Hence uv∈E(Gα)uv \in E(G_\alpha). Since this holds for every pair of vertices on the x−yx-y path, the vertices of this path induce a clique in GαG_\alpha. Therefore, TT satisfies the T-clique property for GαG_\alpha, and hence GαG_\alpha is dually chordal.

Suppose that every level graph GαG_{\alpha} is dually chordal with a compatible tree T. By the characterization of dually chordal graphs due to Brandstädt et al. [7], every closed neighborhood in GαG_{\alpha} induces a subtree of T.

Assume, for a contradiction, that (X,D)(X, D) is not T-Robinson with compatible tree T. By Lemma 4.2, there exist vertices x,y,z∈Xx, y, z \in X such that yy lies on the x−zx-z path of TT and D(x,y)>D(x,z)D(x, y) > D(x, z).

Set α∗=D(x,z)\alpha^* = D(x, z). Then xz∈E(Gα∗)xz \in E(G_{\alpha^*}), and therefore z∈NGα∗[x]z \in N_{G_{\alpha^*}}[x]. On the other hand, D(x,y)>α∗D(x, y) > \alpha^*, so y∉NGα∗[x]y \notin N_{G_{\alpha^*}}[x].

Since yy lies on the x−zx-z path of TT, the unique path in TT joining two vertices of NGα∗[x]N_{G_{\alpha^*}}[x] contains a vertex outside this neighborhood. Consequently, NGα∗[x]N_{G_{\alpha^*}}[x] does not induce a subtree of TT, contradicting the dually chordal property.

Therefore, (X,D)(X, D) is T-Robinson with compatible tree T.

We now turn to the hypergraph perspective and present a characterization of T-Robinson spaces in terms of the hypergraphs naturally associated with a dissimilarity space. In particular, we show that the T-Robinson property can be completely captured by the structure of the cluster, ball, and 2-ball hypergraphs. We begin with an instrumental lemma describing the structure of 2-balls in a T-Robinson space and their relationship with compatible trees. This result will serve as the key ingredient in establishing the hypergraph characterization.

LEMMA 4.4. Let (X,D)(X, D) be a T-Robinson space with compatible tree T. For every pair of vertices x,y∈Xx, y \in X, every vertex of the x-y path in T belongs to the 2-ball BxyB_{xy}. Moreover, for every w∈Bxyw \in B_{xy}, both the w-x path and the w-y path in T are contained in BxyB_{xy}.

Proof. Let x,y∈Xx, y \in X, and let zz be a vertex on the x−yx-y path in TT. Since TT is compatible with the TT-Robinson property, the path between xx and yy induces a Robinson subspace. Hence

max⁡{D(x,z),D(y,z)}≤D(x,y),\max\{D(x,z),D(y,z)\}\leq D(x,y),

and therefore z∈Bxyz \in B_{xy}.

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

Now let w∈Bxyw \in B_{xy}. If ww lies on the x−yx-y path in TT, then the previous argument implies that both the w−xw-x path and the w−yw-y path are contained in BxyB_{xy}. Suppose then that ww does not lie on the x−yx-y path. Let cc be the unique vertex at which the three paths from ww to xx, from ww to yy, and from xx to yy meet. We prove that every vertex of the c−wc-w path belongs to BxyB_{xy}. Let hh be a vertex on the c−wc-w path. Since TT is compatible with the TT-Robinson property and hh lies on the x−wx-w path and on the y−wy-w path, we have

D(h,x)≤D(x,w)andD(h,y)≤D(y,w).D(h,x)\leq D(x,w)\quad and\quad D(h,y)\leq D(y,w).

As w∈Bxyw \in B_{xy}, we also have

D(x,w)≤D(x,y)andD(y,w)≤D(x,y).D(x,w)\leq D(x,y)\quad and\quad D(y,w)\leq D(x,y).

Thus max⁡{D(h,x),D(h,y)}≤D(x,y)\max\{D(h,x), D(h,y)\} \leq D(x,y), and so h∈Bxyh \in B_{xy}.

Consequently, the whole c−wc-w path is contained in BxyB_{xy}. Since the w−xw-x path is the union of the w−cw-c path and the c−xc-x path, and the c−xc-x path is contained in the x−yx-y path, it follows that the w−xw-x path is contained in BxyB_{xy}. The same argument applies to the w−yw-y path. This proves the result.

We now present our second characterization of T-Robinson spaces, this time from a hypergraph-theoretic perspective.

LEMMA 4.5. Let (X,D)(X, D) be a dissimilarity space and let T be a spanning tree of (X,D)(X, D). Then (X,D)(X, D) is T-Robinson with compatible tree T if and only if the 2-ball hypergraph of (X,D)(X, D) is a hypertree with underlying tree T.

Proof. Suppose first that (X,D)(X, D) is TT-Robinson with compatible tree TT. We prove that every 2-ball induces a subtree of TT. Let x,y∈Xx, y \in X and consider the 2-ball Bxy={z∈X:max⁡{D(x,z),D(y,z)}≤D(x,y)}B_{xy} = \{z \in X : \max\{D(x, z), D(y, z)\} \leq D(x, y)\}. We claim that T[Bxy]T[B_{xy}] is connected. Let u,v∈Bxyu, v \in B_{xy}, and let ww be a vertex on the unique u−vu-v path in TT. Since TT is a tree, ww lies either on the u−xu-x path or on the v−xv-x path. By Lemma 4.4, both the u−xu-x path and the v−xv-x path are contained in BxyB_{xy}. Hence w∈Bxyw \in B_{xy}. Therefore, every path in TT joining two vertices of BxyB_{xy} is contained in BxyB_{xy}, and so T[Bxy]T[B_{xy}] is a subtree of TT. Thus, the 2-ball hypergraph is a hypertree with underlying tree TT.

Conversely, suppose that the 2-ball hypergraph of (X,D)(X, D) is a hypertree with underlying tree TT. Let x,y∈Xx, y \in X, and let PP be the unique x−yx-y path in TT. Since every 2-ball induces a subtree of TT, the subgraph T[Bxy]T[B_{xy}] is a subtree. As x,y∈Bxyx, y \in B_{xy}, the unique x−yx-y path in TT is contained in T[Bxy]T[B_{xy}]. Hence every vertex z∈V(P)z \in V(P) belongs to BxyB_{xy}, and therefore

max⁡{D(x,z),D(y,z)}≤D(x,y).\max\{D(x,z),D(y,z)\}\leq D(x,y).

Thus, the subspace induced by P is Robinson with respect to the order induced by the path. Since x and y were arbitrary, every path of T induces a Robinson subspace. Therefore, (X,D)(X, D) is T-Robinson with compatible tree T.

We are now in a position to prove Theorem 3.1, which brings together the graph-theoretic and hypergraph-theoretic characterizations developed throughout this section.

Proof of Theorem 3.1. Lemma 4.3 establishes the equivalence between 1 and 2. While the equivalence between 1 and 3 follows from Lemma 4.5. Finally, by Proposition 3 of [8], the cluster hypergraph, ball hypergraph, and 2-ball hypergraph of a dissimilarity space are either all hypertrees or none of them are, and whenever they are hypertrees they share the same underlying trees. Hence, statements 3, 4, and 5 are equivalent. The result follows.

  1. Recognition. This section presents an algorithm to decide whenever a dissimilarity space is T-Robinson. Our approach leverages a key property established in Lemma 5.1 stating that any compatible tree must be a minimum spanning tree of (X,D)(X, D). This observation narrows the set of compatible tree candidates and allows us to evaluate each MST individually (Algorithm 5.2). Building on this property, in Theorem 3.2 we derive a recognition algorithm for T-Robinson spaces with time complexity O(Kn2)O(Kn^2) and space complexity O(n2)O(n^2), where n denotes the number of elements in the space and K denotes the number of distinct minimum spanning trees of the dissimilarity space.

We begin with the following result, which provides a key structural property of compatible trees.

LEMMA 5.1. Let (X,D)(X, D) be a T-Robinson dissimilarity space. If T is a compatible tree for (X,D)(X, D), then T is a minimum spanning tree of (X,D)(X, D).

Proof. Let TT be a compatible tree for a TT-Robinson dissimilarity space (X,D)(X, D). Suppose, for the sake of contradiction, that TT is not a minimum spanning tree. By the cycle property of MSTs, there exists a pair of elements x,y∈Xx, y \in X such that xyxy is not an edge of TT and the unique x−yx - y-path joining xx and yy in TT contains an edge vwvw with D(v,w)>D(x,y)D(v, w) > D(x, y). This contradicts Lemma 4.2, which requires every edge along a tree path between xx and yy to have dissimilarity at most D(x,y)D(x, y) whenever TT is compatible.

Lemma 5.1 provides a necessary condition for compatible trees and restricts the search space to minimum spanning trees. However, the condition is not sufficient: not every MST of a dissimilarity space is compatible, as illustrated in Figure 2.

Algorithm 5.2 describes a validation procedure that determines whether a given spanning tree T is compatible with a dissimilarity space (X,D)(X, D). The algorithm adopts a dynamic programming strategy in which the Robinson condition is checked on all paths of T in non-decreasing order according to their lengths, where trivial and elementary paths are considered Robinson by definition (Steps 1–7). To this end, all non-elementary paths of T are enumerated and grouped by length, retaining only the first two and last two nodes of each path (Step 8); paths are then processed from shortest to longest (Steps 9–15).

The order in which paths are processed is critical for both the correctness and the time complexity of the algorithm: when a path of length k is examined, all its proper sub-paths have already been validated. This invariant is exploited by the subroutine PathValidation, described in Algorithm 5.1, which determines whether a path P=[x1,…,xk]P = [x_1, \ldots, x_k] satisfies the Robinson condition by inspecting only its endpoints and their immediate neighbors (Steps 4–6). Specifically, it tests if all proper sub-paths of P are Robinson together with the inequality:

D(x1,xk)≥max⁡{D(x1,xk−1),D(x2,xk)}.D(x_{1},x_{k})\geq\max\{D(x_{1},x_{k-1}),D(x_{2},x_{k})\}.

This local check, which runs in O(1)O(1) time, replaces the exhaustive verification over all intermediate triplets in P, whose correctness is guaranteed by the inductive hypothesis that all its proper sub-paths have already been tested. Furthermore, the algorithm simultaneously counts the number of Robinson paths in T, providing a quantitative measure of compatibility that will be used extensively in the subsequent sections.

LEMMA 5.2. Let (X,D)(X, D) be a dissimilarity space with ∣X∣=n|X| = n, and let T be a tree on vertex set X. Algorithm 5.2 returns n(n−1)/2n(n - 1)/2 if and only if T is a compatible tree for (X,D)(X, D).

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

Algorithm 5.1 Subroutine PathValidation

Input: D dissimilarity matrix, Y boolean matrix of valid Robinson paths, and P a path in T

1: output ← False

2: x1,x2←x_{1}, x_{2} \leftarrow first and second element in path P

3: x3,x4←x_{3}, x_{4} \leftarrow second-to-last and last elements of P

4: if Y[x1,x3]Y[x_{1}, x_{3}] and Y[x2,x4]Y[x_{2}, x_{4}] and D(x1,x4)≥max⁡{D(x1,x3),D(x2,x4)}D(x_{1}, x_{4}) \geq \max\{D(x_{1}, x_{3}), D(x_{2}, x_{4})\} then

5: output ← True

6: end if

7: return output

Proof. If TT is compatible with (X,D)(X, D), every path satisfies the Robinson condition, and Algorithm 5.2 returns n(n−1)/2n(n-1)/2. Conversely, if TT is not compatible, there exists a path that does not satisfy the Robinson condition. Let P=[x1,…,xk]P = [x_1, \ldots, x_k] be such a path of minimum length. By minimality, every proper sub-path of PP is Robinson, so Lemma 4.2 gives

D(x1,xk−1)≥max⁡1≤i≤k−1D(x1,xi),D(x2,xk)≥max⁡2≤j≤kD(xj,xk).D(x_{1},x_{k-1})\geq\max_{1\leq i\leq k-1}D(x_{1},x_{i}),\qquad D(x_{2},x_{k})\geq\max_{2\leq j\leq k}D(x_{j},x_{k}).

Since PP is not Robinson, there exists an internal vertex y∈Py \in P, with y∉{x1,xk}y \notin \{x_1, x_k\}, and such that D(x1,xk)<max⁡{D(x1,y),D(y,xk)}D(x_1, x_k) < \max\{D(x_1, y), D(y, x_k)\}; therefore,

D(x1,xk)<max⁡{D(x1,y),D(y,xk)}≤max⁡{D(x1,xk−1),D(x2,xk)}.D(x_{1},x_{k})<\max\{D(x_{1},y),D(y,x_{k})\}\leq\max\{D(x_{1},x_{k-1}),D(x_{2},x_{k})\}.

Hence, the condition tested in PathValidation fails for P, and the subroutine correctly returns False, identifying the path as a violation of the Robinson condition. Therefore, Algorithm 5.2 returns a value strictly smaller than n(n−1)/2n(n-1)/2.

LEMMA 5.3. Algorithm 5.2 runs in O(n2)O(n^{2}) time and requires O(n2)O(n^{2}) space, where n denotes the number of elements of the input dissimilarity space.

Proof. The family {P[k]}k∈[2,diam(T)]\{\mathcal{P}[k]\}_{k\in[2,\text{diam}(T)]}, storing the first two and last two elements of every paths of length kk in TT, can be constructed in O(n2)O(n^2) time by computing pairwise distances during a DFS traversal rooted at each vertex of TT. Since each of the O(n2)O(n^2) paths is processed in O(1)O(1) time by Algorithm 5.1, the validation of a single tree takes O(n2)O(n^2) time. The overall space is O(n2)O(n^2), dominated by the matrix YY and the stored path endpoints.

By combining the validation Algorithm 5.2 with an exhaustive examination of the MST space, we derive Theorem 3.2, stating that T-Robinson spaces can be recognized with a time complexity O(Kn2)O(Kn^{2}) and space O(n2)O(n^{2}), where K denotes the number of minimum spanning trees of the dissimilarity space.

Proof of Theorem 3.2. By Lemma 5.1, any tree compatible with (X,D)(X, D) must be a minimum spanning tree. The recognition algorithm therefore enumerates all MSTs of (X,D)(X, D) and validates each one using Algorithm 5.2, accepting if and only if at least one compatible tree is found.

The enumeration of all MSTs proceeds in two stages. In the first stage, an auxiliary graph is constructed whose spanning trees are in bijection with the MSTs of (X,D)(X, D) [17]. The auxiliary graph can be built in O(m+nlog⁡n)O(m + n \log n) time and O(n2)O(n^2) space, where mm is the number of edges in the former graph ( m=n(n−1)/2m = n(n - 1)/2 in our case).

Algorithm 5.2 T-Robinson Validation

Input: (X,D)(X, D) dissimilarity space on nn elements, TT spanning tree 1: paths ←n−1\leftarrow n - 1 {counter of non-trivial valid Robinson paths} 2: Y←Falsen×nY \leftarrow \text{False}^{n \times n} {boolean matrix of valid Robinson paths} 3: for x∈Xx \in X do 4: for y∈N[x]y \in N[x] do 5: Y[x,y]=TrueY[x, y] = \text{True} {trivial and elementary paths} 6: end for 7: end for 8: Compute, for each k=2,…,diam(T)k = 2, \ldots, \text{diam}(T), the set P[k]\mathcal{P}[k] of all paths of length kk in TT, storing for each path the first two and last two vertices 9: for k=2k = 2 to diam(T)\text{diam}(T) do 10: for P∈P[k]P \in \mathcal{P}[k] do 11: if PathValidation( D,Y,PD, Y, P) then 12: x,y←extreme nodes of Px, y \leftarrow \text{extreme nodes of } P 13: Y[x,y]←True;Y[y,x]←TrueY[x, y] \leftarrow \text{True}; Y[y, x] \leftarrow \text{True} 14: paths ←paths+1\leftarrow \text{paths} + 1 15: end if 16: end for 17: end for 18: return paths

In the second stage, the procedure described in [22] enumerates all KK spanning trees of the auxiliary graph, thereby recovering all KK MSTs of (X,D)(X, D). This enumeration can be performed in O(m+nlog⁡n+K)=O(n2+K)O(m + n \log n + K) = O(n^2 + K) time to describe all spanning trees implicitly, with an additional O(Kn)O(Kn) time to output each MST explicitly, and uses O(n2)O(n^2) space throughout.

Finally, each of the K MSTs is validated by Algorithm 5.2 in O(n2)O(n^2) time, yielding an overall time and space complexity of O(Kn2)O(Kn^2) and O(n2)O(n^2), respectively.

Since the number of MTSs can be exponential in the number of elements in the worst case, our method does not universally outperform the existing alternative with complexity O(n5)O(n^5) [8]. Nevertheless, our approach represents a significant improvement when the number of MSTs is small ( K=o(n3)K = o(n^3)). This condition is satisfied in numerous practically relevant settings and many real-world network datasets where dissimilarity values are predominantly distinct.

  1. Optimization approach. Now, we introduce an optimization framework designed to bridge the gap between arbitrary dissimilarity spaces and exact T-Robinson spaces. Because empirical data rarely exhibit perfect structural compatibility, not all dissimilarity matrices inherently admit a T-Robinson spanning tree. Therefore, we aim to find a spanning tree that maximizes structural adherence to the T-Robinson property. Next, Section 6.1 formalizes this objective by defining the combinatorial optimization problem and illustrating it with a minimal working example. Subsequently, Section 6.2 details our algorithmic proposal to efficiently navigate the search space of spanning trees.

6.1. Problem formulation. As established in Definition 2.1, a dissimilarity space (X,D)(X, D) is T-Robinson if it admits a compatible tree where every path induces a Robinson subspace. However, empirical data rarely exhibits perfect structural

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

Figure

FIG. 2. Evaluation of T-Robinson compatibility for spanning trees T1T_{1} and T2T_{2}, where dashed arcs represent pairwise dissimilarities and highlight the structural violation in T2T_{2}.

compatibility. To quantify the structural adherence of any candidate spanning tree T∈T(X)T \in \mathcal{T}(X) to the T-Robinson property, we introduce the objective function PRD(T)PR_D(T).

Motivated by Lemma 4.2, PRD(T)PR_D(T) evaluates the structural affinity by counting the number of valid Robinsonian paths in TT. The optimization problem consists of finding a spanning tree T∗T^* that maximizes this path count:

(6.1)

T∗=arg⁡max⁡T∈T(X)PRD(T).T^{*}=\underset{T\in\mathcal{T}(X)}{\arg\max}PR_{D}(T).

By Lemma 5.2, the theoretical maximum for PRD(T)PR_D(T) is n(n−1)/2n(n-1)/2, which is strictly attained if and only if (X,D)(X,D) is exactly T-Robinson and T is its compatible tree.

To illustrate this objective and highlight why finding T∗T^{*} is non-trivial, even when restricting the search to the space of exact minimum spanning trees (as mandated by Lemma 5.1), consider the following dissimilarity matrix:

(6.2)

D=[0111101211011210].D=\begin{bmatrix}{{{0}}}&{{{1}}}&{{{1}}}&{{{1}}} \\{{{1}}}&{{{0}}}&{{{1}}}&{{{2}}} \\{{{1}}}&{{{1}}}&{{{0}}}&{{{1}}} \\{{{1}}}&{{{2}}}&{{{1}}}&{{{0}}}\end{bmatrix}.

For this specific dissimilarity space (X,D)(X, D), Figure 2 presents two candidate minimum spanning trees, T1T_1 and T2T_2, both having an identical minimal weight of w(T)=3w(T) = 3.

Evaluating the objective function over both candidates highlights their structural differences. The star graph T1T_1 satisfies the Robinson constraint across all six of its unique paths. For instance, the path Px2x4=[x2,x1,x4]P_{x_2x_4} = [x_2, x_1, x_4] connects endpoints with a dissimilarity of D(x2,x4)=2D(x_2, x_4) = 2; its internal connections yield distances D(x1,x2)=1D(x_1, x_2) = 1 and D(x1,x4)=1D(x_1, x_4) = 1, strictly adhering to the condition D(u,v)≤D(x2,x4)D(u, v) \leq D(x_2, x_4). Thus, PRD(T1)=6PR_D(T_1) = 6, achieving the global maximum.

In contrast, the path graph T2T_2 yields PRD(T2)=5PR_D(T_2) = 5. While five of its subpaths are valid, the maximal path Px2x3P_{x_2x_3} violates the Robinson condition because evaluating the intermediate node x4x_4 reveals a distance of D(x2,x4)=2D(x_2, x_4) = 2, which strictly exceeds the endpoint dissimilarity D(x2,x3)=1D(x_2, x_3) = 1.

Algorithm 6.1 Multistart Algorithm

Input: Dissimilarity matrix DD, maximum execution time tmaxt_{max}

Output: Spanning tree T∗T^{*} approximating the optimal TT-Robinson compatibility

1: T∗←∅T^{*} \leftarrow \emptyset

2: PRbest←−1PR_{best} \leftarrow -1

3: Tpool←\mathcal{T}_{pool} \leftarrow ConstructionPhase(DD)

4: i←1i \leftarrow 1

5: while elapsed time <tmax< t_{max} and i≤∣Tpool∣i \leq |\mathcal{T}_{pool}| do

6: Tinit←Tpool[i]T_{init} \leftarrow \mathcal{T}_{pool}[i]

7: Tlocal←T_{local} \leftarrow LocalSearch(Tinit,DT_{init}, D)

8: if PRD(Tlocal)>PRbestPR_{D}(T_{local}) > PR_{best} then

9: T∗←TlocalT^{*} \leftarrow T_{local}

10: PRbest←PRD(Tlocal)PR_{best} \leftarrow PR_{D}(T_{local})

11: end if

12: i←i+1i \leftarrow i + 1

13: end while

14: return T∗T^{*}

This confirms the fact that minimizing edge weight is a necessary but insufficient condition for maximizing the T-Robinson property. Identifying an optimal tree requires navigating the highly degenerate space of MSTs, which motivates the algorithmic proposal detailed in the following subsection.

6.2. Algorithmic proposal. Given the combinatorial nature of the problem defined in Section 6.1, finding the exact T-Robinson spanning tree requires navigating the complete space of T(X)\mathcal{T}(X). Since the number of spanning trees for a complete graph on nn vertices is nn−2n^{n-2}, exact algorithms become computationally prohibitive for large-scale instances.

To tackle this problem, we propose a multistart heuristic framework. Multistart methods are highly effective for rugged objective landscapes, as they iteratively balance exploration (diversification) and exploitation (intensification) and have been proposed successfully for similar problems [12][12]. Our framework operates by first generating a diverse, high-quality pool of initial trees. Then, it sequentially applies a local search phase to refine the best available topologies, maximizing their structural compatibility until a computational budget is exhausted.

Algorithm 6.1 outlines this proposed approach, taking the dissimilarity matrix DD and a global time limit tmaxt_{max} as inputs. After initializing the incumbent solution T∗T^{*} and its objective value PRbestPR_{best} (Steps 1–2), the framework executes the construction phase to build and sort a pool of candidate trees, Tpool\mathcal{T}_{pool} (Step 3). The search is then driven by a time-bounded loop (Step 5). In each iteration ii, the algorithm selects the ii-th best tree from the pool as the initial solution TinitT_{init} (Step 6) and applies a local search to refine it into a local optimum TlocalT_{local} (Step 7). If TlocalT_{local} strictly improves upon the incumbent objective, T∗T^{*} is updated accordingly (Steps 8–10). This sequential improvement process repeats until the tmaxt_{max} budget is consumed or the pool is exhausted, returning the highest-quality TT-Robinson approximation found.

Construction phase. The construction phase (Algorithm 6.1, Step 3) is responsible for generating the diverse pool of candidate spanning trees, Tpool\mathcal{T}_{pool}, which provides the starting points for the subsequent local search. This procedure exploits the structural correlation between MSTs and T-Robinson spaces through a combination of

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

exact evaluations and stochastic perturbations.

First, relying on the necessary condition established in Lemma 5.1, which proves that any compatible tree must be a minimum spanning tree of (X,D)(X, D), we explore the set of exact MSTs for the dissimilarity space. Because empirical data often contains tied dissimilarity values, the optimization landscape frequently exhibits a high multiplicity of optimal solutions. We generate a subset of exact minimum weight trees within a predefined computational time limit tmstt_{mst}, appending all unique topologies to our candidate pool.

To escape potentially suboptimal topologies inherent to exact MSTs, the second stage employs a noise-induced exploration strategy. We apply random perturbations to the original matrix, thereby generating novel MST topologies. Specifically, we compute a perturbed matrix Dnoise=D+εRD_{noise} = D + \varepsilon R, where R∈Rn×nR \in \mathbb{R}^{n \times n} is a symmetric random matrix with a zero diagonal whose strictly upper-triangular entries are sampled from a standard normal distribution N(0,1)\mathcal{N}(0,1), and ε>0\varepsilon > 0 dictates the noise intensity. This perturbation is applied independently npertn_{pert} times, and one MST of each modified space (X,Dnoise)(X, D_{noise}) is computed and added to the candidate pool.

Crucially, while the perturbed matrices dictate the generated tree topologies, their structural compatibility is exclusively evaluated using the original dissimilarity matrix D. Once both exact and stochastically perturbed trees are gathered, we evaluate the objective function PRD(T)PR_{D}(T) for every tree in the pool. Finally, TpoolT_{pool} is sorted in descending order according to these objective values. Consequently, during the multistart execution, the algorithm systematically prioritizes the refinement of the most promising topological structures.

Local search phase. The initial trees generated during the construction phase act as starting points for a systematic neighborhood exploration. The local search phase (Algorithm 6.1, Step 7) is designed to iteratively refine a candidate tree T by applying structural perturbations that increase its objective value PRD(T)PR_{D}(T) until a local maximum is reached.

To formally define the neighborhood of a solution, let T=(X,E)T = (X, E) be a candidate spanning tree and let L(T)⊂XL(T) \subset X denote the set of its leaf vertices (i.e., vertices with a degree of exactly 1). We define a fundamental structural operation denoted leaf relocation. For any given leaf v∈L(T)v \in L(T) adjacent to a unique vertex uu, the operation consists of deleting the edge vuvu and inserting a new edge vwvw, where w∈X∖{v,u}w \in X \setminus \{v, u\}. Because this operation merely reattaches a terminal node to a different part of the existing structure, it strictly preserves the connectivity and acyclic properties required for a spanning tree.

Based on this operation, T′T's neighborhood N(T)\mathcal{N}(T) is defined as the set of all valid spanning trees that can be reached from TT by applying exactly one leaf relocation. Mathematically, this is expressed as:

N(T)={(X,(E∖{uv})∪{vw})  ∣  v∈L(T),  uv∈E,  w∈X∖{u,v}}.\mathcal{N}(T)=\Big\{\big(X,(E\setminus\{u v\})\cup\{v w\}\big)\;\Big|\;v\in L(T),\;u v\in E,\;w\in X\setminus\{u,v\}\Big\}.

To illustrate this neighborhood generation, consider the candidate tree T2T_2 introduced in Section 6.1, which induces the path graph x2−x1−x4−x3x_2 - x_1 - x_4 - x_3. The set of leaves is L(T2)={x2,x3}L(T_2) = \{x_2, x_3\}. Initially, x2x_2 is adjacent to x1x_1. By removing the edge x2x1x_2x_1, we can reattach x2x_2 to any other vertex in the set {x4,x3}\{x_4, x_3\}. As shown in Figure 3, relocating x2x_2 to x4x_4 generates the neighbor T2aT_{2a}, while relocating it to x3x_3 generates the neighbor T2bT_{2b}. Applying this same logic to the other leaf x3x_3 generates two additional neighbors, resulting in a total neighborhood size of ∣N(T2)∣=4|\mathcal{N}(T_2)| = 4.

Figure

FIG. 3. Neighborhood generation N(T2)\mathcal{N}(T_2) for leaf x2x_2. Removing the edge x2x1x_2x_1 (dotted red) and reattaching x2x_2 to vertices x4x_4 and x3x_3 yields the neighbors T2aT_{2a} and T2bT_{2b} (solid green), respectively.

To traverse this neighborhood, two distinct exploration strategies will be analyzed and compared in our computational framework: first improvement, which immediately accepts the first neighbor that strictly increases PRD(T)PR_D(T), and best improvement, which evaluates the entire neighborhood N(T)\mathcal{N}(T) to select the neighbor yielding the maximum objective gain.

  1. Experimental analysis. To evaluate the performance, scalability, and practical applicability of the proposed multistart framework, we conduct a comprehensive computational analysis. The experiments are divided into two main categories: first, an algorithmic benchmarking on synthetic instances to assess the individual contribution of the construction and local search strategies; second, an application to real-world biological datasets to demonstrate the framework's utility in empirical scenarios.

All algorithms were implemented in Python 3.9 and the computational experiments were executed on a dedicated machine equipped with a Intel Xeon Gold 6226R 2.90 GHz with 8 GB RAM.

7.1. Analysis of the algorithm. The algorithmic components were evaluated over a controlled set of synthetic dissimilarity spaces. The instances consist of complete, symmetric dissimilarity matrices of size n∈{7,10,15,20,25,30}n \in \{7, 10, 15, 20, 25, 30\}. To avoid algorithmic bias, these matrices were populated using a uniform random linear generator [20], ensuring that they lack any inherent or pre-planted Robinsonian structure. This represents the most challenging scenario (the worst-case topology) for the heuristic, as the optimization landscape is highly irregular.

To facilitate comparison across varying matrix sizes, the objective function reported in this section is the normalized T-Robinson compatibility, defined as the ratio of valid Robinsonian paths to the maximum possible paths in a spanning tree: PR‾D(T)=2⋅PRD(T)n(n−1)\overline{PR}_{D}(T) = \frac{2 \cdot PR_{D}(T)}{n(n-1)}. Thus, PR‾D(T)∈[0,1]\overline{PR}_{D}(T) \in [0, 1].

The first experiment isolates the construction phase (Section 6.2) to quantify the value of the noise-induced perturbation strategy compared to a purely deterministic exploration of exact MSTs. Table 1 reports the computational results for the construction phase. A clear trend is that the structural quality of exact MSTs deteriorates as the instance size n increases. Although the MST space is highly degenerate,

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

averaging 79.4 minimal trees for n=30n = 30, relying solely on tie-breaking rules does not generate sufficient topological diversity to capture the Robinsonian property in larger spaces. The addition of random noise addresses this issue. By perturbing the dissimilarity matrix, the ordinal ranking of the edges changes, forcing the algorithm to sample spanning trees with fundamentally different topologies. The perturbation budget was fixed at 200 iterations, as preliminary computational tests revealed that the structural improvement exhibits asymptotic convergence beyond this threshold. As shown in the table, this strategy yields an average improvement of 5.49%5.49\% over the deterministic approach, providing a stronger set of initial solutions for the local search phase.

TABLE 1 Performance comparison within the construction phase. The table contrasts the average normalized objective PR‾D(T)\overline{PR}_{D}(T) obtained solely from exact MSTs against the enhanced pool generated using stochastic perturbations (MST + Noise).

Size (n)Exact MSTMST + Noise
PR‾D(T)\overline{PR}_{D}(T)# Trees ExploredPR‾D(T)\overline{PR}_{D}(T)# Trees ExploredImprovement (%)
70.7861.80.8102003.12
100.6725.40.7192006.83
150.58015.00.6102004.35
200.46610.20.4932004.49
250.37866.90.4182008.26
300.34979.40.3792005.86
Average0.53829.80.5722005.49

Building upon the initial pool generated by the construction phase, which evaluates exact MSTs and applies the aforementioned 200 noise-induced iterations, we assess the impact of the neighborhood exploration strategies: first improvement (FI) and best improvement (BI). The algorithms were executed with a strict global time budget of tmax=600t_{max} = 600 seconds per instance.

Table 2 summarizes the aggregate performance across all synthetic instances. The construction phase reliably provides a strong initial baseline, securing an average compatibility score of 0.573 within approximately 11 seconds. Applying a single iteration of the local search (LS) until a local optimum is reached significantly increases the metric across both strategies. However, FI achieves a slightly better local optimum (0.748) in less computational time (266.11 seconds) compared to BI (0.743 in 316.63 seconds). This efficiency directly scales to the full multistart (MS) execution: because FI consumes less time per LS, it completes more global iterations within the 600-second budget, ultimately converging to a superior global metric (0.751 versus 0.744).

Analyzing the scalability of these strategies as a function of the instance size nn reveals a steep exponential growth in the computational time required for neighborhood exploration. While the construction time remains highly stable across all dimensions (fluctuating tightly between 10 and 13 seconds), the LS phase rapidly becomes the bottleneck. For smaller topologies (n≤10n \leq 10), both FI and BI efficiently resolve the neighborhood within seconds. However, as nn increases, the computational overhead of evaluating the entire neighborhood N(T)\mathcal{N}(T) heavily penalizes the BI strategy. For instance, at n=15n = 15, BI requires more than double the time of FI (206.8 seconds versus 81.9 seconds). By n=30n = 30, the discrete search space is so vast that identifying a single local optimum exhausts the entire 600-second budget, forcing both strategies

TABLE 2 Aggregate performance of the FI and BI strategies across the construction, single local search (LS), and complete multistart (MS) phases. Times are reported in seconds. The global time limit was set to 600 seconds.

StrategyConstructionLocal SearchMultistart
PR‾D(T)\overline{PR}_{D}(T)Time (s)PR‾D(T)\overline{PR}_{D}(T)Time (s)PR‾D(T)\overline{PR}_{D}(T)Time (s)
BI0.57310.910.743316.630.744600.01
FI0.57310.910.748266.110.751600.01
Average0.57310.910.746291.370.748600.01

to systematically hit the timeout restriction before a full MS cycle can be completed.

7.2. Application to real-world biological datasets. To assess the practical applicability of the proposed optimization framework, we evaluated its performance on real-world genomic datasets. In bioinformatics, estimating the evolutionary divergence between species or the transcriptomic affinity between samples inherently relies on pairwise sequence dissimilarities. Mapping these relationships into a T-Robinson compatible spanning tree provides a natural, hierarchical representation of the data without enforcing rigid clustering assumptions.

For our experimental evaluation, we compiled a diverse suite of biological instances categorized into three primary datasets:

  1. NCBI genomes: We utilized genomic sequences from the RefSeq and GenBank repositories [30]. To quantify structural relationships without full sequence alignment, sequence profiles were extracted using kk-mers with a word length of k=31k = 31. The dissimilarity between any pair of genomes was computed using the Jaccard distance over their respective kk-mer sets. We extracted a representative subset of 1,000 genomes across distinct taxonomic domains (viruses, archaea, and bacteria), yielding a 1000×10001000 \times 1000 symmetric dissimilarity matrix bounded in [0, 1].

  2. TCGA transcriptomics: This set comprises primary tumor samples from The Cancer Genome Atlas (TCGA) [19], specifically the Esophageal Carcinoma (TCGA-ESCA, n=184n = 184) and Rectum Adenocarcinoma (TCGA-READ, n=166n = 166) cohorts. Gene expression profiles (RNA-Seq) were normalized via the Trimmed Mean of M-values (TMM) method and transformed to log2-CPM. Retaining the 1,000 most highly variable genes, dissimilarity was defined as the complement of the Spearman correlation coefficient, D(x,y)=1−ρ(x,y)D(x,y) = 1 - \rho(x,y), yielding values bounded in [0, 2].

  3. Fungal protein families: This dataset captures pairwise dissimilarity computed as the percentage of differing positions over two aligned genome sequences for five fungal protein families (e.g., Laccases, Peroxidases, Chitinases) distributed across Polyporales and Agaricales genomes [3], providing dissimilarity matrices ranging from n=57n = 57 to n=126n = 126.

Unlike synthetic instances, real-world biological data is heavily burdened by evolutionary noise, homoplasy, and tied distances, naturally deviating from a perfect hierarchical structure. This structural degradation is immediately evident in the exact minimum spanning trees. Across all evaluated biological instances, the exact MSTs yielded a low average TT-Robinson compatibility of PR‾D(T)≈0.136\overline{PR}_D(T) \approx 0.136. Under a restricted 1-hour budget, the heuristic consistently optimized the tree topologies,

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

Primary diagnosis

Squamous cell carcinoma, NOS

Squamous cell carcinoma, keratinizing, NOS

Not Reported

Adenocarcinoma, NOS

Basaloid squamous cell carcinoma

Basal cell carcinoma, NOS

Tubular adenocarcinoma

Multiple myeloma

Mucinous adenocarcinoma

Malignant lymphoma, non-Hodgkin, NOS

Figure

Cancer stage

I

II

III

IV

Unknown

Figure

Age group

46-60

≤45

61-75

75

Figure

FIG. 4. Visualization of the optimized T-Robinson spanning tree for the TCGA-ESCA transcriptomics dataset. The identical tree structure is color-coded by Top: Primary diagnosis, showing a clear transcriptomic bifurcation. Middle: Cancer stage, presenting a more heterogeneous distribution. Bottom: Patient age group, revealing distinct demographic gradients across the main branches.

elevating the average structural metric to PR‾D(T)≈0.224\overline{PR}_{D}(T) \approx 0.224. This represents a substantial relative improvement of over 65.10% compared to the deterministic MST baseline.

Next, to visually corroborate that maximizing the T-Robinson property inherently captures meaningful biological relationships, we mapped sample metadata onto the optimized topologies. Figure 4 illustrates the optimized T-Robinson spanning tree for the TCGA-ESCA cohort, incorporating primary diagnosis, cancer stage, and patient age group.

In the top panel, nodes are color-coded according to their primary diagnosis. As observed, minimizing the T-Robinson violations forces the tree topology to naturally group similar transcriptomic profiles into distinct, contiguous branches, effectively organizing the tumors by their underlying genetic profile without requiring predefined clustering algorithms. Most notably, a clear binary division emerges within the structure, accurately segregating squamous cell carcinomas (upper branch) from adenocarcinomas (lower branch). Furthermore, four cases lacking a reported primary diagnosis (green nodes) are seamlessly integrated into these established clusters based purely on their transcriptomic dissimilarities, demonstrating the algorithm's capacity to uncover hidden biological relationships and properly classify unannotated elements.

The middle and bottom panels display the identical tree structure color-coded by clinical variables. While the cancer stage (middle panel) exhibits a scattered, non-contiguous distribution—confirming that the T-Robinson formulation strictly adheres to latent genetic similarities rather than arbitrary clinical staging—the age group mapping (bottom panel) reveals a noteworthy macroscopic trend. Patients aged 46 to 60 years are predominantly localized within the upper branch, coinciding with the squamous cell carcinoma cluster, whereas older patients ( ≥\geq 61 years) are mostly concentrated in the lower adenocarcinoma branch. This underlying spatial distribution accurately reflects the distinct demographic characteristics inherently associated with these two major esophageal cancer subtypes.

  1. Future work. This work opens several promising avenues for future research. From an algorithmic perspective, an important open question is whether the recognition of T-Robinson spaces can be performed more efficiently. Our recognition algorithm relies on the enumeration of minimum spanning trees, and reducing or eliminating this dependency remains a challenging problem. In particular, it would be interesting to investigate whether the techniques recently introduced by Préa [27] for recognizing strong T-Robinson spaces can be adapted to obtain a faster recognition algorithm for the general case.

A second natural direction concerns the optimization version of the problem. Given a dissimilarity space, one may seek a spanning tree that maximizes the number of Robinson paths. The computational complexity of this problem is currently unknown, and it remains to determine whether it is NP-hard or admits a polynomial-time algorithm. More generally, establishing theoretical approximation guarantees or developing exact algorithms for this optimization problem would provide stronger performance guarantees for practical applications.

Another direction is extending the framework to incomplete dissimilarity spaces, where some pairwise dissimilarities are missing. Such an extension is relevant in view of the increasing availability of large-scale relational datasets, especially in bioinformatics, where missing data naturally arise. Finally, it would be interesting to investigate further the applicability of T-Robinson spaces to other types of real-world data and to assess their usefulness in a broader range of data analysis.

P. ASENJO, S. CAVERO, M. SOTO-GOMEZ AND C. THRAVES CARO

REFERENCES

[1] M. ABU-ATA AND F. F. DRAGAN, Metric tree-like structures in real-world networks: an empirical study, Networks, 67 (2016), pp. 49–68.

[2] J. ARACENA AND C. THRAVES CARO, On the recognition of strong-robinsonian incomplete matrices, arXiv preprint arXiv:2101.03033, (2021).

[3] G. ARIAS SOTO, Pairwise distance and identity matrices for five fungal protein families across six polyporales/agaricales genomes, June 2026, https://doi.org/10.5281/zenodo.21012487.

[4] S. ARMSTRONG, C. GUZMÁN, AND C. A. SING LONG, An optimal algorithm for strict circular seriation, SIAM Journal on Mathematics of Data Science, 3 (2021), pp. 1223–1250.

[5] J.-P. BARTHÉLEMY AND F. BRUCKER, NP-hard approximation problems in overlapping clustering, Journal of Classification, 18 (2001), pp. 159–183.

[6] C. BERGE, Graphs and hypergraphs, Elsevier Science Ltd., 1985.

[7] A. BRANDSTÄDT, F. DRAGAN, V. CHEPOI, AND V. VOLOSHIN, Dually chordal graphs, SIAM Journal on Discrete Mathematics, 11 (1998), pp. 437–455.

[8] F. BRUCKER, From hypertrees to arboreal quasi-ultrametrics, Discrete Applied Mathematics, 147 (2005), pp. 3–26.

[9] G. CARAUX AND S. PINLOCHE, Permutmatrix: a graphical environment to arrange gene expression profiles in optimal linear order, Bioinformatics, 21 (2005), pp. 1280–1281.

[10] M. CARMONA, V. CHEPOI, G. NAVES, AND P. PRÉA, A simple and optimal algorithm for strict circular seriation, SIAM Journal on Mathematics of Data Science, 5 (2023), pp. 201–221.

[11] M. CARMONA, V. CHEPOI, G. NAVES, AND P. PRÉA, Modules in robinson spaces, SIAM Journal on Discrete Mathematics, 38 (2024), pp. 190–224.

[12] S. CAVERO, E. G. PARDO, A. DUARTE, AND R. MARTÍ, Graph layout problems, in Handbook of Heuristics, Springer, 2025, pp. 1321–1351.

[13] C.-H. CHEN, H.-G. HWU, W.-J. JANG, C.-H. KAO, Y.-J. TIEN, S. TZENG, AND H.-M. WU, Matrix visualization and information mining, in COMPSTAT 2004—Proceedings in Computational Statistics: 16th Symposium Held in Prague, Czech Republic, 2004, Springer, 2004, pp. 85–100.

[14] V. CHEPOI, B. FICHET, AND M. SESTON, Seriation in the presence of errors: NP-hardness of l∞l^{\infty}-fitting robinson structures to dissimilarity matrices, Journal of Classification, 26 (2009), pp. 279–296.

[15] Y. M. COSTA, D. BERTOLINI, A. S. BRITTO JR, G. D. CAVALCANTI, AND L. E. OLIVEIRA, The dissimilarity approach: a review, Artificial Intelligence Review, 53 (2020), pp. 2783–2808.

[16] J. DIATTA AND B. FICHET, From apresjan hierarchies and bandelt-dress weak hierarchies to quasi-hierarchies, in New Approaches in Classification and Data Analysis, Springer, 1994, pp. 111–118.

[17] D. EPPSTEIN, Representing all minimum spanning trees with applications to counting and generation, Tech. Report ICS-TR-95-50, Department of Information and Computer Science, University of California, Irvine, 1995.

[18] C. FLAMENT, Hypergraphes arborés, Discrete Mathematics, 21 (1978), pp. 223–227.

[19] R. L. GROSSMAN, A. P. HEATH, V. FERRETTI, H. E. VARMUS, D. R. LOWY, W. A. KIBBE, AND L. M. STAUDT, Toward a shared vision for cancer genomic data, New England Journal of Medicine, 375 (2016), pp. 1109–1112.

[20] C. R. HARRIS, K. J. MILLMAN, S. J. VAN DER WALT, R. GOMMERS, P. VIRTANEN, D. COURNA-PEAU, E. WIESER, J. TAYLOR, S. BERG, N. J. SMITH, R. KERN, M. PICUS, S. HOYER, M. H. VAN KERKWIJK, M. BRETT, A. HALDANE, J. F. DEL RÍO, M. WIEBE, P. PETERSON, P. GÉRARD-MARCHANT, K. SHEPPARD, T. REDDY, W. WECKESSER, H. ABBASI, C. GOHLKE, AND T. E. OLIPHANT, Array programming with NumPy, Nature, 585 (2020), pp. 357–362.

[21] J. A. HENDERSON AND P. A. ROBINSON, Using geometry to uncover relationships between isotropy, homogeneity, and modularity in cortical connectivity, Brain Connectivity, 3 (2013), pp. 423–437.

[22] S. KAPOOR AND H. RAMESH, Algorithms for enumerating all spanning trees of undirected and weighted graphs, SIAM Journal on Computing, 24 (1995), pp. 247–265.

[23] D. KENDALL, Incidence matrices, interval graphs and seriation in archeology, Pacific Journal of Mathematics, 28 (1969), pp. 565–570.

[24] I. LIIV, Seriation and matrix reordering methods: An historical overview, Statistical Analysis and Data Mining: The ASA Data Science Journal, 3 (2010), pp. 70–91.

[25] J. LIU, Q. ZHANG, W. WANG, L. MCMILLAN, AND J. PRINS, Clustering pair-wise dissimilarity data into partially ordered sets, in Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, 2006, pp. 637–642.

[26] O. PENNER, P. GRASSBERGER, AND M. PACZUSKI, Sequence alignment, mutual information, and dissimilarity measures for constructing phylogenies, PloS one, 6 (2011), p. e14373.

[27] P. PRÉA, Tree-robinson dissimilarities, Annals of Combinatorics, (2026), pp. 1–14.

[28] P. PRÉA AND D. FORTIN, An optimal algorithm to recognize robinsonian dissimilarities, Journal of Classification, 31 (2014), pp. 351–385.

[29] W. S. ROBINSON, A method for chronologically ordering archaeological deposits, American Antiquity, 16 (1951), pp. 293–301.

[30] E. W. SAYERS, J. BECK, E. E. BOLTON, J. R. BRISTER, J. CHAN, R. CONNOR, M. FELDGARDEN, A. M. FINE, K. FUNK, J. HOFFMAN, ET AL., Database resources of the national center for biotechnology information in 2025, Nucleic Acids Research, 53 (2025), pp. D20–D29.