P1 Traversal Flashcards
1
Q
Application of breadth-first traversal
A
Finding shortest path between 2 points
2
Q
Application of depth first traversal
A
Problem solving such as navigating maze
3
Q
Depth first
A
Go as far down a path before backtracking
4
Q
Breadth first
A
Explore all neighbours of current vertex, then move onto neighbour vertices