This preview shows page 1. Sign up to view the full content.
Unformatted text preview: in a set of real numbers. (See the text for the deFniton of an inversion.) The target time bound is O ( n log n ) for n reals. 5. Let G be a connected, undirected, edgeweighted graph. Prove that G has a unique MST if all the edge weights are distinct. Note: One way to prove this is to observe how Kruskals algorithm would operate on this graph. A more instructive way is to prove this result nonalgorithmically, by using the notion of a cut. 6. Assume that you are given a set P = { p 1 < p 2 < < p n } of points on the real line; the distance between consecutive points can be arbitrary. We would like to determine the smallest number of closed intervals, each of length 1, to place on the real line so that each point of P is contained in some interval. Describe briey a greedy algorithm for this problem and prove it correct via the twostep method. A clear, wellarticulated proof is expected....
View
Full
Document
This note was uploaded on 01/28/2012 for the course CSCI 5421 taught by Professor Sturtivant,c during the Fall '08 term at Minnesota.
 Fall '08
 Sturtivant,C
 Algorithms, Data Structures

Click to edit the document details