

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!


Homework III: Turn in the solutions to problems 4 and 12 on May 23rd, 2000 in class. No late or early submissions.
a Given an undirected graph G = V ; E and two distinguished nodes, s and t, describe an algorithm that finds a maximum-sized set of edge-disjoint paths from s to t. (We say that two paths are edg e disj oint if they donโt share a common edge, even though they are allowed to go through the same vertex.) Give a time analysis for your algorithm in terms of jV j and jE j. b Given a solution to (a), suppose we add one more edge to the graph. Give an efficient algorithm for updating the solution. Give a time analysis for your algorithm in terms of jV j and jE j. (Your algorithm should be significantly faster than redoing the entire problem from scratch.)
Problem You need to solve all pairs longest paths ( i.e. total delays) for a VLSI application. The input graphs are D AGs where each node has in-degree at most 2. The edge lengths are all either 1 or
Problem A city currently has only two-way streets in its downtown. It wants to make all of the streets one-way, while keeping any location reachable from any other location. Formally, an instance of the problem is an undirected graph. A solution is a directed graph where each edge in the undirected graph appears in exactly one direction. The constraint is that the solution must be strongly connected. Give the most efficient algorithm you can for the problem of finding a solution that is strongly connected or showing that it is impossible.
Problem Leg G be an n-node directed graph whose edges are labelled either -1 or 1. A path e 1 ; : : : et in G is al w ay snon-neg ativ e if the sum of the weights of e 1 up to ei is non-negative for all 1 i t. A source s and a destination s^0 are given as inputs. Give an algorithm to decide whether there is an always non-negative path from s to s^0.
Problem Let T be a rooted binary tree whose edges are given positive real weights, representing messag edel ay times. For a node x 2 T , define the br oadcasttime for x to be the maximum over y 2 T of the weighted distance in T between x and y. (In other words, the broadcast time is the time before a message originatin at x is received by every other processor y .) Give an efficient algorithm to compute all the broadcast times for nodes in T simultaneously.