Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
563 views
in Information Technology by (237k points)
closed by
What is the advantage of bubble sort over other sorting techniques ? 
1. It is faster 
2. Consumes less memory 
3. Detects whether the input is already sorted 
4. All of the options 

1 Answer

0 votes
by (239k points)
selected by
 
Best answer
Correct Answer - Option 3 : Detects whether the input is already sorted 

The correct answer is option 3

  • The bubble sort algorithm works by repeatedly swapping adjacent elements that are not in order until the whole list of items is in sequence.
  • If sorting is completed in a single iteration, it can be detected that the input is already sorted.

  • When the elements of input are already sorted, the bubble sort gives the best time complexity O(n).
  • Bubble sort is typically slower due to it's iterative behaviour.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...