Depth First Search (DFS) – Interview Questions & Practice Problems
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. It starts at the root (selecting some arbitrary node as the root in the case of a graph) and explore as far as possible along each branch before backtracking.
Techie Delight