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 条
[21]  
KARLOFF HJ, 1988, INFORM PROCESS LETT, V28, P241, DOI 10.1016/0020-0190(88)90197-4
[22]  
KRIEGEL K, 1986, LECT NOTES COMPUT SC, V233, P484, DOI 10.1007/BFb0016274
[23]   SYMMETRIC SPACE-BOUNDED COMPUTATION [J].
LEWIS, HR ;
PAPADIMITRIOU, CH .
THEORETICAL COMPUTER SCIENCE, 1982, 19 (02) :161-187
[24]  
Nisan N., 1992, Proceedings 33rd Annual Symposium on Foundations of Computer Science (Cat. No.92CH3188-0), P24, DOI 10.1109/SFCS.1992.267822
[25]  
NISAN N, 1990, 22ND P ANN ACM S THE, P204
[26]  
NISAN N., 1994, COMPUT COMPLEX, V4, P1, DOI DOI 10.1007/BF01205052
[27]  
PIPPENGER NJ, 1980, P 5 IBM S MATH F COM
[28]  
Savitch Walter J., 1970, Journal of Computer and System Sciences, V4, P177, DOI [10.1016/S0022-0000(70)80006-X, DOI 10.1016/S0022-0000(70)80006-X]
[29]   EFFICIENCY OF A GOOD BUT NOT LINEAR SET UNION ALGORITHM [J].
TARJAN, RE .
JOURNAL OF THE ACM, 1975, 22 (02) :215-225