Insertion Sort
Algorithm
For every element in the list, pick the element and place it at its corresponding position, either before or after the previous element.
Performance
Worst case:
comparisons and swaps
Best case:
comparisons,
swaps
Average case:
comparisons and swaps
Space complexity:
total or
auxiliary
Implementations
LSL
ARexx