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:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | |
| BFS: | ||||||||
| DFS: |
From the Titas Gas Assistant Engineer (CSE) 2021 – Written (BUET) exam, question 3 of 7.