quickSort(List aList) { if (size>1) { select a pivot and split aList into head and tail (where everything in head is < pivot...) with the pivot in between quickSort(head) quickSort(tail) } }Indices:
mergeSort(List aList) { if (size>1) { split aList roughly in half creating head and tail mergeSort(head) mergeSort(tail) merge head and tail } }