Consider the following algorithm (known as Horner’s rule) to evaluate
:
poly = 0; for( i = n; i >= 0; i-- ) poly = x * poly + a[i];
a. Show how the steps are performed by this algorithm for x = 3, f (x) = 4x4 + 8x3 + x + 2.
b. Explain why this algorithm works.
c. What is the running time of this algorithm?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.