Est-ce votre entreprise ?
When do we use BFS?
Utilisateur anonyme
We use BFS to find the shortest path in an unweighted graph. It's useful when the graph is not too deep.
Bfs is done to find the shortest path in any graph. Also we can do bfs to find all possible paths. Bfs or dfs both can be used here.
Tenez-vous au courant des dernières opportunités et profitez de conseils d’initiés en suivant les entreprises de vos rêves.
Obtenez des recommandations et des mises à jour personnalisées en démarrant vos recherches.