3. Show how depth-first search works on the following graph. Assume that the DFS procedure considers the vertices in alphabetical order, and assume that each adjacency list is ordered alphabetically. Show the discovery and finishing times for each vertex. Also, show the classification of each edge. V W u 4. Illustrate the operation of PARTITION on the array: A {9, 19, 13, 5, 12, 8, 7, 4, 21, 6, 11}. Let A[1]=9 be the pivot value and use Unit 5 lecture slides (51 through 62) as a model.
3. Show how depth-first search works on the following graph. Assume that the DFS procedure considers the vertices in alphabetical order, and assume that each adjacency list is ordered alphabetically. Show the discovery and finishing times for each vertex. Also, show the classification of each edge. V W u 4. Illustrate the operation of PARTITION on the array: A {9, 19, 13, 5, 12, 8, 7, 4, 21, 6, 11}. Let A[1]=9 be the pivot value and use Unit 5 lecture slides (51 through 62) as a model.
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps