Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hello, just want to make sure that I did the following two question correctly. T

ID: 3729791 • Letter: H

Question

Hello, just want to make sure that I did the following two question correctly. The first question is the following:

Perform a depth-first search on the following graph; whenever there's a choice of vertices, pick the one that is alphabetically first. Classify each edge as a tree edge or back edge, and give the pre and post number of each vertex.

My answer is (sorry for the big pic):

Second question: Perform depth-first search on the following graph; whenever there's a choice of vertices, pick the one that is alphabetically first. Classify each edge as a tree edge, forward edge, back edge, or cross edge, and give the pre and post number of each vertex.

Answer:

Explanation / Answer

Second Answer looks right.

In first Answer After D it should traverse to E as E is alphabatically first when compared to G.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote