DS-Algo-Zone icon indicating copy to clipboard operation
DS-Algo-Zone copied to clipboard

shortestpath

Open shubhamnag14 opened this issue 3 years ago • 0 comments

shortest path from one node to another node in an unweighted graph using breadth first search pitch the complexity of this algorithm: o(v+e) complexity of dijkstra algorithm: o(v^2) when unoptimized, or o(v + e log v) when optimized using priority queue. this algorithm is faster than the popular dijkstra algorithm, and is also far simpler, as it only uses a breadth first search in github

shubhamnag14 avatar Oct 01 '21 20:10 shubhamnag14