English

Which sorting technique sorts a given list of elements by repeatedly comparing the adjacent elements and swapping them if they are ordered? -

Advertisements
Advertisements

Question

Which sorting technique sorts a given list of elements by repeatedly comparing the adjacent elements and swapping them if they are ordered?

Options

  • Bubble

  • Insertion

  • Selection

  • Sorting

MCQ

Solution

Bubble

Explanation:

Using a series of comparisons between nearby components and swapping them if necessary, the bubble sort algorithm sorts a given list of elements.

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

Englishहिंदीमराठी


      Forgot password?
Use app×