which of the following about breadth first search and depth first search are correct?
Answers
Answered by
5
BFS(Breadth First Search) uses Queue data structure for finding the shortest path. DFS(Depth First Search) uses Stack data structure. 3. BFS can be used to find single source shortest path in an unweighted graph, because in BFS, we reach a vertex with minimum number of edges from a source vertex.
Answered by
0
The correct answer is explained below:
Explanation:
- BFS stands for Breadth First Search.
- It utilizes Queue data structure for finding the shortest path.
- DFS stands for Depth First Search.
- It utilizes Stack data structure to compute single source shortest path in an unweighted graph.
- It is because of BFS, we reach a vertex with minimum number of edges from a source vertex.
Similar questions
Social Sciences,
1 month ago
English,
1 month ago
Psychology,
2 months ago
Chemistry,
2 months ago
Chemistry,
9 months ago