Depth-First-Search (DFS) has a quasilinear (i.e.,$\widetilde{O}(m+n)$) time algorithm in random access model (RAM). I am curious about whether DFS still admits a $\widetilde{O}(m+n)$ time algorithm in multitape Turing machine model.
-
$\begingroup$ For the "linear" part, I guess no, since you need an extra-factor $O(\log n)$ to read the node IDs. $\endgroup$– LamineJul 23, 2019 at 15:18
-
$\begingroup$ I don't care about the log factor. Quasilinear (i.e., $\widetilde{O}(m+n)$) time algorithm will be OK. $\endgroup$– QianJul 24, 2019 at 14:44
-
1$\begingroup$ You don't care about in your new edited question. The previous one, which I commented, asked for "a linear or quasilinear" algorithm. $\endgroup$– LamineJul 24, 2019 at 15:04