Adjacent elements are compared and swapped in ________ sorting technique.

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

Answer (Detailed Solution Below)

Option 1 : Bubble sort

Detailed Solution

Download Solution PDF

The correct answer is Bubble sort

Key Points

  • Bubble sort works by repeatedly comparing adjacent elements and swapping them if they are in the wrong order. This process continues until the list is sorted.

 Additional Information

  • Insertion sort: Insertion sort builds the sorted list one element at a time. It compares each element with the sorted portion of the list and inserts it at the correct position.
  • Selection sort: Selection sort finds the minimum (or maximum) element in the unsorted part of the list and swaps it with the first element. This process continues until the list is sorted.
  • Adjacent sort: There is no sorting technique called "adjacent sort."

More Sorting Questions

Get Free Access Now
Hot Links: all teen patti teen patti master old version teen patti master plus