- BFS (breadth-first search) BFS:
- The shortest path algorithm to solve the problem is called breadth-first search.
- You can answer two types of questions:
- From there a path to a node node b do
- Starting that path shortest travel from node a node b
- Run time O (V + E) V is the number of vertices, E is the number of edges