Question: 3. Perform a DFS for the following 2 graphs. Include 3 kinds of outputs in your answers: the visiting order of the vertices, the returning


3. Perform a DFS for the following 2 graphs. Include 3 kinds of outputs in your answers: the visiting order of the vertices, the returning order of the vertices, and the tree edges. Note that the first graph is undirected and the second graph is directed. b b d h g d 4. Perform a BFS for the following undirected graph. Include 2 kinds of outputs in your answers: the visiting order of the vertices, and the tree edges. a b d h g g f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
