betaFeedback

WorksMathematics

Proximity and Remoteness in Trees with given Segment Sequence

Abstract

The average distance of a vertex vv of a connected graph GG is the arithmetic mean of the distances from vv to all other vertices of GG. The proximity π(G)π(G) and the remoteness ρ(G)ρ(G) of GG are the minimum and the maximum of the average distances of the vertices of GG, respectively. A segment SS of a tree is a path-subtree whose terminal vertices are either branching or pendant vertices, and all internal vertices have degree 22. The segment sequence (ℓS1,ℓS2,…,ℓSm)(\ell_{S_1}, \ell_{S_2},\ldots,\ell_{S_m}) of T is the non-increasing sequence of the lengths of all segments of T. In this paper, we characterise trees with a given segment sequence that minimise proximity and those that maximise remoteness. For trees that minimise remoteness, we establish sufficient conditions under which the tree is starlike and conjecture that a remoteness-minimising tree is always either starlike or a (Δ,2Δ,2)-tree. For trees that maximise proximity, we derive a collection of necessary conditions that any tree maximising proximity must satisfy.

Introduction

Let GG be a connected graph of order nn with vertex set V(G)V(G). The average distance σ‾(v,G)\overline{\sigma}(v,G) of a vertex vv of GG is defined as the arithmetic mean of the distances from vv to all other vertices of GG, that is,

σ‾(v,G)=1n−1∑u∈V(G)d(v,u),\overline{\sigma}(v,G)=\frac{1}{n-1}\sum_{u\in V(G)}d(v,u),

where d(v,u)d(v,u) denotes the usual shortest-path distance between vertices vv and $u. The proximity and the remoteness of GG, denoted by π(G)\pi(G) and ρ(G)\rho(G), are the smallest and largest, respectively, average distance among the vertices of GG.

The average distance of a vertex is closely related to its transmission (also called its total distance), defined by σ(v,G)=∑u∈V(G)d(v,u)\sigma(v,G)=\sum_{u\in V(G)}d(v,u). Clearly, σ(v,G)=(n−1)σ‾(v,G)\sigma(v,G)=(n-1)\overline{\sigma}(v,G). Thus, extremal questions concerning proximity and remoteness may equivalently be formulated in terms of minimum and maximum transmission.

Bounds on proximity and remoteness in terms of order alone were given by Zelinka [21] and later, independently, by Aouchiche and Hansen [3], who introduced the names proximity and remoteness. The following theorem describes the extremal values when only the order of the graph is prescribed.

Theorem 1.1 (Zelinka [21]; Aouchiche and Hansen [3]). Let GG be a connected graph of order n≥2n\ge2. Then

1≤π(G)≤{n+14,if n is odd,n+14+14(n−1),if n is even,1\leq\pi(G)\leq \begin{cases} \dfrac{n+1}{4}, & \text{if } n \text{ is odd},\\[6pt] \dfrac{n+1}{4}+\dfrac{1}{4(n-1)}, & \text{if } n \text{ is even}, \end{cases}

where the lower bound is attained if and only if GG has a vertex of degree n−1n-1, and the upper bound is attained if and only if GG is a path or a cycle. Moreover,

1≤ρ(G)≤n2,1\leq\rho(G)\leq\frac{n}{2},

E-mail address: [email protected], [email protected], [email protected], [email protected]. where the lower bound is attained if and only if GG is a complete graph, and the upper bound is attained if and only if GG is a path.

Theorem 1.1 provides the natural starting point for the study of proximity and remoteness under additional restrictions. Several results have considered restrictions involving minimum and maximum degree, diameter, the number of pendant vertices, the number of vertices of odd degree, the number of vertices of degree two, and prescribed degree sequences; see, for example, [10, 12, 18, 19, 15]. Proximity and remoteness have also been studied for various restricted graph classes, including trees, triangle-free graphs, C4C_4-free graphs, graphs of prescribed girth, and outerplanar graphs, and related graph classes; see [4, 6, 7, 8, 9, 11, 13]. Further references can be found in the survey [5].

In this paper we impose a different structural restriction by prescribing the segment sequence of a tree. A segment of a tree is a path-subtree whose end-vertices are either pendant or branch vertices and whose internal vertices have degree two. The segment sequence of a tree is the non-increasing sequence of the lengths of its segments. The use of segments in the study of trees has a long history in connection with the Wiener index; see the survey of Dobrynin, Entringer and Gutman [14]. In particular, they recorded the basic characterization that a sequence (t1,t2,…,tm)(t_1,t_2,\ldots,t_m) of positive integers is the segment sequence of an nn-vertex tree if and only if t1+t2+⋯+tm+1=nt_1+t_2+\cdots+t_m+1=n.

Extremal problems for trees with a prescribed segment sequence have subsequently been studied for several distance-based invariants. Lin and Song [17] characterized the trees that minimise the Wiener index for a given segment sequence, while Andriantiana, Wagner and Wang [2] characterized the corresponding maximum and showed that a maximising tree is a quasi-caterpillar. The same setting has also been considered for the Steiner Wiener index by Zhang, Wang and Zhang [20], where starlike trees and quasi-caterpillars arise as extremal structures. More recently, Allie and Wade [1] characterized the trees that minimise the eccentricity index for a given segment sequence, with the unique starlike tree attaining the minimum.

These results suggest a natural question for proximity and remoteness. Although the Wiener index and its variants aggregate distance information over sets of vertices, proximity and remoteness are determined by the vertices with minimum and maximum average distance, respectively. Thus, the arrangement of a prescribed collection of segments may affect these parameters in ways that are not captured by the corresponding aggregate distance measures.

The aim of this paper is to determine the extremal trees for proximity and remoteness when the segment sequence is prescribed. More precisely, for a given segment sequence, we characterise the trees that minimise proximity, and trees that maximise remoteness. We establish sufficient conditions and propose a conjecture for trees that minimise remoteness, and derive necessary conditions for trees that maximise proximity. The results show that the arrangement of the prescribed segments around the branch vertices is central to the extremal behaviour of these parameters. In particular, some of the structures familiar from related extremal problems reappear, while the structures that minimise or maximise proximity and remoteness need not coincide.

The remainder of the paper is organised as follows. Section 2 introduces the terminology, notation, and preliminary observations used throughout the paper. Section 3 is devoted to trees with minimum proximity, while Section 4 considers trees with minimum remoteness. Trees with maximum remoteness are treated in Section 5, and trees with maximum proximity are treated in Section 6. We conclude in Section 7 with a summary of our results and some open questions.

Preliminaries

We use the following notation. Let G=(V,E)G=(V,E) be a finite connected graph. The order of GG is ∣V∣|V|, and will usually be denoted by nn. Denote by nk(G)n_k(G) the number of degree kk vertices in GG. A subset XX of VV is dominating if every vertex of V−XV-X has a neighbour in XX.

The proximity π(G)\pi(G) is the minimum average distance of a vertex of GG, and the remoteness ρ(G)\rho(G) is the maximum average distance. A vertex vv is a median vertex if it has minimum average distance (σ‾(v)=π(G)\overline{\sigma}(v)=\pi(G)), and is an extreme vertex, also called an outpost, if it has maximum average distance (σ‾(v)=ρ(G)\overline{\sigma}(v)=\rho(G)).

A subdivision of GG is a graph formed from GG by replacing some of its edges by paths. Two graphs GG and HH are homeomorphic if they have a common subdivision.

A pendant vertex, or leaf, is a vertex of degree 11, and a branch vertex is a vertex of degree at least 33. A bud vertex, or simply a bud, is a branch vertex incident with a pendant segment.

A segment of a tree is a maximal path whose internal vertices have degree two and whose endpoints are pendant vertices or branch vertices. The length ℓi\ell_i of a segment is the number of edges in the segment. A segment is pendant, or a leaf segment, if one of its end-vertices is a leaf; otherwise, it is a non-pendant segment. The vertices at the ends of a segment are called its end-vertices. Thus, an end-vertex is either a leaf or a branch vertex.

Suppose now that T=(V,E)T=(V,E) is a tree, and that D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) is a non-increasing sequence of positive integers. We say that TT is a DD-tree if its segment sequence is DD. We use SiS_i as the label of the segment which corresponds to length ℓi\ell_i.

The tree TT is a star if it has a single dominating vertex, and is a caterpillar if it has a dominating path. If TT has hh branch vertices and maximum degree Δ\Delta, then we call it a (Δ,h)(\Delta,h)-tree. A tree is starlike if it is a (Δ,1)(\Delta,1)-tree. If, in addition, TT is a DD-tree, we call it a (Δ,h)(\Delta,h)-DD-tree.

Remark. For a given segment sequence D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k), the (k,1)(k,1)-DD-tree is unique.

A branch of TT at a vertex vv is an induced subgraph of the form T[C∪{v}]T[C\cup\{v\}], where CC is a component of T−{v}T-\{v\}. A branch is trivial if it consists of a single segment of TT. The branchweight of a vertex vv of TT, denoted by bw⁡(v)\operatorname{bw}(v), is the maximum size of a branch of TT at vv.

The centroid C(T)C(T) of a tree TT is the set of vertices vv that minimize the branchweight bw⁡(v)\operatorname{bw}(v). The following theorem of Jordan [16] describes the structure of the centroid.

Theorem 2.1 (Jordan [16]). Let TT be a tree of order nn. Then one of the following holds:

(i) C(T)={c}C(T)=\{c\} and bw⁡(c)≤(n−1)/2\operatorname{bw}(c)\le(n-1)/2;

(ii) C(T)={c1,c2}C(T)=\{c_1,c_2\} and bw⁡(c1)=bw⁡(c2)=n/2\operatorname{bw}(c_1)=\operatorname{bw}(c_2)=n/2.

Moreover, if v∈V(T)∖C(T)v\in V(T)\setminus C(T), then bw⁡(v)>n/2\operatorname{bw}(v)>n/2.

Zelinka [21] characterized the median vertices of a tree in terms of its centroid.

Theorem 2.2 (Zelinka [21]). The set of median vertices of a tree TT is its centroid C(T)C(T).

