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.

icon
Related questions
Question
100%

Please can you help answer these questions

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.
Transcribed Image Text: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.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer