0 votes 0 votes In Quick sort of the following numbers, if the pivot is chosen as the first element, what will be the order of the numbers after the use of partition function ? Assume we are sorting in increasing order. 11, 15, 9, 13, 17, 7, 5, 12, 6, 18 Algorithms quick-sort + – someshawasthi asked Nov 25, 2022 someshawasthi 596 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes After $1^{st}$ time partition algo – $(6,9,7,5,)11,(15,13,12,17,18)$ $2^{nd} $ time – $5,6,7,9,11,(15,13,12,17,18)$ $3^{rd} $ time – $5,6,7,9,11,12,13,15,17,18$ Pranavpurkar answered Nov 25, 2022 Pranavpurkar comment Share Follow See all 0 reply Please log in or register to add a comment.