Combining these two results gives the following corollary, which is recorded by Barefoot, Entringer, and Székely [6].

Corollary 2.3. Let TT be a tree of order nn. If vv is a median vertex of TT, then

bw⁡(v)≤n2.\operatorname{bw}(v)\le\frac{n}{2}.

The following classical theorem of Zelinka characterises median vertices in terms of branchweight.

Theorem 2.4 (Zelinka [21]). Let TT be a tree. A vertex vv is a median vertex of TT if and only if

bw⁡(v)=min⁡u∈V(T)bw⁡(u).\operatorname{bw}(v)=\min_{u\in V(T)}\operatorname{bw}(u).

We next record some elementary observations concerning distances in trees. Suppose uu and vv are adjacent vertices of some tree, and let TuuvT_u^{uv} and TvuvT_v^{uv} denote the components of T−uvT-uv containing uu and vv, respectively. Then for any vertex ww in TvuvT_v^{uv}, we have d(u,w)=d(v,w)+1d(u,w)=d(v,w)+1, and vice-versa.

Observation 2.5. Let u,vu,v be adjacent vertices in a tree TT. Then σ(u)=σ(v)−∣Tuuv∣+∣Tvuv∣\sigma(u)=\sigma(v)-|T_u^{uv}|+|T_v^{uv}|.

Observation 2.6. Let TT be a tree, and let u,vu,v be adjacent vertices of TT. If ∣Tuuv∣<∣Tvuv∣|T_u^{uv}|<|T_v^{uv}|, then σ‾(v)<σ‾(u)\overline{\sigma}(v)<\overline{\sigma}(u).

We also note that every outpost of a tree is a leaf. Indeed, suppose that uu is an outpost that is not a leaf. Since uu has at least two neighbours, the components of T−uT-u have orders summing to n−1n-1, and hence one of them, say TvT_v, has order at most (n−1)/2(n-1)/2, where vv is the neighbour of uu in that component. Consequently,

∣Tvuv∣≤n−12<n−n−12≤∣Tuuv∣.|T_v^{uv}|\le\frac{n-1}{2}<n-\frac{n-1}{2}\le|T_u^{uv}|.

By Observation 2.6, with uu and vv interchanged, we obtain

σ‾(u)<σ‾(v),\overline{\sigma}(u)<\overline{\sigma}(v),

contradicting the assumption that uu is an outpost. Thus we have:

Observation 2.7. Every outpost of a tree is a leaf.

We remove a non-pendant segment by removing all its internal vertices and edges while retaining its end-vertices. We remove a pendant segment by removing all its vertices and edges except the end-vertex that is not a leaf. Suppose that SiS_i is a non-pendant segment with end-vertices uiu_i and viv_i. After removing SiS_i, let TuiSiT^{S_i}_{u_i} and TviSiT^{S_i}_{v_i} denote the components containing uiu_i and viv_i, respectively. The superscript distinguishes these components from those obtained by deleting an edge. We also define the following operation on a tree which will be useful.

Definition 2.8. Let SiS_i be a non-pendant segment of a tree TT. Let uu and vv be the end vertices of SiS_i. The starring operation on SiS_i is as follows: SiS_i is removed, uu and vv are identified to ww, a pendant segment which has the same length as SiS_i is added adjacent to ww and preserves the label SiS_i.

It is clear that the starring operation preserves the segment sequence of the tree. If the context is clear, the starring operation may also be applied in reverse to restore the original tree.

Trees with minimum proximity

In this section we determine the structure of the tree that minimises proximity among trees of a given segment sequence. We show that the unique tree attaining this minimum is the starlike tree in which the prescribed segments are all incident with a single branch vertex. We first show that a tree with minimum proximity must have maximum degree equal to the number of segments, and hence must be starlike. Since the starlike tree with a given segment sequence is unique, this identifies the unique tree attaining the minimum proximity.

Lemma 3.1. Let D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) be a non-increasing sequence of positive integers, where k≥3k\ge3. If TT is a DD-tree with minimum proximity, then Δ(T)=k\Delta(T)=k.

Proof. Let TT be a DD-tree with minimum proximity. Let B(T)B(T) denote the set of branch vertices of TT, since k=1+∑b∈B(T)(deg⁡(b)−1)k=1+\sum_{b\in B(T)}(\deg(b)-1), we have Δ(T)≤k\Delta(T)\le k. Hence, it suffices to show that Δ(T)\Delta(T) cannot be less than kk. Suppose, to the contrary, that Δ(T)≤k−1\Delta(T)\le k-1. Then TT has at least two branch vertices, and hence it contains a non-pendant segment. Let SjS_j be such a segment, with end-vertices uu and ww, and let ℓj\ell_j be its length. Let vv be a vertex of TT such that σˉ(v,T)=π(T)\bar{\sigma}(v,T)=\pi(T). We may assume without loss of generality that dT(v,u)≤dT(v,w)d_T(v,u)\le d_T(v,w). Let X=TuSjX=T^{S_j}_u and Y=TwSjY=T^{S_j}_w denote the two parts of TT determined by SjS_j (see Figure 1).

The tree T

Figure 1. The tree T

Since ww is a branch vertex and SjS_j is non-pendant, we have that YY is non-trivial. Construct a tree T′T' from TT by moving all the edges incident with ww that do not belong to SjS_j from ww to uu. Equivalently, for every vertex z∈NT(w)∖V(Sj)z\in N_T(w)\setminus V(S_j), delete the edge wzwz and add the edge uzuz (see Figure 2). This is precisely the starring operation described above.

The tree $T'$

Figure 2. The tree T′T'

Consequently, T′T' has the same segment sequence as TT, and hence T′T' is a D-tree. For every x∈Xx \in X and every y∈Y∖{w}y \in Y \setminus\{w\}, the operation decreases the distance from xx to yy by ℓj\ell_j. Thus

σ(x,T′)=σ(x,T)−(∣Y∣−1)ℓj.\sigma(x,T') = \sigma(x,T) - (|Y|-1)\ell_j.

If v∈Xv \in X, it follows that σ(v,T′)<σ(v,T)\sigma(v,T') < \sigma(v,T), and therefore π(T′)<π(T)\pi(T') < \pi(T), a contradiction.

It remains to consider the case v∈V(Sj)∖{u,w}v \in V(S_j) \setminus\{u,w\}. For every y∈Y∖{w}y \in Y \setminus\{w\}, dT(v,y)=dT(v,w)+dT(w,y)d_T(v,y) = d_T(v,w) + d_T(w,y), whereas dT′(v,y)=dT(v,u)+dT(w,y)d_{T'}(v,y) = d_T(v,u) + d_T(w,y). Hence

σT′(v)=σT(v)−(∣Y∣−1)(dT(v,w)−dT(v,u)).\sigma_{T'}(v) = \sigma_T(v) - (|Y|-1)\bigl(d_T(v,w)-d_T(v,u)\bigr).

By the choice of uu, dT(v,u)≤dT(v,w)d_T(v,u) \le d_T(v,w), so σT′(v)≤σT(v)\sigma_{T'}(v) \le\sigma_T(v). If the inequality is strict, then again π(T′)<π(T)\pi(T') < \pi(T), a contradiction. We may therefore assume that dT(v,u)=dT(v,w)d_T(v,u) = d_T(v,w). Thus vv is the midpoint of SjS_j, and in particular ℓj\ell_j is even. Let ss be the neighbour of vv on the uu-side of SjS_j. Then dT(s,w)−dT(s,u)=2d_T(s,w)-d_T(s,u)=2. Consequently, the starring operation gives

σ(s,T′)=σ(s,T)−2(∣Y∣−1).\sigma(s,T') = \sigma(s,T) - 2(|Y|-1).

Let r=dT(u,v)=ℓj2r=d_T(u,v)=\frac{\ell_j}{2}. TsvT_s^v, the component of T−svT-sv containing ss has order ∣X∣+r−1|X|+r-1. Since vv is a median vertex of TT, Corollary 2.3 gives bw(v)≤n2bw(v) \le\frac{n}{2}. Hence, ∣X∣+r−1≤n2|X|+r-1 \le\frac{n}{2}. Since

n=∣X∣+∣Y∣+ℓj−1=∣X∣+∣Y∣+2r−1,n=|X|+|Y|+\ell_j-1=|X|+|Y|+2r-1,

we obtain ∣X∣≤∣Y∣+1|X| \le|Y|+1. On the other hand, by Observation 2.5,

σ(s,T)−σ(v,T)=n−2(∣X∣+r−1)=∣Y∣−∣X∣+1.\sigma(s,T)-\sigma(v,T)=n-2(|X|+r-1)=|Y|-|X|+1.

Since ∣X∣≥2|X| \ge2, we have σ(s,T)−σ(v,T)≤∣Y∣−1<2(∣Y∣−1)\sigma(s,T)-\sigma(v,T) \le|Y|-1 < 2(|Y|-1). Therefore,

σ(s,T′)=σ(s,T)−2(∣Y∣−1)<σ(v,T).\begin{aligned} \sigma(s,T') &= \sigma(s,T)-2(|Y|-1)\\ &< \sigma(v,T). \end{aligned}

Since σ(v,T′)=σ(v,T)\sigma(v,T')=\sigma(v,T) in the present case, we have σ(s,T′)<σ(v,T′)=σ(v,T)\sigma(s,T') < \sigma(v,T')=\sigma(v,T). Thus

π(T′)≤σ(s,T′)n−1<σ(v,T)n−1=π(T),\pi(T') \le\frac{\sigma(s,T')}{n-1} < \frac{\sigma(v,T)}{n-1}=\pi(T),

again a contradiction. Hence Δ(T)=k\Delta(T)=k. □\square

Thus, any D-tree with minimum proximity must be starlike. Since the starlike D-tree is unique, this yields the following theorem.

Theorem 3.2. Let D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) be a segment sequence, where k≥3k \ge3. Among all D-trees, the unique starlike D-tree has minimum proximity.

Proof. There are finitely many D-trees, and hence there exists a D-tree T having minimum proximity amongst all D-trees. By Lemma 3.1, we have Δ(T)=k\Delta(T)=k. Thus, T is starlike. Since the starlike D-tree is unique, T must be the unique starlike D-tree. Therefore, the unique starlike D-tree has minimum proximity amongst all D-trees.

Trees with minimum remoteness

We have shown that for a segment sequence D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k), the unique (k,1)(k,1)-D-tree minimises proximity. The case to minimise remoteness turns out differently. In some cases, the unique (k,1)(k,1)-tree minimises remoteness, but we have also found examples where the remoteness minimising tree is a (Δ,2)(\Delta,2)-tree. For a segment sequence D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k), we prove a sufficient condition on DD for the remoteness minimising D-tree to be a (k,1)(k,1)-D-tree, and consequently as well for the remoteness minimising D-tree to be a (Δ,2)(\Delta,2)-D-tree. We conjecture that the remoteness minimising D-tree is always a (k,1)(k,1)-D-tree or a (Δ,2)(\Delta,2)-D-tree. First, a useful lemma.

Lemma 4.1. Let D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) be a segment sequence and let T be a D-tree. Let SiS_i be a leaf segment and SjS_j be a non-leaf segment adjacent to SiS_i such that ℓi≥ℓj\ell_i\ge\ell_j. Let T′T' be the D-tree formed by performing the starring operation on SjS_j. Then ρ(T′)<ρ(T)\rho(T')<\rho(T).

