Give an example of a directed graph with capacities, and two
vertices s, t, where there...
Give an example of a directed graph with capacities, and two
vertices s, t, where there are 2 distinct cuts which are both
minimum.
Given the following adjacency lists (with edge weights in
parentheses) for a directed graph:
A: B(5),...
Given the following adjacency lists (with edge weights in
parentheses) for a directed graph:
A: B(5), C(3), D(1)
B: C(1), D(3)
C: B(3), D(7), E(1)
D: A(6), C(3)
E: F(5)
F: D(3), A(4)
Execute Dijkstra’s shortest-path algorithm by hand on this
graph, showing how the data structures evolve, with A as the
starting vertex. Clearly indicate which edges become part of the
shortest path and in which order.
Below is a list of edges in a directed graph with nodes
A,B,C,D,E,F:
B → E,...
Below is a list of edges in a directed graph with nodes
A,B,C,D,E,F:
B → E, B → F, C → D, D → A, E → F
a) Find 5 topological sortings of the graph.
b) Which edge must be removed in order to make ABCDEF to be a
topological ordering?
Given a directed acyclic graph G= (V,E), vertex s∈V, design a
dynamic programming algorithm to compute...
Given a directed acyclic graph G= (V,E), vertex s∈V, design a
dynamic programming algorithm to compute the number of distinct
paths from s to v for any v∈V.
1. Define subproblems
2. Write recursion
3. Give the pseudo-code
4. Analyze the running time.
Show that the relation
R={(1,1),(1,4),(2,2),(2,3),(3,3),(3,2),(4,1),(4,4)} is an
equivalence relation and contrust the associated directed
graph.
Show that the relation
R={(1,1),(1,4),(2,2),(2,3),(3,3),(3,2),(4,1),(4,4)} is an
equivalence relation and contrust the associated directed
graph.