Up: Depth-first search (DFS) [Top][Contents]
The space and time complexity of DFS is
\[\mathcal{O}(bm) \qand \mathcal{O}(b^m) \]
respectively,