Assigned:
Thursday, January 26, 2012
Due:
Thursday, February 2, 2012
General Instructions
- Please review the
course information.
- You must write down with whom you worked on the assignment. If this
changes from problem to problem, then you should write down this
information separately with each problem.
- Numbered problems are all from the textbook Network Flows .
Problems
- Suppose that I have a collection of n items, which I place in single item sets. Each
set S has a counter cS, whose value is initially 0. I execute a series of UNION operations
on the sets, where UNION(S,T) creates a new set X which is the union of S and T. I set
cX by the following rule: if cS = cT then cX =
cS +1 ,otherwise cX = max(cS , cT ).
- Show that for any sequnce of UNION operations,for all sets S
cS <= lg n.
- Give a series of UNION operations for which cS is lg n (or
very close) for some set S.
- Suppose we have a graph G and the edge weights are not
necessarily unique. Prove that a graph has a unique minimum spanning
tree if, for every cut of the graph, there is a unique minimum weight
edge crossing the cut. Prove that the converse is not true.
- Problem 13.30. Most vital arc.
- Suppose I have a graph G with n nodes and 5n edges. For a spanning tree F, we define h(F) to be the number of F-heavy edges in G. Give upper and lower
bounds on h(F) in terms of n. Repeat the problem for a complete graph (with n(n-1)/2 edges)
-
- Prove that the recurrence relation
T(n,m) = T(n/8,m/2) + T(n/8,m/4) + O(n+m) has solution O(n+m).
- Let a,b,c,d be positive constants such that a+b < .99 and c+d < .99.
Prove that the recurrence relation
T(n,m) = T(an,cm) + T(bn,dm) + O(n+m) has solution O(n+m).
Switch to:
[email protected]