Comparison sorts
Problems
- Sorting
Put the items of a sequence in non-decreasing order by a key.
intro
Algorithms
- Insertion sort
Sort an array one item at a time. Take the next item and move it left until the item before it is not larger.
10 languagesvisualintro - Merge sort
Sort an array by divide and conquer. Sort each half, then merge the two sorted halves into one sorted array.
10 languagesvisualintro