Qn 1: (10 points) Apply quicksort to sort the list E, X, A,M, P, L, E in alphabetical order. Draw the tree of the recurs
Posted: Fri Jul 01, 2022 5:46 am
Qn 1: (10 points) Apply quicksort to sort the list E, X, A,M, P, L, E in alphabetical order. Draw the tree of the recursive calls made. Qn 2: (10 points) Design an algorithm to rearrange elements of a given array of n real numbers so that all its negative elements precede all its positive elements. Your algorithm should be both time efficient and space efficient.