Fast Fourier Transform 1) Legendre s Interpolation 2) Vandermonde Matrix 3) Roots of Unity 4) Polynomial Evaluation

Similar documents
Interpolation. 1. What is interpolation?

Lesson 4 Linear Algebra

SOLUTION OF SYSTEM OF LINEAR EQUATIONS. Lecture 4: (a) Jacobi's method. method (general). (b) Gauss Seidel method.

Chapter System of Equations

0 otherwise. sin( nx)sin( kx) 0 otherwise. cos( nx) sin( kx) dx 0 for all integers n, k.

Graphing Review Part 3: Polynomials

Section 7.3, Systems of Linear Algebraic Equations; Linear Independence, Eigenvalues, Eigenvectors (the variable vector of the system) and

Lecture 4 Recursive Algorithm Analysis. Merge Sort Solving Recurrences The Master Theorem

Lecture 4 Recursive Algorithm Analysis. Merge Sort Solving Recurrences The Master Theorem

Taylor Polynomials. The Tangent Line. (a, f (a)) and has the same slope as the curve y = f (x) at that point. It is the best

 n. A Very Interesting Example + + = d. + x3. + 5x4. math 131 power series, part ii 7. One of the first power series we examined was. 2!

ALGEBRA. Set of Equations. have no solution 1 b1. Dependent system has infinitely many solutions

M3P14 EXAMPLE SHEET 1 SOLUTIONS

[ 20 ] 1. Inequality exists only between two real numbers (not complex numbers). 2. If a be any real number then one and only one of there hold.

Inner Product Spaces (Chapter 5)

Addendum. Addendum. Vector Review. Department of Computer Science and Engineering 1-1

A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD

Unit 1. Extending the Number System. 2 Jordan School District

Lecture 2. Rational Exponents and Radicals. 36 y. b can be expressed using the. Rational Exponent, thus b. b can be expressed using the

Limit of a function:

MATRIX ALGEBRA, Systems Linear Equations

