Algorithms

Which statement correctly explains Depth-first search (DFS)?

Correct answer

D. A graph traversal algorithm that explores as far as possible along each branch before backtracking.

Explanation

Depth-first search (DFS) refers to a graph traversal algorithm that explores as far as possible along each branch before backtracking.