Depth-First Search Using O(n) Bits

被引:25
作者
Asano, Tetsuo [1 ]
Izumi, Taisuke [2 ]
Kiyomi, Masashi [3 ]
Konagaya, Matsuo [1 ]
Ono, Hirotaka [4 ]
Otachi, Yota [1 ]
Schweitzer, Pascal [5 ]
Tarui, Jun [6 ]
Uehara, Ryuhei [1 ]
机构
[1] JAIST, Nomi, Japan
[2] Nagoya Inst Technol, Nagoya, Aichi, Japan
[3] Yokohama City Univ, Yokohama, Kanagawa 232, Japan
[4] Kyushu Univ, Fukuoka 812, Japan
[5] Rhein Westfal TH Aachen, Aachen, Germany
[6] Univ Electrocommun, Chofu, Tokyo 182, Japan
来源
ALGORITHMS AND COMPUTATION, ISAAC 2014 | 2014年 / 8889卷
关键词
ALGORITHM;
D O I
10.1007/978-3-319-13075-0_44
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We provide algorithms performing Depth-First Search (DFS) on a directed or undirected graph with n vertices and m edges using only O(n) bits. One algorithm uses O(n) bits and runs in O(mlog n) time. Another algorithm uses n+ o(n) bits and runs in polynomial time. Furthermore, we show that DFS on a directed acyclic graph can be done in space n/2(Omega(root log n)) and in polynomial time, and we also give a simple linear-time O(log n)-space algorithm for the depth-first traversal of an undirected tree. Finally, we also show that for a graph having an O(1)-size feedback set, DFS can be done in O(log n) space. Our algorithms are based on the analysis of properties of DFS and applications of the s-t connectivity algorithms due to Reingold and Barnes et al., both of which run in sublinear space.
引用
收藏
页码:553 / 564
页数:12
相关论文
共 17 条
[1]   A RANDOM NC-ALGORITHM FOR DEPTH 1ST SEARCH [J].
AGGARWAL, A ;
ANDERSON, RJ .
COMBINATORICA, 1988, 8 (01) :1-12
[2]   PARALLELISM AND THE MAXIMAL PATH PROBLEM [J].
ANDERSON, R ;
MAYR, EW .
INFORMATION PROCESSING LETTERS, 1987, 24 (02) :121-126
[3]  
Asano Tetsuo, 2013, Algorithms and Data Structures. 13th International Symposium, WADS 2013. Proceedings. LNCS 8037, P61, DOI 10.1007/978-3-642-40104-6_6
[4]  
Asano Tetsuo, 2013, Theory and Applications of Models of Computation. 10th International Conference, TAMC 2013. Proceedings, P32, DOI 10.1007/978-3-642-38236-9_4
[5]  
Asano T, 2014, LECT NOTES COMPUT SC, V8635, P45
[6]   A sublinear space, polynomial time algorithm for directed s-t connectivity [J].
Barnes, G ;
Buss, JF ;
Ruzzo, WL ;
Schieber, B .
SIAM JOURNAL ON COMPUTING, 1998, 27 (05) :1273-1282
[7]   Polynomially improved efficiency for fast parallel single-source lexicographic depth-first search, breadth-first search, and topological-first search [J].
de la Torre, P ;
Kruskal, CP .
THEORY OF COMPUTING SYSTEMS, 2001, 34 (04) :275-298
[8]   FAST PARALLEL ALGORITHMS FOR ALL-SOURCES LEXICOGRAPHIC SEARCH AND PATH-ALGEBRA PROBLEMS [J].
DELATORRE, P ;
KRUSKAL, CP .
JOURNAL OF ALGORITHMS, 1995, 19 (01) :1-24
[9]   Embedding and Canonizing Graphs of Bounded Genus in Logspace [J].
Elberfeld, Michael ;
Kawarabayashi, Ken-ichi .
STOC'14: PROCEEDINGS OF THE 46TH ANNUAL 2014 ACM SYMPOSIUM ON THEORY OF COMPUTING, 2014, :383-392
[10]   Logspace Versions of the Theorems of Bodlaender and Courcelle [J].
Elberfeld, Michael ;
Jakoby, Andreas ;
Tantau, Till .
2010 IEEE 51ST ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, 2010, :143-152