Follow alphabetical ordering while considering the order of nodes traversed. Write the BFS and DFS traversal orders for the undirected graph below…

Follow alphabetical ordering while considering the order of nodes traversed.

Write the BFS and DFS traversal orders for the undirected graph below:

12345678
BFS:
DFS:

From the Titas Gas Assistant Engineer (CSE) 2021 – Written (BUET) exam, question 3 of 7.

More from this paper