Unformatted text preview: (d) What is the average case number of comparisons? Problem 3. What can you conclude from Problems (1) and (2)? Problem 4. Assume you want to sort a list of n numbers that are in k groups, so that the smallest n/k are ±rst, then the next smallest n/k are second, etc. (a) Give a decision tree based lower bound on the time to produce a single sorted list. (You could base a lower bound on the fact that there really are k independent sorting problems. Do NOT use this lower bound argument.) (b) Give an algorithm for sorting this list. How fast is the algorithm? (This is an upper bound.) (c) Compare your lower and upper bounds....
View
Full Document
 Fall '11
 Staff
 case number, Clyde Kruskal

Click to edit the document details