Question: Horner's Rule is an algorithm to efficiently evaluate a polynomial f ( x ) = i = 0 N a i x i = a
Horner's Rule is an algorithm to efficiently evaluate a polynomial
Here's the algorithm where the polynomial coefficients dots, are all stored in
an array or vector container :
poly ;
for int i N; i; i
poly x poly ai
a Walk through the steps and show how the algorithm is used to calculate for
so in this case
b Explain why this algorithm works.
c Find the running time and explain why it is what it is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
