Question: in C programming, create a floating point array of 10 elements. Sort them in ascending order. Using this Algorithm function trick_1(a[1... n]) Input: An array
in C programming, create a floating point array of 10 elements. Sort them in ascending order. Using this Algorithm

function trick_1(a[1... n]) Input: An array of numbers a[1...n] Output: A sorted version of this array ifn>1: return trick 2(trick 1(a[1... bn/2c]), trick_1(a[bn/2c+1... n])) else: return a function trick 2(x[1...kl,yl1...I]) if k 0: return y[1...1] if I 0: return x[1 . . . k] return x[1] c+ trick 2(x[2... k], y[1.. .1]) else: return y[1] c+ trick 2(x[1... k]. y[2...I)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
