...
Question 5923 – UGC NET CS 2009-June-Paper-2
May 1, 2024
Question 757 – Transactions
May 1, 2024
Question 5923 – UGC NET CS 2009-June-Paper-2
May 1, 2024
Question 757 – Transactions
May 1, 2024

Question 10489 – Algorithms

Assume that the last element of the set is used as partition element in Quicksort. If n distinct elements from the set [1…..n] are to be sorted, give an input for which Quicksort takes maximum time.

Correct Answer: A

Question 41 Explanation: 
For n distinct elements the algorithm will take maximum time when:
→ The array is already sorted in ascending order.
→ The array is already sorted in descending order.
A
n
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!