A FAST RANDOMIZED LOGSPACE ALGORITHM FOR GRAPH CONNECTIVITY

Authors
Citation
U. Feige, A FAST RANDOMIZED LOGSPACE ALGORITHM FOR GRAPH CONNECTIVITY, Theoretical computer science, 169(2), 1996, pp. 147-160
Citations number
14
Categorie Soggetti
Computer Sciences","Computer Science Theory & Methods
ISSN journal
03043975
Volume
169
Issue
2
Year of publication
1996
Pages
147 - 160
Database
ISI
SICI code
0304-3975(1996)169:2<147:AFRLAF>2.0.ZU;2-9
Abstract
We study the relationship between undirected graph reachability and gr aph connectivity, in the context of randomized LOGSPACE algorithms. Al eluinas et al. [2] show that graph reachability (checking whether ther e is a path connecting vertices L and F) can be decided in logarithmic space and polynomial time, by starting a random walk at L, and checki ng whether F is hit within some time limit. The randomized algorithm h as one-sided error (with small probability, it fails to determine that L and F are connected). The reachability algorithm may be used in ord er to decide (with one-sided error) whether a graph is connected, by r unning it n - 1 times, each time with a different target vertex F. Thi s increases the running time by a factor of n. In this paper we give a n alternative randomized LOGSPACE algorithm for graph connectivity. It s running time varies between O(n(2)) steps and O(n(3)) steps, dependi ng on the structure of the input graph. This matches the fastest known RLOGSPACE algorithm for reachability, up to a constant factor. Our al gorithm has two-sided error.