Question: Algorithm 1: Range(A(0... 1) 1: Input: An array A0..-1 of n real For the algorithm on the right: a) What is its basic operation? numbers
Algorithm 1: Range(A(0... 1) 1: Input: An array A0..-1 of n real For the algorithm on the right: a) What is its basic operation? numbers 2: minval AO 3: max val = A[0]; 4: fori1 ton-1 do 5: ifA/?/ maral then maxval = A[i]; 7: 8: 9: end 10: return maxval minval
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
