shouyuanroh3839 shouyuanroh3839
  • 13-09-2019
  • Computers and Technology
contestada

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

Respuesta :

ExieFansler ExieFansler
  • 19-09-2019

Answer:

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²).

Answer Link

Otras preguntas

when did The Runaway scrape started?​
Y+6=1/2(x-16) what is linear equation for that
In a two-digit number, the tens digit is 5 more than the units digit. The number itself is five more than three times the sum of its digits. What is the number?
Desperate, Will Mark Brainllest and Give Thanks for Correct Answer What was the most important invention changing the life of Americans?
the second paragraph of the excerpt proposes that the massachusetts legislature should
I need help please. I give you brain list
what legal limitations did women face in the 19th-century and what gender-inequality issues do women face today?
Solve -4<3x+2≤5 A.) x>-2 or x≤1 B.) x>2 and x≤2 C.) x>2 or x≤1 D.) x>-2 and x≤1
What makes working in a trade special and What do you think might be the pros and cons of working in a trade?
In lord of the flies, in chapter 5. what’s a quote that shows Ralph has matured