English

Bubble sort and selection sort are in place sorting algorithm. This means that: -

Advertisements
Advertisements

Question

Bubble sort and selection sort are in place sorting algorithm. This means that:

Options

  • The input is already sorted

  • Requires O(1) memory to create auxiliary location

  • Requires additional storage

  • All of the these

MCQ

Solution

Requires O(1) memory to create auxiliary location

Explanation:

In place sorting algorithms include bubble sort and selection sort. This means that creating an auxiliary location requires O(1) memory.

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

Englishहिंदीमराठी


      Forgot password?
Use app×