scispace - formally typeset
Open AccessProceedings ArticleDOI

A parallel algorithm for computing minimum spanning trees

Donald B. Johnson, +1 more
- pp 363-372
Reads0
Chats0
TLDR
A simple and implementable algorithm that computes a minimum spanning tree of an undirected weighted graph G = (V;E) of n = jV j vertices andm = jEj edges on an EREW PRAM in O(log3=2n) time using n+m processors is presented.
Abstract
We present a simple and implementable algorithm that computes a minimum spanning tree of an undirected weighted graph G = (V;E) of n = jV j vertices andm = jEj edges on an EREW PRAM in O(log3=2n) time using n+m processors. This represents a substantial improvement in the running time over the previous results for this problem using at the same time the weakest of the PRAM models. It also implies the existence of algorithms having the same complexity bounds for the EREW PRAM, for connectivity, ear decomposition, biconnectivity, strong orientation, st-numbering and Euler tours problems.

read more

Content maybe subject to copyright    Report

AParallel Algorithm for Computing Minimum
Spanning Trees
Donald B. Johnson
Panagiotis Metaxas
y
Dartmouth College
z
Wellesley College
x
Email address: djohnson@dartmouth.edu, telephone: (603) 646-3385
y
Part of this work was done while this author was with the Mathematics and Computer Science
department, Dartmouth College. Email address: pmetaxas@wellesley.edu, telephone: (617) 283-
3054
z
6211 Sudiko Lab oratory for Computer Science, Hanover, NH 03755
x
Department of Computer Science, Wellesley, MA 02181-8289
1

Running Head:
Parallel Minimum Spanning Tree Algorithm.
Keywords:
Parallel Algorithms, Graph Algorithms, Minimum Spanning Tree,
EREW PRAM model.
Corresp onding Address:
Panagiotis T. Metaxas, Department of Computer
Science, Wellesley College, Wellesley, MA 02181-8289.
2

Abstract
We present a simple and implementable algorithm that computes a min-
imum spanning tree of an undirected weighted graph
G
=(
V E
)of
n
=
j
V
j
vertices and
m
=
j
E
j
edges on an EREW PRAM in
O
(log
3
=
2
n
) time using
n
+
m
processors. This represents a substantial improvement in the running time over
the previous results for this problem using at the same time the weakest of the
PRAM models. It also implies the existence of algorithms having the same
complexity bounds for the EREW PRAM, for connectivity, ear decomp osition,
biconnectivity, strong orientation,
st
-numb ering and Euler tours problems.
3

List of Symbols
O
() Capital Oh, slanted (math)
O Capital Oh
0 zero
l ell
1 one
o
() Lowercase oh, slanted (math)
o lowercase oh
greek alpha
4

1 Intro duction
This pap er describes a new parallel algorithm for computing the minimum spanning
tree (MST) of a graph in the EREW PRAM model of parallel computation, the
weakest of the PRAM mo dels. This algorithm is faster by a factor of
q
log
j
V
j
than
any deterministic algorithm previously known for any model that do es not make
use of concurrent writing. The algorithm uses the growth-control scheduling of the
connectivity algorithm describ ed in JM91] it also makes use of an observation by
GGS89].
A ma jor innovation is our discovery that necessary information ab out comp o-
nents can be extracted without ever explicitly shrinking the comp onents. Comp onent
shrinking is a feature of every other parallel MST and connectivity algorithm known
to us.
Two of our ob jectives while designing the algorithm were simplicityand im-
plementability, that is, to be able to implement the algorithm using simple, well-
understoo d routines (like sorting and list ranking) that are likely to be found on most
parallel machines. We feel that wehave succeeded in b oth. In fact, the complexity
of our solution is in the proof | not in the algorithm itself.
Even though the connectivity algorithm of JM91] improved the running time of
several other graph-theoretic problems it seemed that there was no obvious wayto
create a MST algorithm from the connectivity algorithm having comparable complex-
ity with the latter. The diculty, of course, is that the selection of minimum weight
edges from edge-lists seems to require either a p owerful concurrent-write model of
computation or some other minimization process, which thereby takes time logarith-
mic in the length of the list. A connectivity algorithm mayselectany edge, not
the one with minimum weight, and that makes the selection simpler. Thus, a new
approachwas needed to achievean
o
(log
2
j
V
j
) running time for this problem. As
we will explain, we maintain a subset of edges that contains all the edges that must
be considered in any one phase of the algorithm in order to control the number of
candidates that must b e tested. Maintaining this subset is essential to the bound on
the running time.
Our results.
We present an algorithm that computes a minimum spanning tree
(MST) of an undirected weighted graph
G
=(
V E
)of
n
=
j
V
j
vertices and
m
=
j
E
j
edges on an EREW PRAM in
O
(log
3
=
2
n
) time using
n
+
m
processors. (If
G
is not
connected, our algorithm nds a minimum spanning tree for each connected com-
ponent.) This represents a substantial improvement in the running time over the
previous results for this problem using at the same time the weakest of the PRAM
models. It also implies the existence of a connectivity algorithm with the same com-
plexity b ounds for the EREW PRAM, therefore improving on previous work JM91].
Furthermore, we note that the numb er of pro cessors used can b e reduced by a factor
5

