






































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Lecture notes on polynomials and tree sort, covering topics such as synthetic division, horner's method, and binary trees. Explanations, examples, and algorithms for polynomial evaluation, horner's method, and binary trees. It is suitable for university students studying computer science or mathematics.
Typology: Slides
1 / 46
This page cannot be seen from the preview
Don't miss anything!







































Lecture 11
POLYNOMIALS and Tree sort
INTRODUCTION
EVALUATING POLYNOMIAL FUNCTIONS Consider the polynomial: P(x) = a n x^ n + a n-1x^ n-1 + … + a 1 x +a 0 with real coefficients and n>=
Suppose the coefficients of agiven and that the problem is the evaluate p(x). 0 , a 1 , …, a n and x are
In this section we look at some algorithms and somelower bounds for this problem.
Use synthetic division to find the quotient and remainder when f x x x x g x x
( ) ( ).
= − + − = +
3 2 10 3
(^4 3 2) is divided by
Algorithms
Algorithm Polynomial Evaluation—Term by Term
Algorithm Polynomial Evaluation – Horner’s Method