You cannot say anything for arbitrary n

">
MCQs > IT & Programming > Data Structures And Algorithms >


Quicksort is run on two inputs shown below to sort them in the ascending order.


i) 1,2,3,...n

ii) n,n-1,n-2,...2,1


If C1 and C2 be the number of comparisons made for the inputs (i) and (ii) respectively, then

Data Structures And Algorithms MCQs


Quicksort is run on two inputs shown below to sort them in the ascending order.


i) 1,2,3,...n

ii) n,n-1,n-2,...2,1


If C1 and C2 be the number of comparisons made for the inputs (i) and (ii) respectively, then

Answer

Correct Answer: C1=C2

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Data Structures And Algorithms Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Data Structures And Algorithms Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it