Breadth-First Search (BFS)
Definition:
Breadth-First Search (BFS) is a graph traversal algorithm that explores vertices level by level. Starting from a source vertex, BFS explores all its direct neighbors before moving to the next level of neighbors. It is useful for traversing or searching graph data structures and can be applied to both directed and undirected graphs.
BFS Visualization
Loading visualizer...