Graphs: when anything can connect to anythingLesson 2 of 11Free preview
Breadth first: the fewest hand-overs
A queue explores Dhaka ring by ring, so Motijheel is found in 2 hops from Mirpur-10. BFS costs O(V + E).
Graphs: when anything can connect to anythingLesson 2 of 11Free preview
A queue explores Dhaka ring by ring, so Motijheel is found in 2 hops from Mirpur-10. BFS costs O(V + E).