

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Due 9:30AM Wednesday, March 4 Name: Student ID: Instructions Follow instructions carefully, failure to do so will result in points being deducted. It is highly recommended that you write your homework using LATEX or Word. Staple this cover page to the front of your assignment for easier grading. Be sure to submit a hardcopy of your problem answers and your program analysis in class. Clearly label each problem and submit the answers in order. Put your program analysis to the end. In addition, submit your homework including the problem answers, all the program files and the program analysis via the webhandin (http://www.cse.unl.edu/~cse310/handin). Late homework policy specified in course syllabus will be strictly followed. Be sure to show sufficient work to justify your answer(s). Numerical and yes/no answers with no explanation will NOT be granted full points. If you are asked to prove something, you must give as formal, rigorous, and complete proof as possible. You are to work individually, and all work should be your own. The CSE academic dishonesty policy is in effect (http://cse.unl.edu/undergrads/academic integrity.php). Problem Page Points Score 2.4.9 77 10 3.3.2 112 10 3.3.4 112 10 4.2.9 135 10 4.3.6 139 10 Program Correctness 25 Style/Doc 10 Analysis 15 Total 100
The goal of this programming assignment is to implement QuickSort and several Partition algorithms using different criteria for choosing the pivot element. You will then establish testing parameters and empirically test each partition algorithm against each other. Specifically, you will implement the following pivot choice criteria:
QuickSort with | comps: 4332.5 | comps: xx | ... | comps: xx First-Element | swaps: 324.3 | swaps: xx | ... | swaps: xx Partition | time: xx | time: xx | ... | time: xx
QuickSort with | comps: 4332.5 | comps: xx | ... | comps: xx Median-of-Three | swaps: 324.3 | swaps: xx | ... | swaps: xx