Proof. Let T and T′T' be as described in the statement of the Lemma. Let uju_j and vjv_j be the end-vertices of segment SjS_j in T, and also the leaf and non-leaf end-vertices of the leaf segment SjS_j in T′T', respectively. Let X and Y be the subtrees remaining after removal of segment SjS_j from T. Let uiu_i be the leaf vertex on segment SiS_i in T and T′T'. Then σ(ui,T′)≥σ(uj,T′)\sigma(u_i,T')\ge\sigma(u_j,T') since ℓi≥ℓj\ell_i\ge\ell_j. We note the following:

  1. It is impossible for uju_j to be a unique outpost of T′T'. Moreover, if uju_j is an outpost of T′T' then ℓi=ℓj\ell_i=\ell_j, in which case, uiu_i is also an outpost of T′T'.

  2. For any vertex x∈V(X)∪V(Y)x\in V(X)\cup V(Y), we have σ(x,T′)<σ(x,T)\sigma(x,T')<\sigma(x,T).

Case 1.1: uiu_i is an outpost in T and T′T'. Then by (2) we have

ρ(T′)=σ(ui,T′)<σ(ui,T)=ρ(T).\rho(T')=\sigma(u_i,T')<\sigma(u_i,T)=\rho(T).

Case 1.2: uiu_i is an outpost in T and not in T′T'. Let w′w' be an outpost in T′T'. By (1), w′≠ujw'\ne u_j and obviously also w′∉Sjw'\notin S_j. Therefore, by (2) we have

ρ(T′)=σ(w′,T′)<σ(w′,T)≤σ(ui,T)=ρ(T).\rho(T')=\sigma(w',T')<\sigma(w',T)\le\sigma(u_i,T)=\rho(T).

Case 2: uiu_i is not an outpost in T. Let ww be an outpost in T. ww is a leaf and therefore w∉Sjw\notin S_j. Let w′w' be an outpost in T′T'. Then

ρ(T′)=σ(w′,T′)<σ(w′,T)≤σ(w,T)=ρ(T).\rho(T')=\sigma(w',T')<\sigma(w',T)\le\sigma(w,T)=\rho(T).

If D=(1,1,1,1,1)D=(1,1,1,1,1), it is easy to determine that the remoteness minimising D-tree is the unique starlike tree. Let us instead consider the segment sequence D=(10,1,1,1,1)D=(10,1,1,1,1). We attempt to find the D-tree with the minimum remoteness. By Lemma 4.1, no segment of length 1 can be a non-leaf segment, since it will necessarily be adjacent to some other segment which is at least the same size. Therefore, the only D-trees we need to consider is the (5,1)(5,1)-D-tree, T1T_1, and the (3,2)(3,2)-D-tree with the non-leaf segment of length 10, T2T_2. It turns out that ρ(T2)=79<ρ(T1)=85\rho(T_2)=79<\rho(T_1)=85.

Given the above example, intuitively it seems that if segment lengths are sufficiently close ratio-wise, then the remoteness minimising tree is the unique starlike tree. While the existence of one segment sufficiently longer (ratio-wise) than any other segment would result in the starlike tree not being the one which minimises remoteness. This is due to the outpost changing from being a leaf vertex on the longest segment (being a large distance to all other leaf segments) to a leaf on one of the shorter segments (now not being a large distance to all leaf segments). In the following theorem we determine sufficient conditions on how much longer the long segment needs to be in order for the remoteness minimising tree to have two branching vertices.

Theorem 4.2. Let D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) be a segment sequence with ℓ1=bℓ\ell_1=b\ell and ℓ2=ℓ3=⋯=ℓk=ℓ\ell_2=\ell_3=\cdots=\ell_k=\ell and let a=k−1a=k-1. If aa is even and ab2>a+b−1\frac{ab}{2}>a+b-1, or aa is odd and ab2>2a+3b2−1\frac{ab}{2}>\frac{2a+3b}{2}-1, then the D-tree with minimum remoteness is a (k,2)(k,2)-D-tree.

Proof. By Lemma 4.1, it is clear that the remoteness minimising D-tree is either starlike or a (Δ,2)(\Delta,2)-D-tree, since all segments of length ℓ\ell would necessarily have to be leaf segments.

Let TT be the unique (k,1)(k,1)-D-tree. Let vv be the leaf vertex on the segment of length bℓb\ell. It is clear that vv is the unique outpost in TT. Of all (Δ,2)(\Delta,2)-D-trees, let T′T' be the one which minimises remoteness. Obviously, segment bℓb\ell would be the non-leaf segment. Furthermore, the number of leaf segments on one end of the segment of length bℓb\ell would be ⌊a2⌋\left\lfloor\frac{a}{2}\right\rfloor and the number of leaf segments on the other end would be ⌈a2⌉\left\lceil\frac{a}{2}\right\rceil. The outposts would be all the leaves on the former. Let one such outpost be vv. See Figure 3 and Figure 4.

Figure 3. The unique starlike D-tree, T.

Figure 4. The remoteness minimising (Δ,2)(\Delta,2)-D-tree, T′T'.

Summing the distances from vv to each other vertex then simplifying, we have the following:

σ(v,T)=bℓ(bℓ+1)2+aℓ(ℓ+1)2+abℓ2\sigma(v,T)=\frac{b\ell(b\ell+1)}{2}+\frac{a\ell(\ell+1)}{2}+ab\ell^{2}
σ(v,T′)=⌊a2⌋ℓ(ℓ+1)2+(⌊a2⌋−1)ℓ2+bℓ(bℓ+1)2+bℓ2+⌈a2⌉ℓ(ℓ+1)2+⌈a2⌉(b+1)ℓ2\begin{aligned} \sigma(v,T')={}&\left\lfloor\frac{a}{2}\right\rfloor\frac{\ell(\ell+1)}{2}+\left(\left\lfloor\frac{a}{2}\right\rfloor-1\right)\ell^{2}+\frac{b\ell(b\ell+1)}{2}+b\ell^{2}\\ &+\left\lceil\frac{a}{2}\right\rceil\frac{\ell(\ell+1)}{2}+\left\lceil\frac{a}{2}\right\rceil(b+1)\ell^{2} \end{aligned}

If aa is even, then the inequality σ(v,T)>σ(v,T′)\sigma(v,T)>\sigma(v,T') simplifies to ab2>a+b−1\frac{ab}{2}>a+b-1. If aa is odd, then the inequality σ(v,T)>σ(v,T′)\sigma(v,T)>\sigma(v,T') simplifies to ab2>2a+3b2−1\frac{ab}{2}>\frac{2a+3b}{2}-1.

Corollary 4.3. Let D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) be a segment sequence with ℓ1=bℓ\ell_1=b\ell and ℓ2=ℓ3=⋯=ℓk=ℓ\ell_2=\ell_3=\cdots=\ell_k=\ell and let a=k−1a=k-1. If aa is even and ab2≤a+b−1\frac{ab}{2}\leq a+b-1, or aa is odd and ab2≤2a+3b2−1\frac{ab}{2}\leq\frac{2a+3b}{2}-1, then the D-tree with minimum remoteness is starlike.

Given that having one segment sufficiently longer than the rest ratio-wise results in a remoteness minimising tree having two branching vertices, it is natural to consider the case where the longest segment is significantly longer than the second longest, which is then significantly longer than the rest. The idea being that should a segment sequence exist with a (Δ,3)(\Delta,3)-tree being remoteness minimising, then it would likely have this form. With the aide of a computer we considered the following form of a segment sequence: D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k) where ℓ3=ℓ4=⋯=ℓk=ℓ\ell_3=\ell_4=\cdots=\ell_k=\ell, ℓ2=cℓ\ell_2=c\ell and ℓ1=bℓ\ell_1=b\ell, with c<bc<b. By testing various values of ℓ\ell, bb, cc, with bb being much greater than cc and $c being much greater than ℓ\ell, we were not able to find such a segment sequence with a (Δ,3)(\Delta,3)-tree being remoteness minimising. Therefore, we conjecture the following.

Conjecture 4.4. Let D=(ℓ1,ℓ2,…,ℓk)\mathrm{D}=(\ell_1,\ell_2,\ldots,\ell_k) be a segment sequence. Then the D-tree with minimum remoteness is starlike or a (Δ,2)(\Delta,2)-D-tree.

Trees with maximum remoteness