Citations
More filters
Journal ArticleDOI

Minimum cuts in near-linear time

TL;DR: A "semiduality" between minimum cuts and maximum spanning tree packings combined with the previously developed random sampling techniques is used and known time bounds for solving the minimum cut problem on undirected graphs are significantly improved.
Posted Content

Minimum Cuts in Near-Linear Time

TL;DR: In this article, the minimum cut problem on undirected graphs was solved in O(m log 2 log n) time using a semi-duality between minimum cuts and maximum spanning tree packings.
Journal ArticleDOI

A Resource Allocation Algorithm for Multivehicle Systems With Nonholonomic Constraints

TL;DR: This paper addresses the constraint that captures the inability of a fixed wing aircraft to turn at any arbitrary yaw rate and gives an algorithm to solve this problem by combining ideas from the traveling salesman problem and the path planning literature.
Proceedings ArticleDOI

Improved algorithms and data structures for solving graph problems in external memory

TL;DR: This paper presents I/O-efficient analogues of well-known data structures that are shown to be useful for obtaining simpler and improved algorithms for several graph problems.
Journal ArticleDOI

A fast, parallel spanning tree algorithm for symmetric multiprocessors (SMPs)

TL;DR: A new randomized algorithm and implementation with superior performance that for the first time achieves parallel speedup on arbitrary graphs (both regular and irregular topologies) when compared with the best sequential implementation for finding a spanning tree.
References
More filters
Journal ArticleDOI

Shortest connection networks and some generalizations

TL;DR: In this paper, the basic problem of interconnecting a given set of terminals with a shortest possible network of direct links is considered, and a set of simple and practical procedures are given for solving this problem both graphically and computationally.
Book

Data Structures and Network Algorithms

TL;DR: This paper presents a meta-trees tree model that automates the very labor-intensive and therefore time-heavy and therefore expensive process of manually selecting trees to grow in a graph.
Journal ArticleDOI

Parallel merge sort

TL;DR: A parallel implementation of merge sort on a CREW PRAM that uses n processors and O(logn) time; the constant in the running time is small.
Book ChapterDOI

Parallel algorithms for shared-memory machines

TL;DR: In this paper, the authors discuss parallel algorithms for shared-memory machines and discuss the theoretical foundations of parallel algorithms and parallel architectures, and present a theoretical analysis of the appropriate logical organization of a massively parallel computer.
Journal ArticleDOI

An O(logn) parallel connectivity algorithm

TL;DR: It is conjectured that the barrier of O(log n) cannot be surpassed by any polynomial number of processors and that this performance cannot be achieved in the weaker model.
Related Papers (5)
Frequently Asked Questions (10)
Q1. What are the contributions mentioned in the paper "A parallel algorithm for computing minimum spanning trees" ?

The authors present a simple and implementable algorithm that computes a min imum spanning tree of an undirected weighted graph G V E of n jV j vertices andm jEj edges on an EREW PRAM in O log n time using n m processors 

To compute B list v for each v in parallel the authors may use a selection algorithm Col a Vis CY Using the algorithm by Cole Col a the authors can select the B st least weight element b in time O log n using almost n log n EREW PRAM processors 

The E C list created by removing the edges unlabeled in the picture from the B lists Running list rank on E C the authors can enumerate and identify the components all but x that formed C Before starting a new sub phase B C is formed by including the B counterC s least weight outgoing useful edges 

Then the copy of the edge used for hooking by component Ci is assigned value counterCi s and the remaining edges are assigned value Using pointer jumping on ptr for dlogBe steps over the edges the authors can compact each B list if the new component contains up to B s edges 

The authors note that any plugging that is prevented by this condition is deferred until the end of the phase so it is not lost Step of procedure phase will take care of thatUsing the plugged B lists the authors try to enumerate components of trees into counterr C s where r C is the root of the newly created component C 

It also implies the existence of a connectivity algorithm with the same complexity bounds for the EREW PRAM therefore improving on previous work JM Furthermore the number of processors used can be reduced by a factor ofO p log n provided that there exists an practical integer sorting subroutine whichruns in O log n time using n p log n EREW PRAM processors 

Other parallel algorithms are reported in KRS KR Ben SJ Recently CL have improved the running time of JM to O log n log log n mainly by providing a recursive version of the growth control schedule 

Met to perform the augmentation of r s edge list in constant time and without memory access con icts Finally housekeeping is performed on the merged edge list to remove internal and multiple edges 

As the authors will explain the authors maintain a subset of edges that contains all the edges that must be considered in any one phase of the algorithm in order to control the number of candidates that must be tested Maintaining this subset is essential to the bound on the running time 

The authors note that among the problems having running times depending on the connectivity algorithm are ear decomposition MR biconnectivity TV strong orientation Vis st numbering MSV and Euler tours AV Computing the MST of a weighted graph has attracted much attention in both the sequential and parallel settings