| Sort | Time (avg) | Time (worst) | Space | Stable |
|---|---|---|---|---|
| Selection | No | |||
| Insertion | Yes | |||
| Merge | Yes | |||
| Quick | No |
Use insertion sort for small arrays or nearly-sorted data. Use merge sort when stability matters or you need guaranteed . Use quicksort for general purpose (with randomization).