Undirected S-T connectivity in polynomial time and sublinear space

被引:8
作者
Barnes, G [1 ]
Ruzzo, WL [1 ]
机构
[1] UNIV TORONTO, DEPT COMP SCI, TORONTO, ON M5S 1A1, CANADA
关键词
undirected connectivity; time-space tradeoff;
D O I
10.1007/BF01202039
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The s-t connectivity problem for undirected graphs is to decide whether two designated vertices, s and t, are in the same connected component. This paper presents the first known deterministic algorithms solving undirected s-t connectivity using sublinear space and polynomial time. Our algorithms provide a nearly smooth time-space tradeoff between depth-first search and Savitch's algorithm. For n vertex, m edge graphs, the simplest of our algorithms uses space O(s), n(1/2)log(2)n less than or equal to s less than or equal to nlog(2)n, and time O(((m + n)n(2)log(2)n)/s). We give a variant of this method that is faster at the higher end of the space spectrum. For example, with space Theta(n log n), its time bound is O((m + n) log n), close to the optimal time for the problem. Another generalization uses less space, but more time: space O(lambda n(1/lambda) log n), for 2 less than or equal to lambda less than or equal to log(2) n, and time n(O(lambda)). For constant lambda the time remains polynomial.
引用
收藏
页码:1 / 28
页数:28
相关论文
共 31 条
[1]  
Aleliunas R., 1979, 20th Annual Symposium of Foundations of Computer Science, P218, DOI 10.1109/SFCS.1979.34
[2]   UNIVERSAL SEQUENCES FOR COMPLETE GRAPHS [J].
ALON, N ;
AZAR, Y ;
RAVID, Y .
DISCRETE APPLIED MATHEMATICS, 1990, 27 (1-2) :25-28
[3]  
[Anonymous], 1973, SORTING SEARCHING
[4]   MULTIPARTY PROTOCOLS, PSEUDORANDOM GENERATORS FOR LOGSPACE, AND TIME-SPACE TRADE-OFFS [J].
BABAI, L ;
NISAN, N ;
SZEGEDY, M .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1992, 45 (02) :204-232
[5]   Short random walks on graphs [J].
Barnes, G ;
Feige, U .
SIAM JOURNAL ON DISCRETE MATHEMATICS, 1996, 9 (01) :19-28
[6]  
BARNES G, 1992, STRUCT COMPL TH CONF, P27, DOI 10.1109/SCT.1992.215378
[7]  
BARNES G, IN PRESS SIAM J COMP
[8]   BOUNDS ON UNIVERSAL SEQUENCES [J].
BARNOY, A ;
BORODIN, A ;
KARCHMER, M ;
LINIAL, N ;
WERMAN, M .
SIAM JOURNAL ON COMPUTING, 1989, 18 (02) :268-277
[9]  
BEAME PW, 1993, 930201 U WASH DEP CO
[10]   CORRECTION [J].
BORODIN, A .
SIAM JOURNAL ON COMPUTING, 1989, 18 (06) :1283-1283