Question: 4 : TRACTUS ( A , 1 , r ) 1 : / / Input: numeri reales in arbitrario ordine dispositi, 1 = 0 ,

4: TRACTUS(A,1,r)1: // Input: numeri reales in arbitrario ordine dispositi, 1=0, r = n -12: // Output: elementa m bd14 inima et maxima ordinata 3 : si r -1<2 tunc si A[l]< A[r]tum V : redi (A[l], A[r])6 : aliud 7: redi (A[r], A[U)8 : aliud m =((1+r)/2]10: (min1, maxi) TRACTUS(A,1, m)11: (min2, max2) TRACTUS(A, m +1,r) si mini max2 tum max 2= maxi.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!