<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>On Algorithm for the Minimum Spanning Trees Problem with Diameter Bounded Below</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Edward Kh. Gimadi</string-name>
          <email>gimadi@math.nsc.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexey M. Istomin</string-name>
          <email>alexeyistomin@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ekaterina Yu. Shin</string-name>
          <email>Shinus90@yandex.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Novosibirsk State University</institution>
          ,
          <addr-line>2 Pirogova Str. 630090, Novosibirsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Sobolev Institute of Mathematics</institution>
          ,
          <addr-line>4 Acad. Koptyug avenue, 630090 Novosibirsk</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <fpage>11</fpage>
      <lpage>17</lpage>
      <abstract>
        <p>The minimum spanning trees problem is to nd k edge-disjoint spanning trees in a given undirected weighted graph. It can be solved in polynomial time. In the k minimum spanning trees problem with diameter bounded below (k-MSTBB) there is an additional requirement: a diameter of every spanning tree must be not less than some prede ned value d. The k-MSTBB is N P hard. We propose an asymptotically optimal polynomial time algorithm to solve this problem.</p>
      </abstract>
      <kwd-group>
        <kwd>minimum spanning tree</kwd>
        <kwd>minimum spanning trees problem</kwd>
        <kwd>asymptotically optimal algorithm</kwd>
        <kwd>probabilistic analysis</kwd>
        <kwd>bounded below</kwd>
        <kwd>performance guarantees</kwd>
        <kwd>random inputs</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Copyright ⃝c by the paper's authors. Copying permitted for private and academic purposes.
