next up previous
Next: About this document ...


Applied Algorithms Anna Karlin, 426C Sieg
CSE 589, Autumn 2000
Final Exam
Due Monday, December 11, 10am








DIRECTIONS

1.
(4 points) Consider the stable marriage problem. Suppose that the preference list for boy i and girl i is the same and is $(i, (i+1)\bmod n,\ldots , (i+n-1)\bmod n)$.

2.
(2 points each) True or False:

3.
(2 points each part, unless otherwise specified) No explanations needed.

4.
(5 points) Find a maximum flow in the following flow network using the Edmonds-Karp augmenting path algorithm. Show the flow after each augmentation. The label on each edge is its capacity, and all edges are unidirectional (running from the left side of the page to the right side).
                
                      e
                   >    \
                  /      \
                3/        \4
                /          \
               /            >
     s ----> a ----> b ----> c ----> t
      \  4      2   >   5       8
       \           /
        \         /
        3\       /2
          \     /
           >   /
             f

5.
Consider the standard Knapsack problem: Given an integer K and a set of n different items, where the ith item has size s[i] (an integer), the problem is to determine if there is a subset of the items whose sizes sum to exactly K. We will consider two different variants on this problem here:



 
next up previous
Next: About this document ...
Anna Karlin
2000-12-08