Breadth first search is a very common graph algorithm. Some of the applications of the algorithm includes :
shortest path in an unweighted graph
0-1 BFS
sorting the nodes in an increasing order of their distance from the starting node
In this video, we have discussed how to code up the algorithm in O(V+E) time using given an adjacency list representation of the graph.
#programming #coding #competitiveprogramming #datastructure
Follow us on Instagram
/ codebrownie
Sur cette page du site, vous pouvez voir la vidéo en ligne Coding up the BFS algorithm | O(V+E) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Brownie 10 avril 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 71 fois et il a aimé 3 téléspectateurs. Bon visionnage!