Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1. Given a polynomial p(x) = anx n + an1x n1 + + a1x + a0, where the coefficients are ai s, Horners method

Problem 1. Given a polynomial p(x) = anx n + an1x n1 + + a1x + a0, where the coefficients are ai s, Horners method is an efficient algorithm for evaluating the polynomial at a number c that works as follows: Multiply an by c, then add an1. Then multiply the result by c and add an2. Then multiply the result by c and add an3 and so on until you reach a0. This over all gives an O(n) algorithm for evaluation of p(c). Apply Horners method to the polynomial p(x) = 5x 3 2x 2 + 3x 7 at c = 2. How many multiplications and additions?

image text in transcribed

Problem 1. Given a polynomial p(x)-an"+ an-12-1az +ao, where the coefficients are ai's, Horner's method is an efficient algorithm for evaluating the polynomial at a number c that works as follows: Multiply an by c, then add an-1. Then multiply the result by c and add an-2. Then multiply the result by c and add an-3 and so on until you reach ao. This over all gives an O(n) algorithm for evaluation of p(c). Apply Horner's method to the polynomial p(x) 5-2r23r 7 at c 2. How many multiplications and additions

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

1-4 How will MIS help my career?

Answered: 1 week ago