question archive Use Quicksortsort the following file by hand72,20,73,42,11,80,39,30,100,46,88,32,21 as shown in class and and selecting the first element as the split element: (a) After the initial swapping, there are two subfiles - one to the left of 72 and one to the right of 72
Subject:MathPrice: Bought3
as shown in class and and selecting the first element as the split element:
(a) After the initial swapping, there are two subfiles - one to the left of 72 and one to the right of 72. What are they in order?
(b) Continue sorting the entire file until totally sorted. During the entire sort - what was the maximum number of inversions removed by a single comparison and swap?