Explain Quick Sort algorithm with exlmple.
Answers
Answered by
0
in simple QUIKSORT ALGORITHM , we select an element as pivot,partition the array around pivot and recur for subarrays on left and right of pivot.
consider an array which has many redundant element. FOR EXAMPLE (1,4,2,4,2,4,1,2,4,1,2,2,2,2,4,1,4,4,4,)....c)arr(j...r) element greater then pivot.
Similar questions
English,
6 months ago
English,
6 months ago
Social Sciences,
6 months ago
Political Science,
1 year ago
Math,
1 year ago