Breadth first search

Posted on April 10, 2015

Analysis and Correctness

The following lemmas can be used to prove the correctness, here the graph \(G=(V,E)\) can be directed or un-directed. By \(\delta(u,v)\), we denote the length of the shortest path from \(u\) to \(v\), if it exists and if such a path doesn’t exists, then it is \(\infty\).

Breadth-first trees

Notes