problem on the input I. According to [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] an algorithm A is said to have performance
guarantees ("A(n); A(n))on the set of random inputs of the problem of the size n, if
Pr{FA(I) &gt; (1 + "A(n))OP T (I)}
      </p>
      <p>A(n);
(1)
where "A(n) is an assessment of the relative error of the solution obtained by algorithm
A, A(n) is an estimation of the failure probability of the algorithm, which is equal to
the proportion of cases when the algorithm does not hold the relative error "A(n) or
does not produce any answer at all.</p>
      <p>An algorithm A is called asymptotically optimal on the class of instances of the
problem, if there are such performance guarantees that "A(n) ! 0 and A(n) ! 0 as
n ! 1.</p>
      <p>Let us denote by UNI(an; bn) a class of complete graphs with n vertices where
weights of edges are independent identically distributed random variables with uniform
distribution on a segment [an; bn]. By EXP(an; n) we will denote a class of complete
graphs with n vertices where weights of edges are independent identically distributed
random variables with exponential distribution with a probability function
p(x) =
{ 1 exp ( x an ); if an
n n</p>
      <p>x &lt; 1;
0; otherwise.</p>
      <p>And by N(an; n) we will denote a class of complete graphs with n vertices where
weights of edges are independent identically distributed random variables with
cuttednormal distribution with a probability function
p(x) =
{ p 2
2 n2
exp ( (x2 an2n)2 ); if an</p>
      <p>x &lt; 1;
0; otherwise.</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] presented an asymptotically optimal algorithm Ae with complexity O(n2) for
graphs which belong to UNI(an; bn) class. On the rst stage algorithm Ae build a path
P = f(i0; i1); (i1; i2); : : : ; (id 1; id)g of d edges starting from an arbitrary vertex i0
and enlarging it by adding successive edges of a minimal weight. On the second stage
a spanning tree of a minimal weight Dfn which contains path P is built using Prim
algorithm. Built tree is taken as a solution.
      </p>
      <p>The algorithm Ae on graphs which belong to UNI(an; bn) class has the following
performance guarantees:
So, Ae is asymptotically optimal if
"n = O
( bn=an )
n= ln nn d1 ; n = e 0:25(n d):
n
ln n
bn=an</p>
      <p>; d = o(n):</p>
      <p>
        The same result but for graphs with unlimited edges weights was presented in
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], where presented analysis of algorithm Ae for graphs from classes EXP(an; n) and
N(an; n). It is shown that Ae nds a solution with performance guarantees:
Thus the algorithm is asymptotically optimal in the case then
"n = O( n=an ); n = O(1=n):
n=ln n
n = o( n );
an ln n
where n = n for the graphs from EXP(an; n) and n in the case of N(an; n).
      </p>
      <p>
        Another generalization of the MST problem is the problem of nding k edge-disjoint
spanning trees of a minimal total weight (k-MSTs). The k-MSTs is also polynomially
solvable, in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] by Roskind and Tarjan was presented an algorithm with complexity
O(n2 log(n) + n2k2).
      </p>
      <p>In current work a modi cation of the k-MSTs is considered where the aim is to
nd k edge-disjoint spanning trees of a minimal total weight such that every tree has a
diameter not less than some prede ned value d. We will call this problem as k minimum
spanning trees problem with diameter bounded below (k-MSTBB). It is NP-hard since
with dn = n 1 and k = 1 it is equivalent to a problem of nding Hamiltonian Path
of a minimal weight in a given graph.</p>
      <p>
        We propose a polynomial time algorithm to solve the k-MSTBB problem. The
algorithm builds k edge-disjoint Hamiltonian chains with d edges each on the preselected
set of d + 1 vertices. Then by the algorithm by Roskind and Tarjan [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] edge-disjoint
spanning trees in the number of k containing these chains are found. Also we present
performance guarantees of the algorithm and sufficient conditions of asymptotic
optimality for the graphs from UNI(an; bn).
1
      </p>
    </sec>
    <sec id="sec-2">
      <title>New algorithm</title>
      <p>Ak
Let us consider G = (V; E), an undirected complete n-vertex graph belonging to
UNI(an; bn).</p>
      <p>
        Our new algorithm is based on ideas of from [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], uses the algorithm by Roskind and
Tarjan [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and algorithm AAV [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] which builds a Hamiltonian path in a given arbitrary
graph Gp with probability 1 AV .
      </p>
      <p>Algorithm Ak:
1. Build k paths with a number of edges of d on the set of d + 1 vertices.
(a) Randomly remove all but d + 1 vertices from graph G, get G[d] inducted by
the set of vertices left.
(b) Build subgraphs G1[d], ... , Gk[d] by a random procedure: every edge from G[d]
randomly gets one color between 1 and k.
(c) Remove all edges from G1[d], ... , Gk[d] which weight more than some threshold
w, so we get graphs G1w[d], ... , Gkw[d].</p>
      <p>(d) In G1w[d], ... , Gkw[d] nd Hamiltonian paths by the algorithm AAV .
2. By the Roskind-Tarjan algorithm
paths built on the previous step.</p>
      <p>nd k edges-disjoint spanning trees containing</p>
      <p>
        Threshold value w must be chosen in a way that Giw[d] contains a Hamiltonian
path. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] it was established that on a d + 1 vertex graph where edge exists with a
probability p if the value of p is so that graph contains more than c(d + 1) log(d + 1)
edges, the graph will have a Hamiltonian path. In the paper [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] presented an algorithm
AAV to nd such Hamiltonian path with high probability (whp) in O(d ln2 d) time.
Theorem 1. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] For all &gt; 0 there exists a K( ) such that if the number of edges in
a random graph N &gt; ( + K( ))(d + 1) ln(d + 1), where K( ) is sufficiently large, the
probability that algorithm AAV nds a Hamiltonian path is 1 O(d ).
      </p>
      <p>We will denote a threshold value of algorithm AAV as cAV = ( + K( )). Now
let us formulate a Lemma to provide an estimation of probability that Giw[d] contains
enough edges for AAV to succeed.</p>
      <p>Lemma 1. The probability that Giw[d] contains less than N edges is less than e d if
p 4n((Nn+1d)) .</p>
      <p>Proof.</p>
      <p>N = P rfGiw[d] contains less than N edges g = N∑1 ( d(dk2 1) )pk(1
d(d 1) k
p) 2
:
which is correct for all n; p; ; where n is integer, p 2 [0; 1] and
2 [0; 1], we get
N
e d(d4 1) p+N
e d;
if p</p>
      <p>4d((Nd +1d)) .</p>
      <p>Let's denote AV a probability of a case when the algorithm AAV was unable to
give us a solution: Giw[d] had not enough edges or algorithm AAV returned failure. By
Theorem 1 and Lemma 1</p>
      <p>AV = O(d
+ e d):</p>
      <p>Let D~n be a solution of the k-MSTBB found by algorithm Ak on a n-vertex graph.
By w0 we will denote a weight of solution of the k-MSTs. Now, let us formulate the
following Lemma.</p>
      <p>Lemma 2. If all Ci; i 2 f1; 2; : : : kg, were successfully built by the algorithm Ak, then
w(D~n) w0 + w(C1) + ::: + w(Ck) kdan.</p>
      <p>Now by the inequality</p>
      <p>k=0
⌊(1 )np⌋ (n)pk(1
∑
k</p>
      <p>k=0
p)n k</p>
      <p>2np
e 2 :
Proof. It is obvious that D~n is a solution of the k-MSTs problem with a modi ed
weight function, if wij is an original weight of a edge (i; j) then modi ed one will be
D~n is a group of k edge-disjoint spanning trees with a minimum total weight among a
set Dn of all possible groups of k edge-disjoint spanning trees, where edges weights are
wij.</p>
      <p>On the one hand we have:</p>
      <p>8
min &lt; ∑
∑
(i;j)2C1
wi′j + : : : +
:(i;j)2Dn</p>
      <p>∑
(i;j)2Ck</p>
      <p>9
wi′jjDn 2 Dn= =</p>
      <p>;
wi′j + w(D~n)</p>
      <p>∑
(i;j)2D~n</p>
      <p>wi′j =
w(C1) : : :</p>
      <p>w(Ck) =
kdan + w(D~n)
w(C1) : : :
w(Ck):
On the other hand, since wi′j</p>
      <p>wij:
8
min &lt; ∑
:(i;j)2Dn
wi′jjDn 2 Dn
9
=
;</p>
      <p>8
min &lt; ∑
:(i;j)2Dn</p>
      <p>9
wijjDn 2 Dn= =</p>
      <p>
        ;
min fw(Dn)jDn 2 Dng = w0:
Combination of these two inequalities gives us the result of the Lemma.
Lemma 3. If Ci was successfully built by the algorithm Ak, then
w(Ci)
dan + 5kcAV (bn
an) log d; i = 1; : : : ; k;
where cAV is a threshold value de ned for algorithm AAV by Theorem 1 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
Proof. Let i 2 f1; : : : ; kg. Let w be (bn an)p + an, since edges weights have uniform
distribution on a segment [an; bn] (we are considering graphs from class UNI(an; bn)),
the probability that an edge have weight less than w is equal to p. To grant to algorithm
AAV a possibility to nd a Hamiltonian path graph Giw[d] must have more than cAV (d+
1) log(d + 1) edges. Together with Lemma 1 it means
It give us that every edge in Giw[d] has weight less than
Ci contains d edges, so
5kcAV (bn
an)
      </p>
      <p>+ an:
w(Ci)
5kcAV (bn</p>
      <p>an) log d + dan:
p
5kcAV
log d
d</p>
      <p>:
log d
d
Theorem 2. Algorithm Ak has the following performance guarantees:
"n = 5kcAV log d bn
n = O
( ( 1
k</p>
      <p>+
d
&gt; 0.</p>
      <p>an
ann
1 ))
ed
;
;
where cAV = ( + K( )) is a constant,
Proof. Let us rst assume that we are under the condition that every Ci, i = 1; : : : ; k,
was successfully found by the algorithm AAV . Using inequality knan w0 w(D~n)
and Lemma 2 we have:</p>
      <p>P r {w(D~n) &gt; (1 + "n)w }
P r fw0 + w(C1) + ::: + w(Ck)</p>
      <p>kdan &gt; (1 + "n)w g
P r fw(C1) + ::: + w(Ck)</p>
      <p>kdan &gt; "nw g
P r fw(C1) + ::: + w(Ck)
kdan &gt; "nknang :
The last probability equals to zero since the inequality inside is always false due to the
de nition of "n and Lemma 3 under the assumption that every Ci, i = 1; : : : ; k, was
successfully found by the algorithm AAV .</p>
      <p>A probability that Ci was successfully found is 1 AV , it give us the following
expression for the value of the failure probability of the algorithm Ak:
Theorem 3. The algorithm Ak is asymptotically optimal if d ! 1 as n ! 1, d =
o(n) and</p>
      <p>bn=an = o(n= log n):
Proof. It follows from the Theorem 2.
2</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusion</title>
      <p>The problem of nding k minimum spanning trees with diameter bounded below was
studied. The polynomial algorithm was presented, its performance guarantees and
sufcient conditions of being asymptotically optimal were found for the case where edges
weights have independent uniform distribution on a segment [an; bn], bn &gt; an &gt; 0.
Further analysis of this problem on graphs with other distributions of edges weights,
for example a case when an = 0, is of a big interest.</p>
      <p>Acknowledgments. This research was supported by the Russian Foundation for Basic
Research (grants 15-01-00976 and 16-31-00389).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Angluin</surname>
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Valiant</surname>
            <given-names>L.G.</given-names>
          </string-name>
          :
          <article-title>Fast probabilistic algorithms for Hamiltonian circuits and matchings</article-title>
          .
          <source>Journal of Computer and System Sciences</source>
          , Vol
          <volume>18</volume>
          (
          <issue>2</issue>
          ),
          <volume>155</volume>
          {
          <fpage>193</fpage>
          (
          <year>1979</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Erdos</surname>
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Renyi</surname>
            <given-names>A</given-names>
          </string-name>
          .:
          <source>On random graphs I, Publ. Math. Debrecen</source>
          <volume>6</volume>
          ,
          <issue>290</issue>
          {
          <fpage>297</fpage>
          , (
          <year>1959</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Petrov</surname>
            <given-names>V.V.</given-names>
          </string-name>
          :
          <article-title>Limit Theorems of Probability Theory. Sequences of Independent Random Variables</article-title>
          . Clarendon Press, Oxford, 304 p., (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Roskind</surname>
            <given-names>J.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Tarjan R</surname>
          </string-name>
          . E.:
          <article-title>note on nding minimum-cost edge-disjoint spanning trees</article-title>
          .
          <source>Math. Oper. Res.</source>
          ,
          <volume>10</volume>
          (
          <year>1985</year>
          ),
          <volume>4</volume>
          ,
          <fpage>701</fpage>
          -
          <lpage>708</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Gimadi</surname>
            <given-names>E.Kh.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glebov</surname>
            <given-names>N.I.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Perepelitsa</surname>
            <given-names>V.A.</given-names>
          </string-name>
          :
          <article-title>Algorithms with Estimates for Discrete Optimization Problems</article-title>
          . Probl. Kibern., (
          <year>1975</year>
          ), no.
          <issue>31</issue>
          , pp.
          <fpage>35</fpage>
          -
          <lpage>42</lpage>
          (in Russian)
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Gimadi</surname>
            <given-names>E. Kh.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serdyukov</surname>
            <given-names>A. I.:</given-names>
          </string-name>
          <article-title>An algorithm for nding the minimum spanning tree with a diameter bounded from below</article-title>
          .
          <source>Diskretn. Anal. Issled</source>
          . Oper.,
          <source>Ser. 1</source>
          ,
          <issue>7</issue>
          (
          <issue>2</issue>
          ) (
          <year>2000</year>
          ),
          <fpage>3</fpage>
          -
          <lpage>11</lpage>
          (in Russian)
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Gimadi</surname>
            <given-names>E. Kh.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shin</surname>
            <given-names>E. Yu.</given-names>
          </string-name>
          :
          <article-title>Probabilistic analysis of an algorithm for the minimum spanning tree problem with diameter bounded below</article-title>
          .
          <source>Journal of Applied and Industrial Mathematics (October</source>
          <year>2015</year>
          ), Volume
          <volume>9</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>4</given-names>
          </string-name>
          ,
          <issue>480</issue>
          {
          <fpage>488</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>