Question: 1 2 4 5 7 9 8 6 11 12 List the order in which nodes are visited in the tree in the figure (above)


1 2 4 5 7 9 8 6 11 12 List the order in which nodes are visited in the tree in the figure (above) for each of the following two search strategies (choosing leftmost branches first in all cases): State your answer in the blank as follows: node\#,node\# ..etc. for example: 2,5,3,4,6,11 etc. 1- (Depth first Search) DFS A. 2- Breadth first Search (BFS)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