Vectors. Vectors in Plane ( 2

In an algebraic expression of the form (1), like terms are terms with the same power of the variables (in this case

Simpson s 1/3 rd Rule of Integration

1. (25 points) Use the limit definition of the definite integral and the sum formulas to compute. [1 x + x2

Surds, Indices, and Logarithms Radical

Autar Kaw Benjamin Rigsby. Transforming Numerical Methods Education for STEM Undergraduates

lecture 16: Introduction to Least Squares Approximation

Digital Signal Processing, Fall 2006

Northwest High School s Algebra 2

Chapter 10: The Z-Transform Adapted from: Lecture notes from MIT, Binghamton University Dr. Hamid R. Rabiee Fall 2013

SM2H. Unit 2 Polynomials, Exponents, Radicals & Complex Numbers Notes. 3.1 Number Theory

ALGEBRA II CHAPTER 7 NOTES. Name

Fourier Series and Applications

Unit 1 Chapter-3 Partial Fractions, Algebraic Relationships, Surds, Indices, Logarithms

A GENERALIZATION OF GAUSS THEOREM ON QUADRATIC FORMS

GRAPHING LINEAR EQUATIONS. Linear Equations. x l ( 3,1 ) _x-axis. Origin ( 0, 0 ) Slope = change in y change in x. Equation for l 1.

Frequency-domain Characteristics of Discrete-time LTI Systems

10.5 Power Series. In this section, we are going to start talking about power series. A power series is a series of the form

Similar idea to multiplication in N, C. Divide and conquer approach provides unexpected improvements. Naïve matrix multiplication

Linear Programming. Preliminaries

Advanced Algorithmic Problem Solving Le 6 Math and Search

Statistics for Financial Engineering Session 1: Linear Algebra Review March 18 th, 2006

The total number of permutations of S is n!. We denote the set of all permutations of S by

Chapter 7 Infinite Series

Linford 1. Kyle Linford. Math 211. Honors Project. Theorems to Analyze: Theorem 2.4 The Limit of a Function Involving a Radical (A4)

(200 terms) equals Let f (x) = 1 + x + x 2 + +x 100 = x101 1

(II.G) PRIME POWER MODULI AND POWER RESIDUES

PROGRESSIONS AND SERIES

DIGITAL SIGNAL PROCESSING LECTURE 5

The Exponential Function

Eigenfunction Expansion. For a given function on the internal a x b the eigenfunction expansion of f(x):

Handout #2. Introduction to Matrix: Matrix operations & Geometric meaning

INFINITE SERIES. ,... having infinite number of terms is called infinite sequence and its indicated sum, i.e., a 1

Numbers (Part I) -- Solutions

11/16/2010 The Inner Product.doc 1/9. The Inner Product. So we now know that a continuous, analog signal v t can be expressed as:

Chapter 10: The Z-Transform Adapted from: Lecture notes from MIT, Binghamton University Hamid R. Rabiee Arman Sepehr Fall 2010

Merge Sort. Outline and Reading. Divide-and-Conquer. Divide-and-conquer paradigm ( 4.1.1) Merge-sort ( 4.1.1)

Mu Alpha Theta National Convention: Denver, 2001 Sequences & Series Topic Test Alpha Division

Orthogonality, orthogonalization, least squares

MATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE

ECE 102 Engineering Computation

Content: Essential Calculus, Early Transcendentals, James Stewart, 2007 Chapter 1: Functions and Limits., in a set B.

SUTCLIFFE S NOTES: CALCULUS 2 SWOKOWSKI S CHAPTER 11

Basic Maths. Fiorella Sgallari University of Bologna, Italy Faculty of Engineering Department of Mathematics - CIRAM

Numerical Solutions of Fredholm Integral Equations Using Bernstein Polynomials

MA123, Chapter 9: Computing some integrals (pp )

Discrete Mathematics I Tutorial 12

Section 6.3: Geometric Sequences

( a n ) converges or diverges.

Lecture 38 (Trapped Particles) Physics Spring 2018 Douglas Fields

Numerical Methods (CENG 2002) CHAPTER -III LINEAR ALGEBRAIC EQUATIONS. In this chapter, we will deal with the case of determining the values of x 1

2.1.1 Definition The Z-transform of a sequence x [n] is simply defined as (2.1) X re x k re x k r

Week 13 Notes: 1) Riemann Sum. Aim: Compute Area Under a Graph. Suppose we want to find out the area of a graph, like the one on the right:

Appendix A Examples for Labs 1, 2, 3 1. FACTORING POLYNOMIALS

Approximate Integration

Exponents and Radical

Elementary Linear Algebra

Pre-Calculus - Chapter 3 Sections Notes

INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)

National Quali cations AHEXEMPLAR PAPER ONLY

Supplemental Handout #1. Orthogonal Functions & Expansions

Important Facts You Need To Know/Review:

Student Success Center Elementary Algebra Study Guide for the ACCUPLACER (CPT)

The Definite Riemann Integral

Chapter Real Numbers

is an ordered list of numbers. Each number in a sequence is a term of a sequence. n-1 term

1.3 Continuous Functions and Riemann Sums

Review of the Riemann Integral

Module Summary Sheets. FP1, Further Concepts for Advanced Mathematics

Assessment Center Elementary Algebra Study Guide for the ACCUPLACER (CPT)

LEVEL I. ,... if it is known that a 1

Chapter 2 Infinite Series Page 1 of 9

y udv uv y v du 7.1 INTEGRATION BY PARTS

Next we encountered the exponent equaled 1, so we take a leap of faith and generalize that for any x (that s not zero),

MATH 174: Numerical Analysis. Lecturer: Jomar F. Rabajante 1 st Sem AY

Numerical Integration

Closed Newton-Cotes Integration

Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, Divide-and-Conquer

2a a a 2a 4a. 3a/2 f(x) dx a/2 = 6i) Equation of plane OAB is r = λa + µb. Since C lies on the plane OAB, c can be expressed as c = λa +

Transcription:

Algorithm Desig d Alsis Victor Admchi CS 5-45 Sprig 4 Lecture 3 J 7, 4 Cregie Mello Uiversit Outlie Fst Fourier Trsform ) Legedre s Iterpoltio ) Vdermode Mtri 3) Roots of Uit 4) Polomil Evlutio Guss (777 855) Lgrge (736 83) Fourier (768 83) High Level Ide The orst-cse compleit To compute the polomil (order ) product A()B(), ) evlute A() d B() t some (+) poits, ) multipl A( )B( ), 3) the fid the polomil hich psses through these poits. To compute the polomil product A()B(), ) evlute A() d B() t some poits, - ht s the compleit of A( )-? - ht s the compleit of A( ) t poits? ) multipl A( )B( ), 3) the fid the polomil hich psses through these poits. - ho c e do it? Wht is it compleit? Iterpoltio Give set of poits Iterpoltio Give pirs (, ), (, ),, (, ) (, ) ( 3, 3 ) ( 5, 5 ) Theorem: There is ectl oe polomil P() of degree t most such tht P( ) = for ll =,,. ( 4,b 4 ) Fid (lo-degree) polomil hich fits the dt

