2. Get Path #

Created Tuesday 31 March 2020

Given A and B nodes. Return the path from A to B, if it exists.

Two paths are possible:

  1. DFS Path

  2. BFS Path

  3. DFS - quite simple, just return a vector of the paths traversed.

  4. BFS - returns the shortest path - Shortest path proof - property of BFS. Just make a diagram.

T.C same as BFS S.C same as BFS (2n)