Questa è la tua azienda?
When do we use BFS?
Anonimo
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.
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.