in Algorithms edited by
796 views
0 votes
0 votes

Consider the following sorting algorithms:

  1. Bubble sort
  2. Insertion sort
  3. Selection sort


Which ONE among the following choices of sorting algorithms sorts the numbers in the array $[4,3,2,1,5]$ in increasing order after exactly two passes over the array?

  1. $\text{(i)}$ only
  2. $\text{(iii)}$ only
  3. $\text{(i)}$ and $\text{(iii)}$ only
  4. $\text{(ii)}$ and $\text{(iii)}$ only

in Algorithms edited by
by
796 views

1 Answer

0 votes
0 votes
B

Related questions