1. Show the distance (d) and predecessor (л) values that result from running breadth-first search on the undirected graph shown below, using vertex D as the source. A B C D E F G H 2. Using Figure 6.3 (included in the lecture slides) as a model, illustrate the operation of BUILD-MAX-HEAP on the array: A = {5, 3, 17, 15, 87, 18, 6, 24, 9}.

icon
Related questions
Question
1. Show the distance (d) and predecessor (л) values that result from running
breadth-first search on the undirected graph shown below, using vertex D
as the source.
A
B
C
D
E
F
G
H
2. Using Figure 6.3 (included in the lecture slides) as a model, illustrate the
operation of BUILD-MAX-HEAP on the array:
A = {5, 3, 17, 15, 87, 18, 6, 24, 9}.
Transcribed Image Text:1. Show the distance (d) and predecessor (л) values that result from running breadth-first search on the undirected graph shown below, using vertex D as the source. A B C D E F G H 2. Using Figure 6.3 (included in the lecture slides) as a model, illustrate the operation of BUILD-MAX-HEAP on the array: A = {5, 3, 17, 15, 87, 18, 6, 24, 9}.
Expert Solution
steps

Step by step

Solved in 2 steps with 6 images

Blurred answer