Q.

A person wants to visit some places. He starts from a vertex and then wants to visit every vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex. What algorithm he should use?

A. bfs
B. dfs
C. prim\s
D. kruskal\s
Answer» B. dfs
1.6k
0
Do you find this helpful?
6

Discussion

No comments yet