Question: Consider the following algorithm to evaluate f(x) = -0 air (Horner's rule): poly = 0; for(i=n; i>=0; i--) poly = r * poly +
Consider the following algorithm to evaluate f(x) = -0 air (Horner's rule): poly = 0; for(i=n; i>=0; i--) poly = r * poly + ai 3. What is the running time of this algorithm with the following assumptions? What is its big-O notation? Statement assignment + * for-next loop set-up each loop Time Unit 1 1.25 1.75 2.3 1.5
Step by Step Solution
3.28 Rating (154 Votes )
There are 3 Steps involved in it
Solution A fx4x8xx2 for x3 2x481 2313 23941 B To conver... View full answer
Get step-by-step solutions from verified subject matter experts
