Docsity

Residual Graph - Advanced Data Structures and Algorithms - Quiz, Exercises of Data Structures and Algorithms

Partial preview of the text

Download Residual Graph - Advanced Data Structures and Algorithms - Quiz and more Exercises Data Structures and Algorithms in PDF only on Docsity!

CS 542 โ€“ Advanced Data Structures and Algorithms

Quiz 2

Jonathan Turner 2/9/

  1. (5 points) Draw the residual graph corresponding to the flow shown below. Identify a max capacity augmenting path for this flow.

s

a

c

b

d

e

t

cap,flow

  • 1 -
  1. (4 points) The top diagram below shows an instance of the min-cost, max-flow problem. Note that the pairs of numbers labeling the edges represent their capacity and cost. The bottom diagram is a residual graph for some flow. In this case, the numbers labeling the edges are the edge capacity in the residual graph. Is the flow for this residual graph a minimum cost flow? Why or why not? s a c b d e t

cap,cost (^) 2, 5, 2, 3,

s a c b d f t

residual graph 3 1 1 3

cap

  • 2 -