Question: (e) Given the array a 4, 1, 2, 3), fill in the empty data trace table below for the following Python code: (9 marks) def

(e) Given the array a 4, 1, 2, 3), fill in the empty data trace table below for the following Python code: (9 marks) def partition (a, lo,hi): 1. i= (10-1) 2 pivot-a thi 3. forj in range (lo ,hi) if aj pivot: a[i+1,a[hia(hil,a[i+1] 9.return (1+1) a[i] line i j pivot a[j]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
