Question
Quick sort average time
complexitySolution
Quick Sort is a divide-and-conquer algorithm that works by selecting a 'pivot' element from the array and partitioning the other elements into two sub-arrays, according to whether they are less than or greater than the pivot. The sub-arrays are then sorted recursively.
- O(N log(N)) : This is the average time complexity of Quick Sort. The reason is that in an average case, the pivot divides the array into two nearly equal parts, and sorting each part takes O(log(N)) divisions, with each division taking O(N) time to partition the array.
- O(N) : This represents linear time complexity, which is not the case for Quick Sort.
- O(log(N)) : This represents logarithmic time complexity, which does not apply to sorting an array.
- O(N log(N*N)) : This is not a standard time complexity notation for sorting algorithms.
- none : This is incorrect because the average time complexity of Quick Sort is well-known to be O(N log(N)).
How many total medals did India win at the 26th Asian Athletics Championships, marking its best foreign performance in 40 years?
What percentage of the workforce in India’s handicrafts sector comprises women?
What is the new ceiling for FCNR(B) deposit rates set by the RBI for the 1-3 years maturity period?
How much of the Brics + export share was contributed by China in 2023?
On which date is the Indian Air Force scheduled to receive its first Tejas Mk1A fighter jet?
- At which event was PM Narendra Modi conferred with the highest civilian award of Mauritius?
NABARD, as an apex institution, provides refinancing support to financial institutions. Which of the following best defines NABARD’s refinancing funct...
Who was appointed as Pakistan’s first Chief of Defence Forces (CDF) in December 2025?
As per SIPRI Report 2025, what percentage of global arms imports is accounted for by India during 2021–2025?
According to the UNDP 2025 report on the Forest Rights Act (FRA), how many acres have been titled so far under FRA?