Graph
Breadth-First Search
Breadth-First Search is an algorithm for searching graph data structures. It starts at a specified source node and explores all its immediate neighbors before moving on to the next level of neighbors.
Iterative Depth-First Search
An iterative depth-first search algorithm using a stack, exploring as far along each branch as possible before backtracking, useful for pathfinding and cycle detection.
Recursive Depth-First Search
A recursive depth-first search algorithm that explores branches deeply before backtracking, managing traversal state with recursion.