English

In which of the following scenarios will you use a selection sort? -

Advertisements
Advertisements

Question

In which of the following scenarios will you use a selection sort?

Options

  • When you have to sort small number of large values

  • When you have to sort large number of small values

  • When the list is already sorted

  • For sorting huge files

MCQ

Solution

When you have to sort small number of large values

Explanation:

For small numbers of elements, regardless of element value, selection sort is ideal.

shaalaa.com
Selection Sort
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×