Ask Question

What is the efficiency (Big O Notation) of quicksort algorithm?

+4
Answers (1)
  1. 15 July, 14:08
    0
    O (NlogN)

    Explanation:

    The time complexity of quick sort in worst case is O (N²) but the average case time complexity of quick sort is O (NLogN). The efficiency of quick sort totally depends upon the pivot. If the pivot is the smallest or the largest element in the array every time then the time complexity of quick sort algorithm will come out to be O (N²).
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the efficiency (Big O Notation) of quicksort algorithm? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers