
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

ECS 122A: Algorithm Design and Analysis Handout ?? UC Davis — Charles Martel Feb. 4, 2008
(15) Problem 1. For our the Successive Shortest A-path algorithm for ordinary network flow we used distance labels that were estimates of the shortest distance (in number of edges) to t. Prove that always have d(v) ≤ true shortest distance from v to t in Gf (in particular, that this is maintained when we relabel and when we augment).
(15) Problem 2. Tripartite graph: V= s, L, M, R,t tripartite, all arcs are s to L, L to M, M to R, or R to t. Suppose |L| = |R| = k and |M | = k^2. Assume a sparse bipartite graph between L,M and between M,R (only O(k^2 ) edges, so the total number of edges has m = O(k^2 ) A simple bound using the successive shortest path algorithm would give an O(mn^2 ) = O(k^6 ). Describe how to significantly improve the worst case run-time to find a max-flow in this network. Now consider a the case where all arcs have unit capacity. This improves the successive shortest path algorithm’s run time to O(mn) = O(k^4 ). Give a much better algorithm/run time to solve the unit capacity case.
(15) Problem 3. Given a directed graph G , a target integer k, and a start node s and destination node d, we want to find k vertex disjoint paths from s to d. In addition, we want the total number of edges on these k paths to be as small as possible (e.g. if k = 2 and there are two solutions, one with paths of length 4 and 8 and another with lengths 5 and 6, we prefer the 5,6 solution (with total length 11). Given an efficient algorithm to solve this, justify that your approach solves the problem, and give its running time.
(15) Problem 4. Entrepreneur’s problem. An entrepreneur faces the following problem. In each of T periods, he can buy, sell, or hold for later sale some commodity, subject to the following constraints. In each period i he can buy at most αi units of the commodity, can holdover at most βi units of the commodity for the next period, and must sell at least γi units. Assuming that pi, wi, and si denote the purchase cost, inventory carrying cost, and selling price per unit in period i, what buy-sell policy should the entrepreneur adopt to maximize total profit in the T periods? Formulate this problem as a minimum cost flow problem for T = 4. (Assume start with no commodities so no requirement to sell any in the first period).