Homework 3

  • Assigned: Friday, September 16, 2011
  • Due: Friday, September 30, 2011
  • Required for Undergraduates: 4 of the following 6 problems 
  • Required for Graduate Students: 5 of the following 6 problems 
  • Points: 10 pts per problem
  • General Instructions: 
  1. Please review the homework and grading policy outlined in the course information and homework page.
  2. Mark your homework with your UNI, and use a separate page for each problem.
  3. On the first page of your solution write-up (with problem 1, whether or not you attempted it), you must make explicit which problems are to be graded for "regular credit", which problems are to be graded for "extra credit", and which problems you did not attempt. Please use a table something like the following

    Problem 01 02 03 04 05 06 07 08 09 ...
    Credit RC RC RC EC RC RC NA RC RC ...

    where "RC" is "regular credit", "EC" is "extra credit", and "NA" is "not attempted" (not applicable). Failure to do so will result in an arbitrary set of problems being graded for regular credit, no problems being graded for extra credit, and a five percent penalty assessment.

  4. You must also 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.
  5. Start early, be concise but rigorous, and enjoy!
  • Specific Instructions:
  1. Be sure to review any parts of Chapters 5, 7, 9 and 15 with which you are not familiar.
  2. All logs are base 2 unless otherwise specified.
  3. Unless otherwise specified, all problems and exercises are from CLRS, Introduction to Algorithms, 3rd edition.
  • Problems:   

Problems

  1. Exercise 5.4-1. 5.4-4. Birthday paradox variants.
  2. Problem 9.4. Randomized Selection Analysis
  3. Problem 9.2. Weighted median
  4. Problem 7-3. Alternative Quicksort Analysis.
  5. Exercise 15.3-5. Exercise 15.1-2. Rod Cutting.
  6. Problem 15-5. Edit Distance.