Tuesday 1 April 2014

General Sorting Stuff

Best case Average Case Worst Case
Quick Sort O(n log(n)) O(n log(n)) O(n²)
Merge Sort O(n log(n)) O(n log(n)) O(n log(n))
Insertion Sort O(n) O(n²) O(n²)
Selection Sort O(n²) O(n²) O(n²)
Bubble Sort O(n) O(n²) O(n²)



Quick 'n easy bits o' code  <- Quick explanation of some sorting algorithms


No comments:

Post a Comment