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)).
Who was conferred the Padma Bhushan for contributions to journalism in 2025?Â
What is the expected annual energy output of the Heo Hydro Electric Project?
Which tennis legend won the 2025 Princess of Asturias Award for Sports?
Which space tech firm will launch India’s first AI laboratory in space aboard PSLV C60?
Where was India’s first cooperative multi-feed Compressed Biogas (CBG) plant inaugurated in October 2025?Â
What is the deployment timeline mandated by SEBI for funds raised through New Fund Offers (NFOs)?
Which Indian bank became the first to launch Central Bank Digital Currency (CBDC) retail transactions via UPI QR codes?
Which mission was launched by ISRO on July 14, 2024?
- What milestone did India achieve in the global arms trade as per the SIPRI report 2025?
Which newly discovered gecko species in Assam indicates biogeographic links with Sri Lanka?Â