InterviewSolution
Saved Bookmarks
| 1. |
Choose the incorrect statement about DFS and BFS from the following?(a) BFS is equivalent to level order traversal in trees(b) DFS is equivalent to post order traversal in trees(c) DFS and BFS code has the same time complexity(d) BFS is implemented using queueThis question was posed to me in final exam.Query is from Non-recursive Depth First Search in chapter Graph Search of Data Structures & Algorithms II |
|
Answer» The correct ANSWER is (b) DFS is equivalent to post order traversal in trees |
|