Given a sequence of numbers where numbers at odd positions as well as even positions are sorted in increasing order. For example
1 42 3 44 6 45 9
Which of the following sorting algorithm performs the best here with respect to the number of comparisons performed?
- Insertion sort
- Bubble sort
- Selection sort
- Asymptotically all the above three have the same worst case performance