Data Structures and Algorithms
with Object-Oriented Design Patterns in Java
.
List the elements of
.
and
for the
directed graph
.
starting from vertex a.
are visited
by a breadth-first traversal that starts from vertex a.
Repeat this exercise for a breadth-first traversal
starting from vertex d.
and
for the
directed graph
.
are visited
by a topological order traversal that starts from vertex a. ![]()
How can we determine whether
is a total order?
.
Trace the execution of Dijkstra's algorithm
as it solves the single-source shortest path problem
starting from vertex a.
Give your answer in a form similar to Table
.
.
Trace the execution of Floyd's algorithm
as it solves the all-pairs shortest path problem.
.
Trace the execution of Prim's algorithm
as it finds the minimum-cost spanning tree
starting from vertex a.
using Kruskal's algorithm.
.
Copyright © 1998 by Bruno R. Preiss, P.Eng. All rights reserved.