随机算法 (Fall 2011)/Graph Connectivity
USTCON stands for undirected - connectivity. It is the problem which asks whether there is a path from vertex to vertex in a given undirected graph . This problem is an abstraction of various search problems in graphs, and has theoretical significance in complexity theory.
The problem can be solved deterministically by traversing the graph , which takes extra space to keep track of which vertices have been visited, where . And the following theorem is implied by the upper bound on the cover time.
Theorem (Aleliunas-Karp-Lipton-Lovász-Rackoff 1979)
- USTCON can be solved by a polynomial time Monte Carlo randomized algorithm with bounded one-sided error, which uses extra space.
The algorithm is a random walk starting at . If the walk reaches in steps, then return "yes", otherwise return "no".
It is obvious that if and are disconnected, the random walk from can never reach , thus the algorithm always returns "no".
We know that for an undirected , the cover time is . So if and are connected, the expected time to reach from is . By Markov's inequality, the probability that it takes longer than steps to reach from is .
The random walk use bits to store the current position, and another bits to count the number of steps. So the total space used by the algorithm inaddition to the input is .
This shows that USTCON is in the complexity class RL (randomized log-space).
- Story in complexity theory
If the randomness is forbidden, it is known that USTCON can be solved nondeterministically in logarithmic space, thus USTCON is in NL. In fact USTCON is complete for the symmetric version of nondeterministic log-space. That is, every problem in the class of SL can be solved by USTCON via log-space reductions. Therefore, USTCONRL implies that SLRL.
In 2004, Reingold shows that USTCON can be solved deterministically in log-space, which proves SL=L. The deterministic algorithm for USTCON is by the derandomization of random walk.
It is conjectured that RL=L, but this is still open.