Question
Download Solution PDFAdjacent elements are compared and swapped in ________ sorting technique.
- Bubble sort
- Insertion sort
- Selection sort
- Adjacent sort
Answer (Detailed Solution Below)
Option 1 : Bubble sort
India's Super Teachers for all govt. exams Under One Roof
FREE
Demo Classes Available*
Enroll For Free Now
Detailed Solution
Download Solution PDFThe 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."
India’s #1 Learning Platform
Start Complete Exam Preparation
Daily Live MasterClasses
Practice Question Bank
Mock Tests & Quizzes
Trusted by 7.2 Crore+ Students