Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
164 views
in Information Technology by (101k points)
closed by
What is the best case complexity of QuickSort?
1. O(nlogn)
2. O(logn)
3. O(n)
4. O(n2)

1 Answer

0 votes
by (102k points)
selected by
 
Best answer
Correct Answer - Option 1 : O(nlogn)

Concept

Quick Sort is a Divide and Conquer algorithm. It picks an element as a pivot and partitions the given array.

If pivot element divides the array into two equal half in such a scenario, quick sort takes the least time sort, that is, best case time complexity.  

The best case complexity of QuickSort is O(nlogn)

Algorithm

Best-case (Ω)

Average-case (Θ )

Worst-case(O)

Quick sort

n×log2n

n2

n2

Bubble sort

n

n2

n2

Insertion sort

n

n2

n2

 

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

...