In this section, we characterise the trees with fixed segment sequence that maximise remoteness. Let D=(ℓ1,ℓ2,…,ℓk)\mathrm{D}=(\ell_1,\ell_2,\ldots,\ell_k) be a segment sequence. For kk odd, we construct the subdivided caterpillar Ro(D)\mathrm{R}_{\mathrm{o}}(\mathrm{D}) as follows. Begin with a caterpillar having kk edges, no degree 2 vertices and maximum degree 3. Label the vertices of the dominating path PP by P=u0,u1,…,uk+12P=u_0,u_1,\ldots,u_{\frac{k+1}{2}}. Then label the leaf adjacent to u1u_1 as uku_k, the leaf adjacent to u2u_2 as uk−1u_{k-1} and so on. To obtain Ro(D)\mathrm{R}_{\mathrm{o}}(\mathrm{D}) from this caterpillar, replace the each edge uiuju_i u_j, i<ji<j, by a path of length ℓj\ell_j.

For kk even, we construct the caterpillar Re(D)\mathrm{R}_{\mathrm{e}}(\mathrm{D}). The construction is the same as that of Ro(D)\mathrm{R}_{\mathrm{o}}(\mathrm{D}), except that vertex uk2−1u_{\frac{k}{2}-1} (second last vertex on the dominating path) has degree 4: it is adjacent to uk2−2u_{\frac{k}{2}-2}, uk2u_{\frac{k}{2}}, uk2+1u_{\frac{k}{2}+1} and uk2+2u_{\frac{k}{2}+2}.

The tree R_o(4, 3, 3, 2, 2, 1, 1)

Figure 5. The tree Ro(4,3,3,2,2,1,1)\mathrm{R}_{\mathrm{o}}(4,3,3,2,2,1,1) maximises remoteness among all trees with segment sequence (4,3,3,2,2,1,1)(4,3,3,2,2,1,1).

The tree R_e(5, 4, 3, 2, 2, 1)

Figure 6. The tree Re(5,3,3,2,2,1)\mathrm{R}_{\mathrm{e}}(5,3,3,2,2,1) maximises remoteness among all trees with segment sequence (5,3,3,2,2,1)(5,3,3,2,2,1).

Lemma 5.1. Let D be a non-increasing sequence of kk positive integers. Then any D-tree T maximising ρ(T)\rho(T) is a subdivided caterpillar with the following properties:

  • If kk is odd, then Δ(T)=3\Delta(T)=3,

  • If kk is even, then Δ(T)=4\Delta(T)=4, and the unique vertex of degree 4 is incident with three pendant segments,

  • For each outpost of T, there is a path containing both the outpost and every branch vertex.

Proof. Let T be a D-tree maximising ρ(T)\rho(T).

Claim 1: Δ(T)≤4\Delta(T) \leq4.

