McMaster University
CAS 706
Assignment 1
Generic Quicksort. Write 4 different versions of
quicksort (in each language), which explicitly:
- Sort a list of integers in ascending order
- Sorts a list of ``anything'' which can be compared with <
- Sorts a list of ``anything'' via an externally provided
comparison function.
- Sorts a list of ``anything'' via an externally provided
comparison function, and an externally provided partition
function (which itself uses the comparison function).
Dec 2007