1.

Consider the following array.2332456972738997Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort above array in ascending order?

A. Insertion sort
B. Selection sort
C. Quicksort using the last element as pivot
D. Merge sort
Answer» B. Selection sort


Discussion

No Comment Found

Related MCQs