Proof of Claim 1: Let ww be an outpost, P:w,…,xP:w,\ldots,x a longest path starting at ww, and assume to the contrary that there exists a vertex vv that has degree at least 5. Pull two subtrees off vv, attach them to the end of the path xx, thus creating a new tree T′T' with the same segment sequence such that σ‾(w,T′)>σ‾(w,T)\overline{\sigma}(w,T')>\overline{\sigma}(w,T) (and thus ρ(T′)>ρ(T)\rho(T')>\rho(T)).

Claim 2: TT is a subdivided caterpillar. Further, for each outpost, there is a path in the caterpillar that contains the outpost and every branch vertex.

Proof of Claim 2: Let ww be an outpost, and P:w,…,xP:w,\ldots,x a longest path starting at ww. Assume to the contrary that PP does not contain each branch vertex. Consider the forest T−E(P)T-E(P) formed by removing every edge of PP. This forest contains some component YY with a branch vertex. There is a segment SS of YY incident with PP. Let Y′Y' be the subgraph of YY induced by the edges E(Y)−E(S)E(Y)-E(S) (i.e., Y′Y' consists of all segments of YY, except for SS). Moving the sub-tree Y′Y' onto xx yields a tree T′T' such that σ‾(w,T′)>σ‾(w,T)\overline{\sigma}(w,T')>\overline{\sigma}(w,T).

Claim 3: TT has at most one vertex of degree 4.

Proof of Claim 3: Suppose to the contrary that TT has two vertices of degree 4, uu and vv. Again let ww be an outpost of TT, and P=w,…,xP=w,\ldots,x be a longest path starting at ww. Let SuS_u be a segment that is incident with uu, but not in PP; and SvS_v a segment incident with vv but not in PP. Moving both SuS_u and SvS_v onto xx yields a new tree T′T' such that σ‾(w,T′)>σ‾(w,T)\overline{\sigma}(w,T')>\overline{\sigma}(w,T).

Claim 4: If TT has a vertex of degree 4, then that vertex is incident with 3 pendant segments.

Proof of Claim 4: Assume the claim is false, and let ww, PP, xx all be defined as they are in Claim 3. Let uu be the vertex of degree 4, and let vv be the branch vertex of PP that is furthest from ww (so vv is incident with two pendant segments, one of which contains xx). By the previous claim, uu must lie on PP. Create a new D-tree TT by moving a segment of T−PT-P away from uu, and make it incident with vv instead. Since d(w,u)<d(w,v)d(w,u)<d(w,v), we have σ‾(w,T′)>σ‾(w,T)\overline{\sigma}(w,T')>\overline{\sigma}(w,T), completing the proof. □

Theorem 5.2. For a given segment sequence DD, let R(D)R(D) be Ro(D)R_o(D) if DD has an odd number of entries and Re(D)R_e(D) if DD has an even number of entries. Then R(D)R(D) is the unique (up to isomorphism) D-tree maximising remoteness.

Proof. Let D=(ℓ1,ℓ2,…,ℓk)D=(\ell_1,\ell_2,\ldots,\ell_k), k≥3k\geq3 be a segment sequence. Assume to the contrary that TT is a D-tree with ρ(T)≥ρ(R(D))\rho(T)\geq\rho(R(D)). Among all such D-trees, choose TT so that ρ(T)\rho(T) attains the maximum possible value. Let ww be an outpost of TT. Per Lemma 5.1, we may assume that TT is a subdivided caterpillar. Further, there is a maximal path P:w,…,xP:w,\ldots,x of TT containing every branch vertex. Let b1,b2,…,bjb_1,b_2,\ldots,b_j be the sequence of these branch vertices, ordered as they are in PP. Let S1S_1 be the segment starting at ww and ending at b1b_1, and let SiS_i be the segment between bi−1b_{i-1} and bib_i when 1<i≤j1<i\leq j. Further, let SkS_k be the so-far-unlabeled pendant segment incident with b1b_1, Sk−1S_{k-1} the pendant segment incident with b2b_2, and so on.

Claim 1: Segment SiS_i has length ℓi\ell_i for 1≤i≤j1\leq i\leq j.

Assume otherwise for the sake of contradiction, and let qq be the smallest integer such that ℓ(Sq)≠ℓq\ell(S_q)\ne\ell_q. There is a segment S′S' of length ℓq\ell_q somewhere in TT. By the minimality of qq, at least one such segment S′S' does not appear on the part of path PP from ww to the end of SqS_q (i.e., S′S' is either a pendant segment other than S1S_1, or is a segment StS_t for some t>qt>q). Note that ℓ(S′)=ℓq>ℓ(Sq)\ell(S')=\ell_q>\ell(S_q). Create a new tree T′T' by swapping SqS_q and S′S'. It is clear that σ‾(w,T′)>σ‾(w,T)\overline{\sigma}(w,T')>\overline{\sigma}(w,T), contradicting the maximality of ρ(T)\rho(T).

Claim 2: The segment SiS_i has length ℓi\ell_i for all j<i≤kj<i\leq k (up to relabelling of the pendant segments incident with bjb_j).

Assume otherwise for the sake of contradiction, and let qq be the largest integer such that ℓ(Sq)≠ℓq\ell(S_q)\ne\ell_q. Some segment StS_t has length ℓq\ell_q. Per Claim 1, j<t<qj<t<q (so StS_t is a pendant segment). By maximality we have that ℓ(Sq)>ℓq\ell(S_q)>\ell_q. Thus we create a new D-tree T′T' by swapping the segments SqS_q and StS_t, which yields σ‾(w,T′)>σ‾(w,T)\overline{\sigma}(w,T')>\overline{\sigma}(w,T). □

Trees with maximum proximity

Let DD be a sequence of non-increasing positive integers. We say that a D-tree TT maximizes proximity (or is π\pi-maximising) if π(T)≥π(T′)\pi(T)\geq\pi(T') for all D-trees T′T'. In this section, we give a detailed set of necessary conditions that a π\pi-maximising D-tree satisfies.

Theorem 6.1. Let DD be a segment sequence of length ∣D∣≥5|D| \ge5, let TT be a π\pi-maximizing DD-tree and suppose ww is a median vertex. Then TT is a subdivided caterpillar with Δ(T)∈{3,4}\Delta(T) \in\{3,4\}, and ww lies in a longest segment (possibly as an end-vertex). There are (at most) two non-trivial branches at ww, and each branch BB satisfies all the following:

  • BB either has no degree 4 vertices, or it has one degree 4 vertex. In the second case, this vertex is the branch vertex of BB that is furthest from ww.

  • Any leaf segment of TT in BB has length less than or equal to any non-leaf segment of TT in BB.

  • If X,YX,Y are leaf segments such that ∣X∣>∣Y∣|X| > |Y|, then d(w,X)≥d(w,Y)\mathrm{d}(w,X) \ge\mathrm{d}(w,Y).

  • If X,YX,Y are non-leaf segments such that ∣X∣>∣Y∣|X| > |Y|, then d(w,X)<d(w,Y)\mathrm{d}(w,X) < \mathrm{d}(w,Y).

Theorem 6.1 follows immediately from the lemmas that make up the rest of this section. Theorem 6.1 provides a detailed, but still incomplete description of any tree that maximizes proximity with given segment sequence DD. The incompleteness arises from the following challenges: the exact arrangement of segments that maximizes proximity is very sensitive to small changes in DD, and is not even unique! For example, Figure 7 shows four non-isomorphic trees have segment sequence 25, 11, 10, 4, 1, 1, 1, 1, 1, 1, 1 and maximise proximity.

Four trees with segment labels and lengths

Figure 7. All four of the above trees T1T_1, T2T_2, T3T_3, T4T_4 are π\pi-maximising trees for the segment sequence (25, 11, 10, 4, 1, 1, 1, 1, 1, 1, 1). Each has two median vertices in the segment of length 25, and each has proximity 80357≈14.1\frac{803}{57} \approx14.1. Segments are labelled by length—the length 1 segments are unlabelled.

Lemma 6.2. If TT is a DD-tree maximising proximity, then Δ(T)≤4\Delta(T) \le4.

Proof. Assume to the contrary that TT is a π\pi-maximising DD-tree, and that TT has a vertex vv of degree at least 5. Let nn be the order of TT. Let ww be a median vertex of TT, and B1,B2,…,BmB_1,B_2,\ldots,B_m be the branches at ww. There are multiple cases to consider.

Case 1: The vertex vv is not ww.

In this case, vv is in a branch BiB_i. Assume without loss of generality that v∈B1v \in B_1, and let P:w,…,xP:w,\ldots,x be a longest path of TT that starts at ww, and ends at a leaf xx of B1B_1. The vertex vv has at least 5 branches, C1,C2,…,CkC_1,C_2,\ldots,C_k with k≥5k \ge5. Let CkC_k be the branch containing ww, and note that Ci≤B1C_i \le B_1 for all i<ki < k. The path PP intersects at most two branches at a vertex other than vv: CkC_k, and possibly one other branch. Thus, we may assume without loss of generality that (P∩C1)−{v}=∅(P \cap C_1) - \{v\} = \varnothing and (P∩C2)−{v}=∅(P \cap C_2) - \{v\} = \varnothing. Create a new DD-tree T′T' by pulling C1C_1 and C2C_2 off of vv, and attaching them to the leaf xx. Note that the vertex xx must still be a median vertex of T′T' since the branch-weights of ww in T′T' are the same as the branch-weights of ww in TT. Further, we have that σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T), as all the vertices of C1−vC_1-v and C2−vC_2-v are further from ww in T′T' than they are from ww in TT. Thus π(T′)>π(T)\pi(T') > \pi(T), contradicting the maximality of TT.

Case 2: v=wv=w, and at least one branch BiB_i is trivial.

Without loss of generality, suppose that B1=SB_1 = S is trivial branch (i.e., consists of a single segment). We create a new tree D-tree T′T'. Consider the disjoint union of all the branches B1⊔B2⊔⋯⊔BkB_1 \sqcup B_2 \sqcup\cdots\sqcup B_k. One leaf of B1B_1 is a copy of vv, and the other is a vertex uu. Identify the copies of the root vv belonging to B1B_1, B2B_2 and B3B_3, and identify uu with the copies of vv belonging to B4B_4, B5B_5, …\ldots, BkB_k. Note that this process used to create T′T' from TT is the reverse of the operation from Lemma 4.1. Thus, by the same argument as in the proof of Lemma 4.1, π(T)<π(T′)\pi(T) < \pi(T').

Case 3: v=wv = w, and no branch BiB_i is trivial.

Suppose without loss of generality that ∣B1∣≤∣B2∣≤⋯≤∣Bk∣|B_1| \leq|B_2| \leq\cdots\leq|B_k|. Since no branch is trivial, the branch B2B_2 has at least one branch vertex uu. Create a new D-tree T′T' from TT by removing the branch B1B_1 from vv, and attaching B1B_1 to uu (thus we are ‘merging’ branches B1B_1 and B2B_2 into a single larger branch). Since v=wv = w is a median vertex of TT, we have ∣Bi∣<n2|B_i| < \frac{n}{2} for all ii. Since there are at least 5 branches, we have ∣B1∣+∣B2∣<n2|B_1| + |B_2| < \frac{n}{2}. Thus each branch of v=wv = w in T′T' has weight less than n2\frac{n}{2}, so ww is a median vertex of T′T'. We obtained T′T' from TT by moving all the vertices of B1B_1 further away from ww, so σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T), contradicting the maximality of TT. □

Lemma 6.3. Let TT be a π\pi-maximising D-tree, and suppose ww is a median vertex of TT. Let BB be any branch of TT at ww. Then the following hold:

  • There is a path in BB, starting at ww, that intersects every segment of BB,

  • BB has at most 1 vertex of degree 4, and it is further from ww than any other branch vertex of BB,

  • If d(w)>2d(w) > 2, then the longest segment in BB is incident with ww.

Proof. Let TT and ww be as they are in the statement of the lemma, and suppose that BB is a branch of TT at ww.

Claim 1: There is a path in BB, containing ww, that intersects every segment of BB.

Assume to the contrary that the claim is false. Let P=w,…,xP = w, \ldots, x be a maximum length path of TT that starts at ww, and ends at a branch vertex x∈Bx \in B. Since the claim is false, the subgraph induced by E(B)−E(P)E(B) - E(P) contains at least one non-trivial tree CC. Note that CC is a branch at some vertex uu of PP. Since CC is a non-trivial branch, it consists of multiple segments, one of which, CuC_u, is incident with uu. Create a new D-tree T′T' from TT by removing the subtree of C−E(Cu)C - E(C_u), and attaching this subtree to the vertex xx. Since we have only moved vertices around in the branch BB, the vertex ww is still a median vertex of T′T' (its branch-weight is unchanged). As the vertices of C∖CuC \setminus C_u are further from ww in T′T' than they are from ww in TT, we have σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T). This contradicts the maximality of TT and proves Claim 1.

Claim 2: BB has at most one vertex of degree 4.

Assume to the contrary that there exist two degree 4 vertices, uu and vv. Let Q=w,…,yQ = w,\ldots,y be a maximum length path of TT that starts at ww, and ends at a leaf y∈By \in B. Since BB is a subcaterpillar (per Claim 1) and uu has degree 4, uu is incident with at least one pendant segment SuS_u. Similarly, vv is incident with a pendant segment SvS_v. Create a new D-tree T′T' from TT by removing SuS_u and SvS_v from uu and vv, and attaching these two segments to the vertex yy. The branch-weight of ww is the same in T′T' as it is in TT, and the vertices of Su−uS_u-u and Sv−vS_v-v are further from ww in T′T' than they are from ww in TT. Thus π(T′)>π(T)\pi(T') > \pi(T), contradicting maximality of TT. If uu is a branch vertex of BB with degree 4, and vv is a branch vertex of BB with degree 3, it is clear that d(w,u)>d(w,v)d(w,u) > d(w,v), as the tree T′T' formed by removing a segment from uu and attaching it to vv will have greater proximity.

Claim 3: A segment of maximum length among the segments in BB is incident with ww.

Suppose to the contrary that the segment RR of BB incident with ww does not have maximum length. Then there exists another segment SS of BB with ℓ(S)>ℓ(R)\ell(S) > \ell(R). Create a new tree T′T' from TT by swapping RR and SS. Note that the branch-weight of ww in T′T' is the same as the branch-weight of ww in TT, so ww is a median vertex of T′T'. The vertices that appear after both RR and SS in a path starting at ww will remain the same distance from ww in T′T' as they are from ww in TT. All other vertices of BB are moved a distance ℓ(S)−ℓ(R)\ell(S) - \ell(R) further from ww in T′T' than they are from ww in $T. Thus π(T′)>π(T)\pi(T') > \pi(T), contradicting maximality of TT. □

Lemma 6.4

If a tree is a π\pi-maximising D-tree, then it is a subdivided caterpillar.

Proof. Let TT be such a tree, ww be a median vertex of TT, and nn the order of TT. By Lemma 6.3, it suffices to show that at most two of the branches of TT at ww are non-trivial. So assume to the contrary that AA, BB and CC are three non-trivial branches of TT at ww. Let uau_a, ubu_b and ucu_c be the branch vertices of AA, BB and CC respectively that are furthest from ww. Suppose, without loss of generality, that d(w,uc)≤d(w,ub)d(w,u_c) \leq d(w,u_b) and d(w,uc)≤d(w,ua)d(w,u_c) \leq d(w,u_a). By Lemma 6.2, the vertices ubu_b and ucu_c have degrees in {3,4}\{3,4\}.

Claim: ww is the unique median vertex of TT — hence bw⁡(w)<n2\operatorname{bw}(w) < \frac{n}{2}.

Suppose to the contrary that v≠wv \ne w is also a median vertex of TT. Then the branch at vv containing ww does not have a path intersecting all of its segments — contradicting Lemma 6.3.

Case 1: The vertex ucu_c has degree 4.

The vertex ucu_c is incident with three pendant segments C1C_1, C2C_2 and C3C_3 with lengths c1≤c2≤c3c_1 \le c_2 \le c_3. Let h=∣C∣−(c1+c2+c3)h = |C| - (c_1 + c_2 + c_3), and note that h≥c3h \ge c_3 per part 3 of Lemma 6.3. Observe that

n≥∣A∣+∣B∣+∣C∣+1≥∣A∣+∣B∣+h+c1+c2+c3+1n \ge|A| + |B| + |C| + 1 \ge|A| + |B| + h + c_1 + c_2 + c_3 + 1

where the last term comes from counting the vertex ww itself.

Sub-case 1.1: d(w,uc)<d(w,ua)d(w,u_c) < d(w,u_a) and d(w,uc)<d(w,ub)d(w,u_c) < d(w,u_b).

Observe that either ∣A∣+c1<n2|A| + c_1 < \frac{n}{2}, or ∣B∣+c1<n2|B| + c_1 < \frac{n}{2}. For if these were both false, then we would have both (∣A∣+c1)+(∣B∣+c1)≥n(|A| + c_1) + (|B| + c_1) \ge n, and (∣A∣+c1)+(∣B∣+c1)≤(∣A∣+c1)+(∣B∣+c2)<n(|A| + c_1) + (|B| + c_1) \le(|A| + c_1) + (|B| + c_2) < n, which is a contradiction. If ∣A∣+c1<n2|A| + c_1 < \frac{n}{2}, then we can form a new tree T′T' by moving the segment C1C_1 from ucu_c to the vertex uau_a. Since ∣A∣+c1<n2|A| + c_1 < \frac{n}{2}, every branch of ww in T′T' still has branch-weight less than n2\frac{n}{2}, so ww is the median of T′T'. Further, we obtain σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T), contradicting maximality of TT. The proof when ∣B∣+c1<n2|B| + c_1 < \frac{n}{2} follows similarly.

Sub-case 1.2: d(w,uc)=d(w,ub)d(w,u_c) = d(w,u_b) and d(ub)=4d(u_b) = 4.

Let B1B_1 be a shortest leaf segment incident with ubu_b, of length b1b_1. Per part 3 of Lemma 6.3, we have

b1,c1≤d(w,ua)<∣A∣.b_1,c_1 \le d(w,u_a) < |A|.

Further, since c1c_1 is the shortest segment incident with ucu_c, and c1≤d(w,uc)c_1 \le d(w,u_c) (part 3 of Lemma 6.3), we have that c1≤∣C∣4c_1 \le\frac{|C|}{4}. Similarly, b1≤∣B∣4b_1 \le\frac{|B|}{4}. Since each branch at ww has weight less than n2\frac{n}{2}, we have that c1,b1<n8c_1,b_1 < \frac{n}{8}. We thus claim that it is impossible for all three of the following inequalities to hold: ∣B∣+c1≥n2|B| + c_1 \ge\frac{n}{2}, ∣C∣+b1≥n2|C| + b_1 \ge\frac{n}{2} and ∣A∣+c1+b1≥n2|A| + c_1 + b_1 \ge\frac{n}{2}. Suppose to the contrary that they all hold. Then

(∣B∣+c1)+(∣C∣+b1)+(∣A∣+c1+b1)≥3n2(|B| + c_1) + (|C| + b_1) + (|A| + c_1 + b_1) \ge\frac{3n}{2}

However, we have ∣A∣+∣B∣+∣C∣<n|A| + |B| + |C| < n, and c1,b1<n8c_1,b_1 < \frac{n}{8}, so

(∣B∣+c1)+(∣C∣+b1)+(∣A∣+c1+b1)=∣A∣+∣B∣+∣C∣+2(c1+b1)<n+2(n8+n8)=3n2,(|B| + c_1) + (|C| + b_1) + (|A| + c_1 + b_1) = |A| + |B| + |C| + 2(c_1 + b_1) < n + 2\left(\frac{n}{8} + \frac{n}{8}\right) = \frac{3n}{2},

Since this is a contradiction, at least one of the inequalities does not hold.

If we have ∣C∣+b1<n2|C| + b_1 < \frac{n}{2}, then form a new tree T′T' by removing the segments C1C_1 and B1B_1 from TT, and re-attaching both segments to the leaf at the end of C2C_2. Since ∣C∣+b1<n2|C| + b_1 < \frac{n}{2}, the branch-weight of ww in T′T' is less than n2\frac{n}{2}, so ww is the unique median of T′T'. It is clear that the total distance of ww is greater in T′T' than in TT, contradicting maximality of TT.

The case where ∣B∣+c1<n2|B| + c_1 < \frac{n}{2} is very similar—only we construct T′T' by moving the segments C1C_1 and B1B_1 onto the end of a segment incident with ubu_b, rather than onto the end of C2C_2.

Finally, if ∣A∣+c1+b1<n2|A| + c_1 + b_1 < \frac{n}{2}, form T′T' by moving segments C1C_1 and B1B_1 to a leaf at the end of a segment incident with uau_a.

Sub-case 1.3: d(w,uc)=d(w,ub)d(w,u_c) = d(w,u_b) and d(ub)=3d(u_b) = 3.

Let B1B_1 and B2B_2 denote the two pendant segments incident with ubu_b, and suppose they have lengths b1b_1 and b2b_2 with b1≤b2b_1 \le b_2. Note, per part 3 of Lemma 6.3, that the segment of BB incident with ww is at least as long as B2B_2. We claim that at least one of the following holds:

  1. ∣A∣+b1<n2|A| + b_1 < \frac{n}{2} and ∣C∣+b2<n2|C| + b_2 < \frac{n}{2},

  2. ∣A∣+b1+b2<n2|A| + b_1 + b_2 < \frac{n}{2},

  3. ∣C∣+b1+b2<n2|C| + b_1 + b_2 < \frac{n}{2}.

Suppose to the contrary that all three are false. If ∣A∣+b1≥n2|A| + b_1 \ge\frac{n}{2}, then by summing this with ∣C∣+b1+b2≥n2|C| + b_1 + b_2 \ge\frac{n}{2} yields

(∣A∣+b1)+(∣C∣+b1+b2)≥n(|A| + b_1) + (|C| + b_1 + b_2) \ge n

However, since a longest segment of B is incident with ww, we have

(∣A∣+b1)+(∣C∣+b1+b2)=∣A∣+∣C∣+2b1+b2≤∣A∣+∣C∣+∣B∣<n,\begin{aligned} (|A| + b_1) + (|C| + b_1 + b_2) = |A| + |C| + 2b_1 + b_2 \\ &\le|A| + |C| + |B| \\ &< n, \end{aligned}

which is impossible. If ∣C∣+b2≥n2|C| + b_2 \ge\frac{n}{2}, we obtain a similar contradiction, so at least one of the three statements is true.

If ∣A∣+b1<n2|A| + b_1 < \frac{n}{2} and ∣C∣+b2<n2|C| + b_2 < \frac{n}{2}, then we create a new tree T′T' by removing the segments C1C_1, B1B_1 and B2B_2 — and adding B1B_1 to uau_a, and both C1C_1 and B2B_2 to the end of the leaf vertex on C2C_2. By our usual branch-weight argument, ww is a median vertex of T′T', and σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T). If ∣C∣+b1+b2<n2|C| + b_1 + b_2 < \frac{n}{2}, create T′T' by moving B1B_1 and B2B_2 onto the leaf vertex of segment C1C_1 and obtain a contradiction as σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T). The case where ∣A∣+b1+b2<n2|A| + b_1 + b_2 < \frac{n}{2} follows similarly to the ∣C∣+b1+b2<n2|C| + b_1 + b_2 < \frac{n}{2} case.

Case 2: The vertex ucu_c has degree 3.

Let C1C_1, C2C_2 be the two pendant segments incident with ucu_c, and denote their lengths c1≤c2c_1 \le c_2. Let CwC_w be the segment of CC incident with ww, and note that its length cwc_w satisfies c2≤cwc_2 \le c_w per Lemma 6.3.

Sub-case 2.1: d(w,ub)<d(w,ua)\mathrm{d}(w,u_b) < \mathrm{d}(w,u_a) or d(w,uc)<d(w,ua)\mathrm{d}(w,u_c) < \mathrm{d}(w,u_a).

We claim that at least one of the following holds:

  1. ∣A∣+c1<n2|A| + c_1 < \frac{n}{2} and ∣B∣+c2<n2|B| + c_2 < \frac{n}{2},

  2. ∣A∣+c1+c2<n2|A| + c_1 + c_2 < \frac{n}{2},

  3. ∣B∣+c1+c2<n2|B| + c_1 + c_2 < \frac{n}{2}.

Suppose to the contrary that none of the above hold. If ∣A∣+c1≥n2|A| + c_1 \ge\frac{n}{2} and ∣B∣+c1+c2≥n2|B| + c_1 + c_2 \ge\frac{n}{2}, then we have that

∣A∣+∣B∣+2c1+c2≥n.|A| + |B| + 2c_1 + c_2 \ge n.

However, we know that

∣A∣+∣B∣+2c1+c2≤∣A∣+∣B∣+c1+c2+cw≤∣A∣+∣B∣+∣C∣<n.\begin{aligned} |A| + |B| + 2c_1 + c_2 \le|A| + |B| + c_1 + c_2 + c_w \\ &\le|A| + |B| + |C| < n. \end{aligned}

Thus at least one of the statements is true.

If ∣A∣+c1<n2|A| + c_1 < \frac{n}{2} and ∣B∣+c2<n2|B| + c_2 < \frac{n}{2}, then we create a new tree T′T' by removing C1C_1 and C2C_2 from TT, attaching C1C_1 to uau_a, and attaching C2C_2 to ubu_b. The argument that ww is median vertex of T′T' and that σ(w,T′)>σ(w,T)\sigma(w,T') > \sigma(w,T) is much the same as it is in the previous cases. If ∣A∣+c1+c2<n2|A| + c_1 + c_2 < \frac{n}{2}, move C1C_1 and C2C_2 onto the end of a pendant segment incident with uau_a; and if ∣B∣+c1+c2<n2|B| + c_1 + c_2 < \frac{n}{2}, move C1C_1 and C2C_2 onto a pendant segment incident with ubu_b, and obtain a contradiction as in the previous cases.

Sub-case 2.2: d(w,ua)=d(w,ub)=d(w,uc)\mathrm{d}(w,u_a) = \mathrm{d}(w,u_b) = \mathrm{d}(w,u_c), and at least one of uau_a and ubu_b have degree 4.

Up to relabelling of the branches of ww, this case is subsumed by Sub-case 1.3.

Sub-Case 2.3: d(w,ua)=d(w,ub)=d(w,uc)\mathrm{d}(w,u_a) = \mathrm{d}(w,u_b) = \mathrm{d}(w,u_c), d(ua)=d(ub)=3\mathrm{d}(u_a) = \mathrm{d}(u_b) = 3, and the branch CC has more than three segments.

Since d(uc)=3\mathrm{d}(u_c) = 3, the path from ww to ucu_c consists of at least two segments: CwC_w, and another segment we call C3C_3 of length c3c_3.

We claim that c2≤c3c_2 \le c_3. Suppose that the contrary that c2>c3c_2 > c_3. Then the tree T′T' obtained by swapping C3C_3 and C2C_2 has π(T′)>π(T)\pi(T') > \pi(T), which contradicts the maximality of TT.

We further claim that if ∣A∣+c1+c2≥n2|A| + c_1 + c_2 \ge\frac{n}{2}, then ∣B∣+c1+c2<n2|B| + c_1 + c_2 < \frac{n}{2}. Assume otherwise, and note that

∣A∣+∣B∣+2c1+2c2≥n.|A| + |B| + 2c_1 + 2c_2 \ge n.

However, since c2≤c3≤cwc_2 \le c_3 \le c_w:

∣A∣+∣B∣+2c1+2c2≤∣A∣+∣B∣+c1+c2+c3+cw≤∣A∣+∣B∣+∣C∣<n.\begin{aligned} |A| + |B| + 2c_1 + 2c_2 \le|A| + |B| + c_1 + c_2 + c_3 + c_w \\ &\le|A| + |B| + |C| < n. \end{aligned}

This contradiction proves our further claim.

If ∣A∣+c1+c2<n2|A|+c_{1}+c_{2}<\frac{n}{2}, then we create a new tree T′T' by removing C1C_{1} and C2C_{2} from TT, and attaching them to the end of a pendant segment incident with uau_{a}. If ∣A∣+c1+c2≥n2|A|+c_{1}+c_{2}\ge\frac{n}{2}, then ∣B∣+c1+c2<n2|B|+c_{1}+c_{2}<\frac{n}{2}, and we create T′T' by moving C1C_{1} and C2C_{2} onto the end of a pendant segment incident with ubu_{b}. In both cases, we quickly see that π(T′)>π(T)\pi(T')>\pi(T).

Sub-case 2.4: d(w,ua)=d(w,ub)=d(w,uc)d(w,u_{a})=d(w,u_{b})=d(w,u_{c}), d(ua)=d(ub)=3d(u_{a})=d(u_{b})=3, and the branch CC has exactly the three segments C1C_{1}, C2C_{2} and CwC_{w}.

For brevity, let d=d(w,ua)d=d(w,u_{a}). Let A1,A2A_{1},A_{2} be the pendant segments incident with uau_{a}, B1,B2B_{1},B_{2} the pendant segments incident with ubu_{b}, and C1,C2C_{1},C_{2} those incident with ucu_{c}. Further, let AwA_{w}, BwB_{w} and CwC_{w} be the segments of AA, BB and CC respectively that are incident with ww. Denote by axa_{x} the length of the segment AxA_{x}, x∈{1,2,w}x\in\{1,2,w\}, and denote the lengths bxb_{x} and cxc_{x} similarly (in particular, cw=dc_{w}=d). Suppose without loss of generality that bw≤awb_{w}\le a_{w}, and note that aw≤d=cwa_{w}\le d=c_{w}.

Claim 1: ∣C∣+b1+b2>n2|C|+b_{1}+b_{2}>\frac{n}{2}; ∣A∣+c1+c2>n2|A|+c_{1}+c_{2}>\frac{n}{2}; and ∣B∣+a1+a2>n2|B|+a_{1}+a_{2}>\frac{n}{2}.

Assume that ∣C∣+b1+b2≤n2|C|+b_{1}+b_{2}\le\frac{n}{2}. Then we create a new tree T′T' by removing B1,B2B_{1},B_{2} from ubu_{b} and attaching both to the leaf vertex of C1C_{1}. Since the branchweight of ww in T′T' is at most n2\frac{n}{2}, ww is a median vertex of T′T'. Further, it is clear that σ(w,T′)>σ(w,T)\sigma(w,T')>\sigma(w,T), contradicting maximality of TT. The proofs that ∣A∣+b1+b2>n2|A|+b_{1}+b_{2}>\frac{n}{2} and ∣B∣+a1+a2>n2|B|+a_{1}+a_{2}>\frac{n}{2} are similar. ◇

Create a new tree T′T' from TT by removing C1C_{1} and C2C_{2} from ucu_{c}, and attaching these two segments to the leaf vertex on the segment A1A_{1}. Let w′w' denote the median vertex of T′T' — in the event that T′T' has two median vertices, let w′w' be the one minimising the distance d(w,w′)d(w,w') (since w′w' is a vertex in T−(C1∪C2)T-(C_{1}\cup C_{2}), this distance will be the same in TT and T′T'). Let i=d(w,w′)i=d(w,w'). Per Claim 1, ∣A∣+c1+c2>n2|A|+c_{1}+c_{2}>\frac{n}{2}, so the branchweight bw⁡T′(w)≥n2\operatorname{bw}_{T'}(w)\ge\frac{n}{2}. Thus, w≠w′w\ne w', so i>0i>0.

