McMaster University
CAS 706

Assignment 1

Generic Quicksort. Write 3 different versions of quicksort (in each language), which explicitly:
  1. Sort a list of integers in ascending order
  2. Sorts a list of ``anything'' via an externally provided comparison function.
  3. Sorts a list of ``anything'' via an externally provided comparison function, and an externally provided partition function (which itself uses the comparison function).


  4. Sept. 2011