Question: Find an order for the term - by - term polynomial evaluation algorithm. For an input array of size n , the number of multiplications
Find an order for the termbyterm polynomial evaluation algorithm.
For an input array of size the number of multiplications that are performed when the algorithm is executed equals the number of iterations of the inner loop, namely
The number of additions that are performed when the algorithm is executed equals the number of iterations of the outer loop, namely
Hence, when the total number of multiplications and additions is expressed as a polynomial in the result is
Thus, by the theorem on polynomial orders, the termbyterm polynomial algorithm has the following order.
Need Help?
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