Claim 2: w′w' is a vertex of the segment AwA_{w}.

Let P:w=x0,x1,…,ua=xk−1P:w=x_{0},x_{1},\ldots,u_{a}=x_{k-1} be the unique path from ww to uau_{a} (this path is the same in TT and T′T'). Since w′w' minimises branchweight in T′T', and ww minimises branchweight in TT, it is clear — considering the weights of C1C_{1}, C2C_{2} and A1A_{1} — that w′w' must lie on P−wP-w. Suppose to the contrary that w′w' lies on PP, but not AwA_{w}. Then one branch of w′w' in TT contains AwA_{w}, CwC_{w}, and all of BB. Note that a1,a2≤aw≤cwa_{1},a_{2}\le a_{w}\le c_{w}. Thus

bw⁡T′(w′)≥∣B∣+cw+aw≥∣B∣+a1+a2\begin{aligned} \operatorname{bw}_{T'}(w')\ge|B|+c_{w}+a_{w} \\ &\ge|B|+a_{1}+a_{2} \end{aligned}

However, by Claim 1, ∣B∣+a1+a2>n2|B|+a_{1}+a_{2}>\frac{n}{2}, contradicting that w′w' is a median vertex of T′T'. ◇

Claim 3: a1≥ia_{1}\ge i.

Assume to the contrary that i>a1i>a_{1}. Note that cw=dc_{w}=d. Then, by considering the branch of T′T' at w′w' containing BB, we get that

bw⁡T′(w′)≥∣B∣+cw+i>∣B∣+a2+a1.\begin{aligned} \operatorname{bw}_{T'}(w')\ge|B|+c_{w}+i \\ &>|B|+a_{2}+a_{1}. \end{aligned}

Per Claim 1, ∣B∣+a2+a1>n2|B|+a_{2}+a_{1}>\frac{n}{2}, contradicting that w′w' is a median of T′T'. ◇

Claim 4: ∣B∣+cw−∣A∣≥0|B|+c_{w}-|A|\ge0.

Assume the Claim is false, and obtain ∣B∣<∣A∣−cw|B|<|A|-c_{w}. Per Claim 1, we have

n2<∣B∣+c1+c2<∣A∣−cw+c1+c2\frac{n}{2}<|B|+c_{1}+c_{2}<|A|-c_{w}+c_{1}+c_{2}

Thus, noting that c1,c2≤cwc_{1},c_{2}\le c_{w}, we have

n<(∣B∣+c1+c2)+(∣A∣−cw+c1+c2)=∣A∣+∣B∣+(2c1+2c2−cw)≤∣A∣+∣B∣+∣C∣(1)\begin{aligned} n<\bigl(|B|+c_{1}+c_{2}\bigr)+\bigl(|A|-c_{w}+c_{1}+c_{2}\bigr) \\ &=|A|+|B|+\left(2c_{1}+2c_{2}-c_{w}\right) \\ &\le|A|+|B|+|C| \tag*{(1)} \end{aligned}

Therefore n<∣A∣+∣B∣+∣C∣=n−1<nn<|A|+|B|+|C|=n-1<n, which is a contradiction. ◇

To complete the proof, it suffices to show that σ(w′,T′)−σ(w,T)>0\sigma(w',T')-\sigma(w,T)>0. Note that σ(w′,T′)−σ(w,T)=(σ(w′,T′)−σ(w,T′))+(σ(w,T′)−σ(w,T))\sigma(w',T')-\sigma(w,T)=(\sigma(w',T')-\sigma(w,T'))+(\sigma(w,T')-\sigma(w,T)). By construction of T′T' from TT, we obtain the following expression for σ(w,T′)−σ(w,T)\sigma(w,T')-\sigma(w,T) by considering the contribution of the vertices in C1C_{1} and C2C_{2} to σ(w,T′)\sigma(w,T'), and subtracting from it their contribution to σ(w,T)\sigma(w,T). For any vertex xx not in C1C_1 or C2C_2, the contribution of xx to σ(w,T′)−σ(w,T)\sigma(w,T')-\sigma(w,T) is 0.

