• Bookmarks

    Bookmarks

  • Concepts

    Concepts

  • Activity

    Activity

  • Courses

    Courses


Depth-First Traversal is a graph traversal algorithm that explores as far along a branch as possible before backtracking, making it useful for scenarios where you need to visit all nodes or paths in a graph. It can be implemented using a stack or recursion, and is particularly effective for solving problems like maze navigation, topological sorting, and finding connected components in a graph.
History Empty State Icon

Log in to see lessons

3