Javascript implementations of algorithms from Algorithms 4th Edition and Introduction to Algorithms 3rd Edition.
- not stable
- in place
- order of growth to running time: N^2
- extra space: 1
- is stable
- in place
- order of growth of running time: between N and N^2
- extra space: 1
- not stable
- in place
- order of growth of running time: N log N
- extra space: 1
- not stable
- in place
- order of growth of running time: N log N
- extra space: lg N
- not stable
- in place
- order of growth of running time: between N and N log N
- extra space: lg N
- is stable
- not in place
- order of growth of running time: N log N
- extra space: N
- not stable
- in place
- order of growth of running time: N log N
- extra space: 1
- stable
- in place
- order of growth of running time: between N and N ^ 2
- extra space: 1
A sorting method is stable if it preserves the relative order of equal keys in the array. For a stable sorting method - If shuffled cards are sorted by suits then the cards would maintain their shuffled order within their suit. For unstable, the cards would be sorted by suit, but within suits the shuffled order would be changed.