σ(w,T′)−σ(w,T)=∑j=d+a1+1d+a1+c1j+∑j=d+a1+1d+a1+c2j−∑j=d+1d+c1j−∑j=d+1d+c2j=a1(c1+c2)(2)\sigma(w,T')-\sigma(w,T)=\sum_{j=d+a_1+1}^{d+a_1+c_1}j+\sum_{j=d+a_1+1}^{d+a_1+c_2}j-\sum_{j=d+1}^{d+c_1}j-\sum_{j=d+1}^{d+c_2}j=a_1(c_1+c_2) \tag*{(2)}

Observing that the vertices of A∪C1∪C2A\cup C_1\cup C_2 are ii closer to w′w' than ww (apart from the ii vertices between w′w' and ww), and that the vertices of BB and CwC_w are ii further from w′w' than ww, we have:

σ(w′,T′)−σ(w,T′)=i(∣B∣+cw)−i(∣A∣+c1+c2−i)\sigma(w',T')-\sigma(w,T')=i(|B|+c_w)-i(|A|+c_1+c_2-i)
=i(∣B∣+cw−∣A∣)+i2−i(c1+c2)(3){}=i(|B|+c_w-|A|)+i^2-i(c_1+c_2) \tag*{(3)}

Per Claim 3, we have that (a1−i)(c1+c2)≥0(a_1-i)(c_1+c_2)\ge0, so summing equations 2 and 3 yields:

σ(w′,T′)−σ(w,T)≥i(∣B∣+cw−∣A∣)+i2\sigma(w',T')-\sigma(w,T)\ge i(|B|+c_w-|A|)+i^2

Per Claim 4, ∣B∣+cw−∣A∣≥0|B|+c_w-|A|\ge0, and we know i>0i>0. Therefore σ(w′,T′)−σ(w,T)>0\sigma(w',T')-\sigma(w,T)>0, contradicting that TT maximises proximity and completing the proof. □

Lemma 6.5. Suppose TT is a π\pi-maximising D-tree with median vertex ww, and that BB is a branch of TT at ww. Suppose that Si,SjS_i,S_j are two segments of TT, fully contained in BB, with lengths ℓi\ell_i and ℓj\ell_j respectively. Among paths of BB that start at ww and meets every segment of BB, let PP be one of maximum length. All the following hold:

  1. If SiS_i and SjS_j are both leaf segments, then d(w,Si)<d(w,Sj)d(w,S_i)<d(w,S_j) implies ℓi≤ℓj\ell_i\le\ell_j.

  2. If SiS_i and SjS_j are segments of PP, then d(w,Si)<d(w,Sj)d(w,S_i)<d(w,S_j) implies ℓi≥ℓj\ell_i\ge\ell_j.

  3. If SiS_i is a segment of PP and SjS_j is a leaf segment, then ℓi≥ℓj\ell_i\ge\ell_j.

Proof. To prove (1), suppose to the contrary that Si,SjS_i,S_j are leaf segments with where SiS_i is closer to ww than SjS_j, but ℓi>ℓj\ell_i>\ell_j. Create T′T' by removing (ℓi−ℓj)(\ell_i-\ell_j) vertices from SiS_i and appending these vertices to the end of SjS_j. I.e., up to renaming the vertices, we have swapped the segments SiS_i and SjS_j. The branch-weight at ww is the same in T′T' as in TT, and the (ℓi−ℓj)(\ell_i-\ell_j) vertices that were moved are further from ww in T′T' than they are in TT, so π(T′)>π(T)\pi(T')>\pi(T), contradicting our choice of TT.

