Analyzing sorting algorithms #

Created Wednesday 11 December 2019

There are 5 criteria for any analyzing any sorting algorithm:

  1. Number of swaps
  2. Number of comparisons
  3. Inplace or not(i.e use extra memory or not)
  4. Adaptive - When input is a sorted array, does time complexity decrease for the case.
  5. Stable - Order of the elements with equal value stays the same Or not.