perform QUICK SORT on the following data set
23, 12, 11, 45, 30, 8, 55, 22, 66
Answers
Answered by
0
Answer:
555555555555555555555
Answered by
2
Given : 23, 12, 11, 45, 30, 8, 55, 22, 66
To Find : perform QUICK SORT
Solution:
23, 12, 11, 45, 30, 8, 55, 22, 66
1st taking 66 as Pivot no change as its max
23, 12, 11, 45, 30, 8, 55, 22, 66
now taking 22 as pivot ( 2nd Right Most )
12 11 8 22 30 23 55 45 66
Now taking 8 as Pivot left of 22
8 11 12 22 30 23 55 45 66
Taking 45 as pivot
8 11 12 22 30 23 45 55 66
Taking 23 as Pivot
8 11 12 22 23 30 45 55 66
SORTING IS DONE
Learn More:
Difference between sorting and filtering in excel - Brainly.in
https://brainly.in/question/8773232
Similar questions