The argument to prove (2) is similar: assume to the contrary that SiS_i and SjS_j are segments of PP such that d(w,Si)<d(w,Sj)d(w,S_i)<d(w,S_j) and ℓi<ℓj\ell_i<\ell_j. We again remove ℓj−ℓi\ell_j-\ell_i vertices from SjS_j and insert them into SiS_i to create a new tree T′T' (up to the vertex labels, this is just swapping SiS_i and SjS_j). Note that the length of the path PP is unaffected by this change, and so the vertices of PP contribute the same amount to σ(w,T)\sigma(w,T) and σ(w,T′)\sigma(w,T'). However, the leaf segments incident with PP between SjS_j and SiS_i (of which there is at least one) are ℓj−ℓi\ell_j-\ell_i further from ww in T′T' than they are from ww in TT. Thus π(T)<π(T′)\pi(T)<\pi(T'), a contradiction.

We now prove (3). Let vv denote the branch vertex of BB furthest from ww (I.e., vv is the last branch vertex of the path PP). By (1), a longest leaf segment SℓS_\ell of BB is incident with vv, and is contained in PP. By (2), any other segment SpS_p of PP is at least as long as the last segment SℓS_\ell of PP, completing the proof. □

Lemma 6.6. Suppose TT is a π\pi-maximising D-tree and that ww is a median vertex of TT. Then ww lies in a longest segment of TT.

Proof. Let S1,…,SkS_1,\ldots,S_k be the segments of TT with lengths ℓ1≥⋯≥ℓk\ell_1\ge\cdots\ge\ell_k and suppose to the contrary that ww is a median vertex that is in a segment SjS_j such that ℓj<ℓ1\ell_j<\ell_1. Denote the vertices of SjS_j by u0,…,uℓju_0,\ldots,u_{\ell_j}.

Per Lemma 6.3, TT is a caterpillar. If ww is an end-vertex of the segment SjS_j, then by Lemma 6.5, ww is also the end-vertex of a longest segment of each branch at ww, and is thus in a longest segment of TT. Thus we assume that w=uiw=u_i where 1≤i≤ℓj−11\le i\le\ell_j-1.

The tree TT has two branches at ww, which we call AA and BB. Suppose without loss of generality that S1S_1 is in branch AA. Per Lemma 6.5, we may assume S1S_1 is incident with u0u_0. Denote S1=v0,…,vℓ1S_1=v_0,\ldots,v_{\ell_1}, where vℓ1=u0v_{\ell_1}=u_0, and note that there is a leaf segment (or two) incident with u0u_0. Create a new tree T′T' by removing the leaf segments from u0u_0, and attaching them to the vertex viv_i (I.e., up to renaming the vertices, we have swapped S1S_1 and SjS_j). As we have only moved a leaf segment (or two segments) further from ww inside the branch AA, the weights of the branches AA and BB are unchanged, so ww is a vertex of minimum proximity in T′T'. Further, since the leaf segments are a distance ℓ1−ℓj>0\ell_1-\ell_j>0 further from ww in T′T' than they are from ww in TT, and no other vertices were moved, we conclude that π(T′)>π(T)\pi(T')>\pi(T). □

Conclusion

In this paper, we have studied the proximity and remoteness of trees with a prescribed segment sequence. We have characterised the unique tree that minimises proximity and the trees that maximise remoteness. For minimum remoteness, we have established sufficient conditions under which a minimising tree has two branching vertices. Our results suggest that the structure of a remoteness-minimising tree depends on the relative lengths of the segments. For maximum proximity, we have obtained a detailed set of necessary conditions. However, these conditions do not give a complete characterisation, since different non-isomorphic trees can maximise proximity for the same segment sequence.

An open question concerns the structure of trees that minimise remoteness. We conjecture that, for every segment sequence D=(ℓ1,ℓ2,…,ℓk)D = (\ell_1,\ell_2,\ldots,\ell_k), a D-tree with minimum remoteness is either starlike or a (Δ,2)(\Delta,2)-D-tree. In particular, it remains to determine whether a tree with three or more branching vertices can ever minimise remoteness. Another direction for future research is to seek a complete characterisation of trees that maximise proximity. The sensitivity of the structure of proximity-maximising trees to changes in the segment lengths, together with the possibility of multiple non-isomorphic extremal trees, makes this a challenging problem. Further investigation of these questions may lead to a more complete understanding of the extremal proximity and remoteness of trees with prescribed segment sequences.

References

References

  1. [1]Allie, I.; Wade, M.; Minimising the eccentricity index in trees with given segment sequence. Quaestiones Mathematicae 48(no. 3) (2025), 525-539.DOI
  2. [2]Andriantiana, E. O. D; Wagner, S.; and Wang, H.; Maximum wiener index of trees with given segment sequence. MATCH Communications in Mathematical and in Computer Chemistry 75(no. 1) (2016), 91-104.
  3. [3]Aouchiche, M.; Hansen, P.; Proximity and remoteness in graphs: results and conjectures. Networks 58(no. 2) (2011), 95-102.DOI
  4. [4]Aouchiche, M.; Hansen, P.; Proximity, remoteness and girth in graphs. Discrete Appl. Math. 222 (2017), 31-39.DOI
  5. [5]Aouchiche, M.; Rather, B.A.; Proximity and remoteness in graphs: a survey. Discrete Appl. Math. 353 (2024), 94-120.
  6. [6]Barefoot, C.A.; Entringer, R.C.; Székely, L.A.; Extremal values for ratios of distances in trees. Discrete Appl. Math. 80 (1997), 37-56.DOI
  7. [7]Cheng, M.; Lin, H.; Zhou, B.; Minimum status of series-reduced trees with given parameters. Bull Braz. Math. Soc. New Series (2021), 1-20. https://doi.org/10.1007/s00574-021-00278-1.
  8. [8]Czabarka, É.; Dankelmann, P.; Olsen, T.; Székely, L.A.; Wiener index and remoteness in triangulations and quadrangulations. Discrete Math. Theor. Comp. Sci. 23, no. 1 (2021).DOI
  9. [9]Czabarka, É.; Dankelmann, P.; Olsen, T.; Székely, L.A.; Proximity in Triangulations and Quadrangulations. Electronic J. Graph Theory Applications 10 no. 2 (2022), 425–446.arxiv.org/abs/2001.09012
  10. [10]Dankelmann, P.; Proximity, remoteness, and minimum degree. Discrete Appl. Math. 184 (2015), 223–228.DOI
  11. [11]Dankelmann, P.; Jonck, E.; Mafunda, S.; Proximity and remoteness in triangle-free and C₄-free graphs in terms of order and minimum degree. Discrete Math. 344 no. 9 (2021), 112513.arxiv.org/abs/2002.03183
  12. [12]Dankelmann, P.; Mafunda, S.; Mallu, S.; Proximity, remoteness and maximum degree in graphs. Discrete Math. Theoretical Comp. Science. 24 no. 2 (2022).DOI
  13. [13]Dankelmann, P.; Mafunda, S.; Mallu, S.; Proximity and radius in outerplanar graphs with bounded faces. Discrete Mathematics 349 no. 11 (2026), 115250.
  14. [14]Dobrynin, A. A.; Entringer, R.; Gutman I.; Wiener index of trees: theory and applications. Acta Applicandae Mathematicae 66 no. 3 (2001), 211-249.DOI
  15. [15]Guo, H.; Zhou, B.; Minimum status of trees with a given degree sequence. Acta Inform. 60 (2023), 1-10.DOI
  16. [16]Jordan, C.; Sur les assemblages de lignes. J. Reine Angew. Math. 70 (1869), 185-190.
  17. [17]Lin, H.; Song, M.; On segment sequences and the Wiener index of trees. MATCH Communications in Mathematical and in Computer Chemistry 75(no. 1) (2016), 81-89.
  18. [18]Peng, Z.; Zhou, B.; Minimum status of trees with given parameters. RAIRO-Oper. Res. 55 (2021), S765–S785.DOI
  19. [19]Rissner, R.; Burkard, R.E.; Bounds on the radius and status of graphs. Networks, 64 no. 2 (2014), 76–83.
  20. [20]Zhang, J.; Wang, H.; Zhang, X. D.; The Steiner Wiener index of trees with a given segment sequence. Applied Mathematics and Computation 344-345 (2019), 20-29.arxiv.org/abs/2008.02019
  21. [21]Zelinka, B.; Medians and peripherians of trees. Arch. Math. (Brno) 4 (1968), 87-95.

Paper details

vlnc:W_br6v3hv9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 9

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents