Assignment Objectives

After completing this assignment the student should be able to,

  • Implement a Quicksort algorithm using recursion.
  • Implement a Merge Sort algorithm using recursion.

Assignment Requirements

For this assignment you are given the following Java source code files:

CSE205_Assignment05.java (This file is complete – you will make no changes to this file)
MyList.java (This file is complete – you will make no changes to this file)
MyIterator.java (This file is complete – you will make no changes to this file)
MyArrayList.java (This file is complete – you will make no changes to this file)
Sorts.java (you must complete this file)

The specifications for these files are given below.

Special requirements:

Sorts

  • You must implement a recursive Quicksort algorithm that will take a MyList as an argument. Your algorithm must sort the list in ascending order.
  • You must implement a recursive Merge Sort algorithm that will take a MyList as an argument. Your algorithm must sort the list in ascending order.
  • You may add any private static methods to the Sorts class that you wish to support your specific sort methods.
  • You may not alter the headers (modifiers, return type, name, argument list) of the mergesort or quicksort methods. You must implement the bodies of these methods.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.