Theorem Proof There re to thigs to prove.. There is t lest oe polomil of degree pssig through ll + dt poits.. There is t most oe polomil of degree pssig through ll + dt poits. Let s prove # first. Proof #: There is t most oe polomil Suppose P() d Q() both do the tric. Let R() = P() Q(). Sice deg(p), deg(q) e must hve deg(r). But R( ) = b b = for ll =,,. Thus R() hs more roots (+) th its degree. Thus, R() must be the polomil, i.e., P()=Q(). Proof # Lgrge Iterpoltio The method for costructig the polomil is clled Lgrge s Iterpoltio. Discovered i 795 b J.-L. Lgrge. - b b b b - b Wt P() ith degree such tht P( ) = b. Specil Cse - Oce e solve this specil cse, the geerl cse is ver es. Specil Cse - Let Q() = ( )( )( ) Degree is. Q( ) = Q ( ) = = Q ( ) =. Q( ) =??

Numertor is deg. polomil Lgrge Iterpoltio - Deomitor is ozero field elemet Q() ( )( ) S () Q( ) ( )( ) Cll this the selector polomil for. Aother specil cse - ( - )( )( ) S () ( )( )( ) Lgrge Iterpoltio Gret! But ht bout this dt? b b b - - b - b ( )( - ) S () ( )( ) - P() = b S () + + b S () This formul is clled Lrge s Iterpoltio Lgrge Iterpoltio Give pirs (, ), (, ),, (, ) There is uique polomil to fit these poits: () Emple Give to polomils A() = + + B() = + + 3 Compute their vlues t = -, -,,, {A(-), A(-), A(), A(), A()} = {3,,, 3, 7} {B(-), B(-), B(), B(), B()} = {9,,, 6, 7} Poitise multiplictio: {C(-), C(-), C(), C(), C()} = {7,,, 8, 9} 3

4 Emple Poits to fit (-,7), (-,), (, ), (, 8), (, 9) This ields 4 3 3 5 6 3 () () Wht is the rutime compleit of Lgrge s iterpoltio? O( 3 ), if e epd () Mtri Form Cosider cse of to poits This could be ritte i mtri form tht defies d. The Vdermode Mtri The Lgrge formul defies polomil here coefficiets c be foud b solvig this or i short V. = A() Thus, = V -. The Vdermode Mtri V I order to iverse the mtri V, e hve to prove tht it s osigulr. Determit of the Vdermode Mtri - ) ( det Sice the + poits re distict, the determit c't be zero. The proof (b iductio o ) is left s eercise to studet

Compleit of Iterpoltio It follos tht the compleit of iterpoltio depeds o ho fst c e iverse the Vdermode mtri. Lgrge s Iterpoltio formul c be represeted vi the Vdermode Mtri. The success depeds o the vlues of, =,, Computig Polomils Give polomil of degree. Wht is the compleit of computig its vlue t sigle poit, A( )? Horer s Rule: A() O() Computig Polomils So e compute the sigle vlue i lier time. Therefore, it tes O( ) to compute polomil of degree t poits. I the et slides e ill develop e method tht hs O( log ) rutime compleit. A() ( ( ( )) Computig Polomils The e ide is to use the divide-d-coquer lgorithm. We split polomil ito to prts: ith eve d odd degree terms. For emple, A() = A ( ) + A ( ) ++3 +4 3 +5 4 +6 5 =(+3 +5 4 )+(+4 +6 4 ) Worst-time Compleit Let T() be the compleit of computig degree- polomil t + poits. Thus T() T(/) O() This solves to O( log ). Gret! The ol problem is tht the lgorithm requires of hvig hlf positive d hlf egtive poits o ech itertio. 5

Ver specil poits A() = A ( ) + A ( ) So, e eed to fid such set of poits tht ) hlf of poits re egtive d the secod hlf is positive Roots of Uit The re defied s solutios to z =. Here is = 8 - i i +i i π/4 i e + ) this propert holds fter squrig i -i i i Comple umbers o uit circle re represeted b z = e i =cos() + i si() Roots of Uit: = 8 Let = i, the roots of z 8 = c be ritte s,,, 3, 4, 5, 6, 7 Sice i = -, d thus 4 = -, the c lso be ritte s,,, 3, -, -, -, - 3 Let us te hlf d squre them (,,, 3 ) = (,, 4, 6 ) = (,, -, - ) Do it gi (, ) = (, 4 ) = (, -) Computig Polomils Give polomil of degree. A() Our ts to compute A(), A(), A( ), here + =. We c rite these computtios i mtri form!!! Computig Polomils A() A() A( ) A() Lgrge s Iterpoltio formul c be represeted vi the Vdermode Mtri. Polomil evlutio is lso computed vi the Vdermode Mtri. This is the Vdermode mtri. We ill prove tht this mtri multiplictio c be doe i O( log ) 6

High Level Ide To compute the product A()B() of polomils (of order ) O( log ) ) evlute A() d B() t (+) roots of uit, usig the Vdermode mtri ) multipl A( )B( ), O() 3) the fid the polomil usig Lgrge s iterpoltio vi the Vdermode mtri O( log ) 7