Wiktionary
depth-first search
n. an algorithm for traverse a tree or graph where one starts at the root nad explores as far as possible along each branch before backtracking
Wikipedia
Depth-first search
Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some arbitrary node as the root in the case of a graph) and explores as far as possible along each branch before backtracking.
A version of depth-first search was investigated in the 19th century by French mathematician Charles Pierre Trémaux as a strategy for solving mazes.