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

Jay has 12 stamps. he wants to put the same number of stamps on each page of his album. how many stamps can he put on each page? write division sentences to s
The exterior of a refrigerator is shaped like a rectangular prism, and measures 2 2/3ft wide and 5 1/2 feet high by 2 1/2 feet deep. What amount of space does t
A character faces a conflict because his enemy wants to hurt him. What kind of conflict is this? Man vs. Man Man vs. Nature Man vs. Self Man vs. Society
You have probably heard of Albert Einstein's famous formula: E = mc2. While this is an important formula that you may use at some point in your academic career,
What is partition and what did it solve?
How were the Great Basin canyons formed?
What does the multiple-meaning word ray mean in this sentence?A ray of sunshine shone on the wall.
Which is greater 27 oz or 2 lb?
what was named after James Watt?
how did Greek city states create that idea of citizenship