next up previous
Next: About this document

In accordance with my instructions, I have given birth to twins in the enclosed envelope.

  1. For each pair of functions, determine which are O() of the other, and which are tex2html_wrap_inline28 of the other (if any).

    1. tex2html_wrap_inline30 and tex2html_wrap_inline32
    2. tex2html_wrap_inline34 and tex2html_wrap_inline36
    3. tex2html_wrap_inline38 and tex2html_wrap_inline40
    4. tex2html_wrap_inline42 and tex2html_wrap_inline44
  2. Professor Truckon claims to have developed a new data structure based on key comparisons that performs insert and delete in time tex2html_wrap_inline46 , decrease-key in time tex2html_wrap_inline48 , and delete-min and min in O(1). Why isn't the professor getting the best performance possible out of the data structure?
  3. Professor Truckon claims to have developed a new data structure based on key comparisons that performs insert, decrease-key, and delete in time tex2html_wrap_inline52 , delete-min in time tex2html_wrap_inline46 and min in tex2html_wrap_inline48 . Why doesn't the professor have a good research result?
  4. Professor Truckon claims to have developed a new data structure based on key comparisons that performs decrease-key and delete in time tex2html_wrap_inline46 , insert in time tex2html_wrap_inline48 , and delete-min and min in tex2html_wrap_inline62 . Why does the professor's claim appear incorrect?
  5. Write a recurrence for binary search.
  6. Derive the recurrence for the average behavior of quicksort, that is, tex2html_wrap_inline64 You may use facts about the best case of quicksort and the distribution of sizes created by partition, but state the facts clearly.
  7. Solve the recurrence tex2html_wrap_inline66 .
  8. Prove that makeheap takes O(n) time. You may assume that Heapify takes logarithmic time.
  9. Suppose your computer environment supports a sort of 4 elements in a single step. Prove that the tex2html_wrap_inline70 lower bound on comparison sorts is still valid in this environment.
  10. Consider input of 3 arrays of n elements each. Each array is sorted. Find the best bounds you can on the number of comparisons required to merge these into one sorted list.




next up previous
Next: About this document

Kamal Jain
Mon Jul 20 16:00:39 EDT 1998