How to Multiply. 5.5 Integer Multiplication. Complex Multiplication. Integer Arithmetic. Complex multiplication. (a + bi) (c + di) = x + yi.

Size: px
Start display at page:

Download "How to Multiply. 5.5 Integer Multiplication. Complex Multiplication. Integer Arithmetic. Complex multiplication. (a + bi) (c + di) = x + yi."

Transcription

1 How to ultiply Slides by Kevin Wayne. Copyright 5 Pearson-Addison Wesley. All rights reserved. integers, matrices, and polynomials Complex ultiplication Complex multiplication. a + bi) c + di) = x + yi. Grade-school. x = a!c - b!d, y = b!c + a!d. Gauss. x = a!c - b!d, y = a + b)! c + d) - a!c - b!d. Remark. Improvement if no hardware multiply. 4 multiplications, additions 3 multiplications, 5 additions 5.5 Integer ultiplication 4 Integer Arithmetic Add. Given two n-bit integers a and b, compute a + b. Grade-school. "n) bit operations. ultiply. Given two n-bit integers a and b, compute a! b. Grade-school. "n ) bit operations. * + Add ultiply

2 Divide-and-Conquer ultiplication: Warmup Karatsuba ultiplication To multiply two n-bit integers:! ultiply four "n-bit integers.! Add two "n-bit integers, and shift to obtain result. To multiply two n-bit integers:! Add two "n bit integers.! ultiply three "n-bit integers.! Add, subtract, and shift "n-bit integers to obtain result. Ex. x = n / " x + x y = n / " y + y ) n / " y + y ) = n " x y + n / " x y + x y xy = n / " x + x x = y = x x y y ) Tn) = 4T n/ "n) 3 # Tn) = "n ) recursive calls add, shift ) + x y x = n / " x + x y = n / " y + y xy = n " x y + n / " x y + x y ) + x y ) + x y = n " x y + n / " x + x )y + y ) # x y # x y Theorem. [Karatsuba-Ofman, 96] Can multiply two n-bit integers in On.585 ) bit operations. ) + T n/ ) + T + n/ ) Tn) " T # n/ + n) Tn) = On log 3 ) = On ) recursive calls 3 3 add, subtract, shift 5 6 Karatsuba: Recursion Tree Fast Integer Division Too!) " if n = Tn) = # 3Tn/) + n otherwise log n Tn) = " n 3 = k= ) k ) +log n # 3 3 # = 3n log 3 # Integer division. Given two n-bit or less) integers a and b, compute quotient q = a / b and remainder r = a mod b. Tn/) Tn) Tn/) Tn/) n 3n/) Fact. Complexity of integer division is same as multiplication. To compute quotient q: x i+ = x i " b x! Approximate x = / b using Newtons method: i! After log n iterations, either q = #a x or q = a x. using fast multiplication Tn/4) Tn/4) Tn/4) Tn/4) Tn/4) Tn/4) Tn/4) Tn/4) Tn/4) 9n/4) Tn / k ) 3 k n / k ) T) T) T) T) T) T) T) T) 3 lg n ) 7 8

3 atrix ultiplication atrix ultiplication atrix multiplication. Given two n-by-n matrices A and B, compute C = AB. " c c L c n c c L c n O # c n c n L c nn = " a a L a n a a L a n O # a n a n L a nn " b b L b n b b L b n O # b n b n L b nn n c ij = " a ik b kj k= j Ex. " # i ".7.. =.3.6. #.5..4 " # Brute force. "n 3 ) arithmetic operations. Fundamental question. Can we improve upon brute force? atrix ultiplication: Warmup atrix ultiplication: Key Idea Divide-and-conquer.! Divide: partition A and B into "n-by-"n blocks.! Conquer: multiply 8 "n-by-"n recursively.! Combine: add appropriate products using 4 matrix additions. Key idea. multiply -by- block matrices with only 7 multiplications. " C C " = A A " B B P = A " B # B ) # C C # A A # B B P = A + A ) " B " C C " = A A " B B # C C # A A # B B ) + A " B ) ) + A " B ) ) + A " B ) ) + A " B ) C = A " B C = A " B C = A " B C = A " B C = P 5 + P 4 " P + P 6 C = P + P C = P 3 + P 4 C = P 5 + P " P 3 " P 7 P 3 = A + A ) " B P 4 = A " B # B ) P 5 = A + A ) " B + B ) P 6 = A # A ) " B + B ) P 7 = A # A ) " B + B ) ) Tn) = 8T n/ "n ) recursive calls add, form submatrices # Tn) = "n 3 )! 7 multiplications.! 8 = 8 + additions and subtractions).

4 Fast atrix ultiplication Fast atrix ultiplication in Practice Fast matrix multiplication. [Strassen, 969]! Divide: partition A and B into "n-by-"n blocks.! Compute: 4 "n-by-"n matrices via matrix additions.! Conquer: multiply 7 pairs of "n-by-"n matrices recursively.! Combine: 7 products into 4 terms using 8 matrix additions. Analysis.! Assume n is a power of.! Tn) = # arithmetic operations. ) Tn) = 7T n / "n ) # Tn) = "n 4 43 log 7 ) = On.8 ) recursive calls add, subtract Implementation issues.! Sparsity.! Caching effects.! Numerical stability.! Odd matrix dimensions.! Crossover to classical algorithm around n = 8. Common misperception: "Strassen is only a theoretical curiosity."! Advanced Computation Group at Apple Computer reports 8x speedup on G4 Velocity Engine when n,5.! Range of instances where its useful is a subject of controversy. Remark. Can "Strassenize" Ax=b, determinant, eigenvalues,. 3 4 Fast atrix ultiplication in Theory Fast atrix ultiplication in Theory Q. ultiply two -by- matrices with 7 scalar multiplications? A. Yes! [Strassen, 969] "n log 7 ) = On.87 ) Q. ultiply two -by- matrices with 6 scalar multiplications? A. Impossible. [Hopcroft and Kerr, 97] "n log 6 ) = On.59 ) Q. Two 3-by-3 matrices with scalar multiplications? A. Also impossible. "n log 3 ) = On.77 ) Best known. On.376 ) [Coppersmith-Winograd, 987] Conjecture. On + ) for any >. Caveat. Theoretical improvements to Strassen are progressively less practical. Begun, the decimal wars have. [Pan, Bini et al, Schönhage, ]! Two -by- matrices with 4,46 scalar multiplications. On.85 )! Two 48-by-48 matrices with 47,7 scalar multiplications. On.78 )! A year later. On.7799 )! December, 979. On.583 )! January, 98. On.58 ) 5 6

5 Time Domain vs. Frequency Domain 5.6 Convolution and FFT Signal. [touch tone button ] yt) = sin" # 697 t) + sin" # 9 t) Time domain. sound pressure time seconds) Frequency domain..5 amplitude frequency Hz) Reference: Cleve oler, Numerical Computing with ATLAB 8 Time Domain vs. Frequency Domain Fast Fourier Transform Signal. [recording, 89 samples per second] FFT. Fast way to convert between time-domain and frequency-domain. Alternate viewpoint. Fast way to add, multiply, and evaluate polynomials. we take this approach agnitude of discrete Fourier transform. If you speed up any nontrivial algorithm by a factor of a million or so the world will beat a path towards finding useful applications for it. -Numerical Recipes Reference: Cleve oler, Numerical Computing with ATLAB 9

6 Fast Fourier Transform: Applications Fast Fourier Transform: Brief History Applications.! Optics, acoustics, quantum physics, telecommunications, radar, control systems, signal processing, speech recognition, data compression, image processing, seismology, mass spectrometry! Digital media. [DVD, JPEG, P3, H.64]! edical diagnostics. [RI, CT, PET scans, ultrasound]! Numerical solutions to Poissons equation.! Shors quantum factoring algorithm.! Gauss 85, 866). Analyzed periodic motion of asteroid Ceres. Runge-König 94). Laid theoretical groundwork. Danielson-Lanczos 94). Efficient algorithm, x-ray crystallography. Cooley-Tukey 965). onitoring nuclear tests in Soviet Union and tracking submarines. Rediscovered and popularized FFT. The FFT is one of the truly great computational developments of [the th] century. It has changed the face of science and engineering so much that it is not an exaggeration to say that life as we know it would be very different without the FFT. -Charles van Loan Importance not fully realized until advent of digital computers. Polynomials: Coefficient Representation Polynomials: Point-Value Representation Polynomial. [coefficient ] Ax) = a + a x + a x +L+ a n" x n" Bx) = b + b x + b x +L+ b n" x n" Add. On) arithmetic operations. Ax)+ Bx) = a +b )+a +b )x +L+ a n" +b n" )x n" Fundamental theorem of algebra. [Gauss, PhD thesis] A degree n polynomial with complex coefficients has exactly n complex roots. Corollary. A degree n- polynomial Ax) is uniquely specified by its evaluation at n distinct values of x. y Evaluate. On) using Horners method. Ax) = a +xa + xa +L+ xa n" + xa n" ))L)) ultiply convolve). On ) using brute force. n# Ax)" Bx) = c i x i, where c i = a j b i# j i = j = i y j = Ax j ) x j x 3 5

7 Polynomials: Point-Value Representation Converting Between Two Polynomial Representations Polynomial. [point-value ] Ax) : x, y ), K, x n-, y n" ) Bx) : x, z ), K, x n-, z n" ) Add. On) arithmetic operations. Ax)+ Bx) : x, y + z ),K, x n-, y n" + z n" ) Tradeoff. Fast evaluation or fast multiplication. We want both! Representation ultiply Evaluate Coefficient On ) On) Point-value On) On ) ultiply convolve). On), but need n- points. Ax) " Bx) : x, y " z ),K, x n-, y n# " z n# ) Goal. ake all ops fast by efficiently converting between two s. Evaluate. On ) using Lagranges formula. x " x j ) n" j#k Ax) = y k k= x k " x j ) j#k a, a,k, a n- x, y ), K, x n", y n" ) coefficient point-value 6 7 Converting Between Two Representations: Brute Force Coefficient to Point-Value Representation: Intuition Coefficient ) point-value. Given a polynomial a + a x a n- x n-, evaluate it at n distinct points x,..., x n-. Coefficient ) point-value. Given a polynomial a + a x a n- x n-, evaluate it at n distinct points x,..., x n-. we get to choose which ones! # y y y y n" = # n" x x L x # a n" x x L x a n" x x L x a O n" x n" x n" L x n" a n" On ) via matrix-vector multiply On 3 ) via Gaussian elimination Divide. Break polynomial up into even and odd powers.! Ax) = a + a x + a x + a 3 x 3 + a 4 x 4 + a 5 x 5 + a 6 x 6 + a 7 x 7.! A even x) = a + a x + a 4 x + a 6 x 3.! A odd x) = a + a 3 x + a 5 x + a 7 x 3.! A-x) = A even x ) + x A odd x ).! A-x) = A even x ) - x A odd x ). Vandermonde matrix is invertible iff x i distinct Point-value ) coefficient. Given n distinct points x,..., x n- and values y,..., y n-, find unique polynomial a + a x a n- x n- that has given values at given points. Intuition. Choose two points to be ±.! A-) = A even ) + A odd ).! A-) = A even ) - A odd ). Can evaluate polynomial of degree * n at points by evaluating two polynomials of degree * "n at point. 8 9

8 Coefficient to Point-Value Representation: Intuition Discrete Fourier Transform Coefficient ) point-value. Given a polynomial a + a x a n- x n-, evaluate it at n distinct points x,..., x n-. Divide. Break polynomial up into even and odd powers.! Ax) = a + a x + a x + a 3 x 3 + a 4 x 4 + a 5 x 5 + a 6 x 6 + a 7 x 7.! A even x) = a + a x + a 4 x + a 6 x 3.! A odd x) = a + a 3 x + a 5 x + a 7 x 3.! A-x) = A even x ) + x A odd x ).! A-x) = A even x ) - x A odd x ). Intuition. Choose four points to be ±, ±i.! A-) = A even -) + A odd ).! A-) = A even -) - A odd -).! A-i) = A even -) + i A odd -).! A-i) = A even -) - i A odd -). we get to choose which ones! Can evaluate polynomial of degree * n at 4 points by evaluating two polynomials of degree * "n at points. Coefficient ) point-value. Given a polynomial a + a x a n- x n-, evaluate it at n distinct points x,..., x n-. Key idea. Choose x k = + k where + is principal n th root of unity. # y y y y 3 y n" = Discrete Fourier transform # L # ) ) ) 3 L ) n" ) ) 4 ) 6 L ) n") ) 3 ) 6 ) 9 L ) 3n") O ) n" ) n") ) 3n") L ) n")n") Fourier matrix F n a a a a 3 a n" 3 3 Roots of Unity Fast Fourier Transform Def. An n th root of unity is a complex number x such that x n =. Fact. The n th roots of unity are: +, +,, + n- where + = e, i / n. Pf. + k ) n = e, i k / n ) n = e, i ) k = -) k =. Fact. The "n th roots of unity are: -, -,, - n/- where - = e 4, i / n. Note. + = - and + ) k = - k = - = i + Goal. Evaluate a degree n- polynomial Ax) = a a n- x n- at its n th roots of unity: +, +,, + n-. Divide. Break up polynomial into even and odd powers.! A even x) = a + a x + a 4 x + + a n/- x n-)/.! A odd x) = a + a 3 x + a 5 x + + a n/- x n-)/.! Ax) = A even x ) + x A odd x ). Conquer. Evaluate A even x) and A odd x) at the "n th roots of unity: -, -,, - n/ = - = - n = 8 + = - = Combine.! A+ k+n ) = A even - k ) + + k A odd - k ), * k < "n! A+ k+ "n ) = A even - k ) - + k A odd - k ), * k < "n - k = + k ) = + k+ "n ) = - 3 = -i k+ "n = -+ k 3 33

9 FFT Algorithm FFT Summary fftn, a,a,,a n- ) { if n == ) return a e,e,,e n/- ). FFTn/, a,a,a 4,,a n- ) d,d,,d n/- ). FFTn/, a,a 3,a 5,,a n- ) Theorem. FFT algorithm evaluates a degree n- polynomial at each of the n th roots of unity in On log n) steps. assumes n is a power of Running time. Tn) = Tn /) + "n) # Tn) = "n log n) for k = to n/ - { + k. e,ik/n } y k+n/. e k + + k d k y k+n/. e k - + k d k On log n) } return y,y,,y n- ) a, a,k, a n- ", y ), K, " n#, y n# ) coefficient point-value Recursion Tree Point-Value to Coefficient Representation: Inverse DFT a, a, a, a 3, a 4, a 5, a 6, a 7 Goal. Given the values y,..., y n- of a degree n- polynomial at the n points +, +,, + n-, find unique) polynomial a + a x a n- x n- that has given values at given points. perfect shuffle a, a, a 4, a 6 a, a 4 a, a 6 a, a 3, a 5, a 7 a, a 5 a 3, a 7 # a a a a 3 a n" = # L " ) ) ) 3 L ) n" ) ) 4 ) 6 L ) n") ) 3 ) 6 ) 9 L ) 3n") O ) n" ) n") ) 3n") L ) n")n") # y y y y 3 y n" a a 4 a a 6 a a 5 a 3 a 7 Inverse DFT Fourier matrix inverse F n ) - "bit-reversed" order 36 37

10 Inverse FFT Inverse FFT: Proof of Correctness Claim. Inverse of Fourier matrix is given by following formula. G n L " # " # " #3 L " #n#) ) ) = " # " #4 " #6 L " #n#) ) n " #3 " #6 " #9 L " #3n#) ) ) O ) " #n#) " #n#) " #3n#) L " #n#)n#) ) Consequence. To compute inverse FFT, apply same algorithm but use + - = e -, i / n as principal n th root of unity and divide by n). Claim. F n and G n are inverses. Pf. Summation lemma. Let + be a principal n th root of unity. Then Pf. F n G n ) k k " = n n# " k j j= = n if k mod n otherwise! If k is a multiple of n then + k = ) sums to n. n j= n # k k ") j j= # k j # j k " = = n! Each n th root of unity + k is a root of x n - = x - ) + x + x x n- ).! if + k / we have: + + k + + k) kn-) = ) sums to.! if k = k " otherwise summation lemma Inverse FFT: Algorithm Inverse FFT Summary ifftn, a,a,,a n- ) { if n == ) return a Theorem. Inverse FFT algorithm interpolates a degree n- polynomial given values at each of the n th roots of unity in On log n) steps. assumes n is a power of e,e,,e n/- ). FFTn/, a,a,a 4,,a n- ) d,d,,d n/- ). FFTn/, a,a 3,a 5,,a n- ) } for k = to n/ - { + k. e -,ik/n } y k+n/. e k + + k d k ) / n y k+n/. e k - + k d k ) / n return y,y,,y n- ) a, a,k, a n- ", y ), K, " n#, y n# ) coefficient On log n) On log n) point-value 4 4

11 Polynomial ultiplication FFT in Practice Theorem. Can multiply two degree n- polynomials in On log n) steps. coefficient coefficient a, a,k, a n- b, b,k, b n- c, c,k, c n- FFT On log n) inverse FFT On log n) Fastest Fourier transform in the West. [Frigo and Johnson]! Optimized C library.! Features: DFT, DCT, real, complex, any size, any dimension.! Won 999 Wilkinson Prize for Numerical Software.! Portable, competitive with vendor-tuned code. Implementation details.! Instead of executing predetermined algorithm, it evaluates your hardware and uses a special-purpose compiler to generate an optimized algorithm catered to "shape" of the problem.! Core algorithm is nonrecursive version of Cooley-Tukey radix FFT.! On log n), even for prime sizes. Ax ),K, Ax n- ) point-value multiplication Bx ),K, Bx n- ) Cx ), Cx ),K, Cx n- ) On) Reference: Integer ultiplication, Redux Integer multiplication. Given two n bit integers a = a n- a a and b = b n- b b, compute their product a! b. Convolution algorithm. Ax) = a + a x + a x +L+ a n" x n"! Form two polynomials.! Note: a = A), b = B). Bx) = b +b x +b x +L+ b n" x n"! Compute Cx) = Ax)! Bx).! Evaluate C) = a! b.! Running time: On log n) complex arithmetic operations. Theory. [Schönhage-Strassen 97] On log n log log n) bit operations. "the fastest bignum library on the planet" Practice. [GNU ultiple Precision Arithmetic Library] It uses brute force, Karatsuba, and FFT, depending on the size of n. 45

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design and Analysis LECTURE 14 Divide and Conquer Fast Fourier Transform Sofya Raskhodnikova 10/7/2016 S. Raskhodnikova; based on slides by K. Wayne. 5.6 Convolution and FFT Fast Fourier Transform:

More information

5.6 Convolution and FFT

5.6 Convolution and FFT 5.6 Convolution and FFT Fast Fourier Transform: Applications Applications. Optics, acoustics, quantum physics, telecommunications, control systems, signal processing, speech recognition, data compression,

More information

DIVIDE AND CONQUER II

DIVIDE AND CONQUER II DIVIDE AND CONQUER II master theorem integer multiplication matrix multiplication convolution and FFT Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

Matrix Multiplication

Matrix Multiplication Matrix Multiplication Matrix Multiplication Matrix multiplication. Given two n-by-n matrices A and B, compute C = AB. n c ij = a ik b kj k=1 c 11 c 12 c 1n c 21 c 22 c 2n c n1 c n2 c nn = a 11 a 12 a 1n

More information

Design and Analysis of Algorithms

Design and Analysis of Algorithms Design and Analysis of Algorithms CSE 5311 Lecture 5 Divide and Conquer: Fast Fourier Transform Junzhou Huang, Ph.D. Department of Computer Science and Engineering CSE5311 Design and Analysis of Algorithms

More information

! Break up problem into several parts. ! Solve each part recursively. ! Combine solutions to sub-problems into overall solution.

! Break up problem into several parts. ! Solve each part recursively. ! Combine solutions to sub-problems into overall solution. Divide-and-Conquer Chapter 5 Divide and Conquer Divide-and-conquer.! Break up problem into several parts.! Solve each part recursively.! Combine solutions to sub-problems into overall solution. Most common

More information

Chapter 5. Divide and Conquer. CS 350 Winter 2018

Chapter 5. Divide and Conquer. CS 350 Winter 2018 Chapter 5 Divide and Conquer CS 350 Winter 2018 1 Divide-and-Conquer Divide-and-conquer. Break up problem into several parts. Solve each part recursively. Combine solutions to sub-problems into overall

More information

Copyright 2000, Kevin Wayne 1

Copyright 2000, Kevin Wayne 1 Divide-and-Conquer Chapter 5 Divide and Conquer Divide-and-conquer. Break up problem into several parts. Solve each part recursively. Combine solutions to sub-problems into overall solution. Most common

More information

DIVIDE AND CONQUER II

DIVIDE AND CONQUER II DIVIDE AND CONQUER II master theorem integer multiplication matrix multiplication convolution and FFT SECTION 5.6 Fourier analysis Fourier theorem. [Fourier, Dirichlet, Riemann] Any sufficiently smooth)

More information

Chapter 5. Divide and Conquer CLRS 4.3. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Chapter 5. Divide and Conquer CLRS 4.3. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. Chapter 5 Divide and Conquer CLRS 4.3 Slides by Kevin Wayne. Copyright 25 Pearson-Addison Wesley. All rights reserved. Divide-and-Conquer Divide-and-conquer. Break up problem into several parts. Solve

More information

Chapter 5. Divide and Conquer CLRS 4.3. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Chapter 5. Divide and Conquer CLRS 4.3. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. Chapter 5 Divide and Conquer CLRS 4.3 Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 1 Divide-and-Conquer Divide-and-conquer. Break up problem into several parts. Solve

More information

DIVIDE AND CONQUER II

DIVIDE AND CONQUER II DIVIDE AND CONQUER II master theorem integer multiplication matrix multiplication convolution and FFT DIVIDE AND CONQUER II master theorem integer multiplication matrix multiplication convolution and FFT

More information

The Fast Fourier Transform. Andreas Klappenecker

The Fast Fourier Transform. Andreas Klappenecker The Fast Fourier Transform Andreas Klappenecker Motivation There are few algorithms that had more impact on modern society than the fast Fourier transform and its relatives. The applications of the fast

More information

DIVIDE AND CONQUER II

DIVIDE AND CONQUER II DIVIDE AND CONQUER II DIVIDE AND CONQUER II master theorem integer multiplication matrix multiplication convolution and FFT master theorem integer multiplication matrix multiplication convolution and FFT

More information

Copyright 2000, Kevin Wayne 1

Copyright 2000, Kevin Wayne 1 //8 Fast Integer Division Too (!) Schönhage Strassen algorithm CS 8: Algorithm Design and Analysis Integer division. Given two n-bit (or less) integers s and t, compute quotient q = s / t and remainder

More information

CS 580: Algorithm Design and Analysis

CS 580: Algorithm Design and Analysis CS 580: Algorithm Design and Analysis Jeremiah Blocki Purdue University Spring 208 Announcement: Homework 3 due February 5 th at :59PM Final Exam (Tentative): Thursday, May 3 @ 8AM (PHYS 203) Recap: Divide

More information

The Fast Fourier Transform: A Brief Overview. with Applications. Petros Kondylis. Petros Kondylis. December 4, 2014

The Fast Fourier Transform: A Brief Overview. with Applications. Petros Kondylis. Petros Kondylis. December 4, 2014 December 4, 2014 Timeline Researcher Date Length of Sequence Application CF Gauss 1805 Any Composite Integer Interpolation of orbits of celestial bodies F Carlini 1828 12 Harmonic Analysis of Barometric

More information

Computational Methods CMSC/AMSC/MAPL 460

Computational Methods CMSC/AMSC/MAPL 460 Computational Methods CMSC/AMSC/MAPL 460 Fourier transform Balaji Vasan Srinivasan Dept of Computer Science Several slides from Prof Healy s course at UMD Last time: Fourier analysis F(t) = A 0 /2 + A

More information

FFT: Fast Polynomial Multiplications

FFT: Fast Polynomial Multiplications FFT: Fast Polynomial Multiplications Jie Wang University of Massachusetts Lowell Department of Computer Science J. Wang (UMass Lowell) FFT: Fast Polynomial Multiplications 1 / 20 Overview So far we have

More information

Kartsuba s Algorithm and Linear Time Selection

Kartsuba s Algorithm and Linear Time Selection CS 374: Algorithms & Models of Computation, Fall 2015 Kartsuba s Algorithm and Linear Time Selection Lecture 09 September 22, 2015 Chandra & Manoj (UIUC) CS374 1 Fall 2015 1 / 32 Part I Fast Multiplication

More information

Fast Polynomial Multiplication

Fast Polynomial Multiplication Fast Polynomial Multiplication Marc Moreno Maza CS 9652, October 4, 2017 Plan Primitive roots of unity The discrete Fourier transform Convolution of polynomials The fast Fourier transform Fast convolution

More information

CS S Lecture 5 January 29, 2019

CS S Lecture 5 January 29, 2019 CS 6363.005.19S Lecture 5 January 29, 2019 Main topics are #divide-and-conquer with #fast_fourier_transforms. Prelude Homework 1 is due Tuesday, February 5th. I hope you ve at least looked at it by now!

More information

Fast reversion of formal power series

Fast reversion of formal power series Fast reversion of formal power series Fredrik Johansson LFANT, INRIA Bordeaux RAIM, 2016-06-29, Banyuls-sur-mer 1 / 30 Reversion of power series F = exp(x) 1 = x + x 2 2! + x 3 3! + x 4 G = log(1 + x)

More information

The tangent FFT. D. J. Bernstein University of Illinois at Chicago

The tangent FFT. D. J. Bernstein University of Illinois at Chicago The tangent FFT D. J. Bernstein University of Illinois at Chicago Advertisement SPEED: Software Performance Enhancement for Encryption and Decryption A workshop on software speeds for secret-key cryptography

More information

feb abhi shelat Matrix, FFT

feb abhi shelat Matrix, FFT L7 feb 11 2016 abhi shelat Matrix, FFT userid: = Using the standard method, how many multiplications does it take to multiply two NxN matrices? cos( /4) = cos( /2) = sin( /4) = sin( /2) = Mergesort Karatsuba

More information

Divide and Conquer. Andreas Klappenecker. [based on slides by Prof. Welch]

Divide and Conquer. Andreas Klappenecker. [based on slides by Prof. Welch] Divide and Conquer Andreas Klappenecker [based on slides by Prof. Welch] Divide and Conquer Paradigm An important general technique for designing algorithms: divide problem into subproblems recursively

More information

CSE 421 Algorithms. T(n) = at(n/b) + n c. Closest Pair Problem. Divide and Conquer Algorithms. What you really need to know about recurrences

CSE 421 Algorithms. T(n) = at(n/b) + n c. Closest Pair Problem. Divide and Conquer Algorithms. What you really need to know about recurrences CSE 421 Algorithms Richard Anderson Lecture 13 Divide and Conquer What you really need to know about recurrences Work per level changes geometrically with the level Geometrically increasing (x > 1) The

More information

Computer Vision, Convolutions, Complexity and Algebraic Geometry

Computer Vision, Convolutions, Complexity and Algebraic Geometry Computer Vision, Convolutions, Complexity and Algebraic Geometry D. V. Chudnovsky, G.V. Chudnovsky IMAS Polytechnic Institute of NYU 6 MetroTech Center Brooklyn, NY 11201 December 6, 2012 Fast Multiplication:

More information

Sequential Fast Fourier Transform (PSC ) Sequential FFT

Sequential Fast Fourier Transform (PSC ) Sequential FFT Sequential Fast Fourier Transform (PSC 3.1 3.2) 1 / 18 Applications of Fourier analysis Fourier analysis studies the decomposition of functions into their frequency components. Piano Concerto no. 9 by

More information

CPSC 518 Introduction to Computer Algebra Asymptotically Fast Integer Multiplication

CPSC 518 Introduction to Computer Algebra Asymptotically Fast Integer Multiplication CPSC 518 Introduction to Computer Algebra Asymptotically Fast Integer Multiplication 1 Introduction We have now seen that the Fast Fourier Transform can be applied to perform polynomial multiplication

More information

Divide and Conquer: Polynomial Multiplication Version of October 1 / 7, 24201

Divide and Conquer: Polynomial Multiplication Version of October 1 / 7, 24201 Divide and Conquer: Polynomial Multiplication Version of October 7, 2014 Divide and Conquer: Polynomial Multiplication Version of October 1 / 7, 24201 Outline Outline: Introduction The polynomial multiplication

More information

E The Fast Fourier Transform

E The Fast Fourier Transform Fourier Transform Methods in Finance By Umberto Cherubini Giovanni Della Lunga Sabrina Mulinacci Pietro Rossi Copyright 2010 John Wiley & Sons Ltd E The Fast Fourier Transform E.1 DISCRETE FOURIER TRASFORM

More information

Speedy Maths. David McQuillan

Speedy Maths. David McQuillan Speedy Maths David McQuillan Basic Arithmetic What one needs to be able to do Addition and Subtraction Multiplication and Division Comparison For a number of order 2 n n ~ 100 is general multi precision

More information

shelat 16f-4800 sep Matrix Mult, Median, FFT

shelat 16f-4800 sep Matrix Mult, Median, FFT L5 shelat 16f-4800 sep 23 2016 Matrix Mult, Median, FFT merge-sort (A, p, r) if p

More information

On the computational complexity of mathematical functions

On the computational complexity of mathematical functions On the computational complexity of mathematical functions Jean-Pierre Demailly Institut Fourier, Université de Grenoble I & Académie des Sciences, Paris (France) November 26, 2011 KVPY conference at Vijyoshi

More information

Divide and Conquer algorithms

Divide and Conquer algorithms Divide and Conquer algorithms Another general method for constructing algorithms is given by the Divide and Conquer strategy. We assume that we have a problem with input that can be split into parts in

More information

CS711008Z Algorithm Design and Analysis

CS711008Z Algorithm Design and Analysis CS711008Z Algorithm Design and Analysis Lecture 5 FFT and Divide and Conquer Dongbo Bu Institute of Computing Technology Chinese Academy of Sciences, Beijing, China 1 / 56 Outline DFT: evaluate a polynomial

More information

Group-theoretic approach to Fast Matrix Multiplication

Group-theoretic approach to Fast Matrix Multiplication Jenya Kirshtein 1 Group-theoretic approach to Fast Matrix Multiplication Jenya Kirshtein Department of Mathematics University of Denver Jenya Kirshtein 2 References 1. H. Cohn, C. Umans. Group-theoretic

More information

CSE 548: Analysis of Algorithms. Lecture 4 ( Divide-and-Conquer Algorithms: Polynomial Multiplication )

CSE 548: Analysis of Algorithms. Lecture 4 ( Divide-and-Conquer Algorithms: Polynomial Multiplication ) CSE 548: Analysis of Algorithms Lecture 4 ( Divide-and-Conquer Algorithms: Polynomial Multiplication ) Rezaul A. Chowdhury Department of Computer Science SUNY Stony Brook Spring 2015 Coefficient Representation

More information

Fast Convolution; Strassen s Method

Fast Convolution; Strassen s Method Fast Convolution; Strassen s Method 1 Fast Convolution reduction to subquadratic time polynomial evaluation at complex roots of unity interpolation via evaluation at complex roots of unity 2 The Master

More information

CSE 421 Algorithms: Divide and Conquer

CSE 421 Algorithms: Divide and Conquer CSE 42 Algorithms: Divide and Conquer Larry Ruzzo Thanks to Richard Anderson, Paul Beame, Kevin Wayne for some slides Outline: General Idea algorithm design paradigms: divide and conquer Review of Merge

More information

Introduction to Algorithms 6.046J/18.401J/SMA5503

Introduction to Algorithms 6.046J/18.401J/SMA5503 Introduction to Algorithms 6.046J/8.40J/SMA5503 Lecture 3 Prof. Piotr Indyk The divide-and-conquer design paradigm. Divide the problem (instance) into subproblems. 2. Conquer the subproblems by solving

More information

Integer multiplication with generalized Fermat primes

Integer multiplication with generalized Fermat primes Integer multiplication with generalized Fermat primes CARAMEL Team, LORIA, University of Lorraine Supervised by: Emmanuel Thomé and Jérémie Detrey Journées nationales du Calcul Formel 2015 (Cluny) November

More information

Interpolation on the unit circle

Interpolation on the unit circle Lecture 2: The Fast Discrete Fourier Transform Interpolation on the unit circle So far, we have considered interpolation of functions at nodes on the real line. When we model periodic phenomena, it is

More information

Old and new algorithms for computing Bernoulli numbers

Old and new algorithms for computing Bernoulli numbers Old and new algorithms for computing Bernoulli numbers University of New South Wales 25th September 2012, University of Ballarat Bernoulli numbers Rational numbers B 0, B 1,... defined by: x e x 1 = n

More information

Parallelism in Computer Arithmetic: A Historical Perspective

Parallelism in Computer Arithmetic: A Historical Perspective Parallelism in Computer Arithmetic: A Historical Perspective 21s 2s 199s 198s 197s 196s 195s Behrooz Parhami Aug. 218 Parallelism in Computer Arithmetic Slide 1 University of California, Santa Barbara

More information

Fast Polynomials Multiplication Using FFT

Fast Polynomials Multiplication Using FFT Li Chen lichen.xd at gmail.com Xidian University January 17, 2014 Outline 1 Discrete Fourier Transform (DFT) 2 Discrete Convolution 3 Fast Fourier Transform (FFT) 4 umber Theoretic Transform (TT) 5 More

More information

Frequency Domain Finite Field Arithmetic for Elliptic Curve Cryptography

Frequency Domain Finite Field Arithmetic for Elliptic Curve Cryptography Frequency Domain Finite Field Arithmetic for Elliptic Curve Cryptography Selçuk Baktır, Berk Sunar {selcuk,sunar}@wpi.edu Department of Electrical & Computer Engineering Worcester Polytechnic Institute

More information

CPSC 518 Introduction to Computer Algebra Schönhage and Strassen s Algorithm for Integer Multiplication

CPSC 518 Introduction to Computer Algebra Schönhage and Strassen s Algorithm for Integer Multiplication CPSC 518 Introduction to Computer Algebra Schönhage and Strassen s Algorithm for Integer Multiplication March, 2006 1 Introduction We have now seen that the Fast Fourier Transform can be applied to perform

More information

Multiplying huge integers using Fourier transforms

Multiplying huge integers using Fourier transforms Fourier transforms October 25, 2007 820348901038490238478324 1739423249728934932894??? integers occurs in many fields of Computational Science: Cryptography Number theory... Traditional approaches to

More information

Fast Fourier Transform

Fast Fourier Transform Why Fourier Transform? Fast Fourier Transform Jordi Cortadella and Jordi Petit Department of Computer Science Polynomials: coefficient representation Divide & Conquer Dept. CS, UPC Polynomials: point-value

More information

Chapter 5 Divide and Conquer

Chapter 5 Divide and Conquer CMPT 705: Design and Analysis of Algorithms Spring 008 Chapter 5 Divide and Conquer Lecturer: Binay Bhattacharya Scribe: Chris Nell 5.1 Introduction Given a problem P with input size n, P (n), we define

More information

Implementation of the DKSS Algorithm for Multiplication of Large Numbers

Implementation of the DKSS Algorithm for Multiplication of Large Numbers Implementation of the DKSS Algorithm for Multiplication of Large Numbers Christoph Lüders Universität Bonn The International Symposium on Symbolic and Algebraic Computation, July 6 9, 2015, Bath, United

More information

Justify all your answers and write down all important steps. Unsupported answers will be disregarded.

Justify all your answers and write down all important steps. Unsupported answers will be disregarded. Numerical Analysis FMN011 10058 The exam lasts 4 hours and has 13 questions. A minimum of 35 points out of the total 70 are required to get a passing grade. These points will be added to those you obtained

More information

Chapter 1 Divide and Conquer Polynomial Multiplication Algorithm Theory WS 2015/16 Fabian Kuhn

Chapter 1 Divide and Conquer Polynomial Multiplication Algorithm Theory WS 2015/16 Fabian Kuhn Chapter 1 Divide and Conquer Polynomial Multiplication Algorithm Theory WS 2015/16 Fabian Kuhn Formulation of the D&C principle Divide-and-conquer method for solving a problem instance of size n: 1. Divide

More information

Reductions. Reduction. Linear Time Reduction: Examples. Linear Time Reductions

Reductions. Reduction. Linear Time Reduction: Examples. Linear Time Reductions Reduction Reductions Problem X reduces to problem Y if given a subroutine for Y, can solve X. Cost of solving X = cost of solving Y + cost of reduction. May call subroutine for Y more than once. Ex: X

More information

Remainders. We learned how to multiply and divide in elementary

Remainders. We learned how to multiply and divide in elementary Remainders We learned how to multiply and divide in elementary school. As adults we perform division mostly by pressing the key on a calculator. This key supplies the quotient. In numerical analysis and

More information

A design paradigm. Divide and conquer: (When) does decomposing a problem into smaller parts help? 09/09/ EECS 3101

A design paradigm. Divide and conquer: (When) does decomposing a problem into smaller parts help? 09/09/ EECS 3101 A design paradigm Divide and conquer: (When) does decomposing a problem into smaller parts help? 09/09/17 112 Multiplying complex numbers (from Jeff Edmonds slides) INPUT: Two pairs of integers, (a,b),

More information

PUTTING FÜRER ALGORITHM INTO PRACTICE WITH THE BPAS LIBRARY. (Thesis format: Monograph) Linxiao Wang. Graduate Program in Computer Science

PUTTING FÜRER ALGORITHM INTO PRACTICE WITH THE BPAS LIBRARY. (Thesis format: Monograph) Linxiao Wang. Graduate Program in Computer Science PUTTING FÜRER ALGORITHM INTO PRACTICE WITH THE BPAS LIBRARY. (Thesis format: Monograph) by Linxiao Wang Graduate Program in Computer Science A thesis submitted in partial fulfillment of the requirements

More information

Radix-4 Factorizations for the FFT with Ordered Input and Output

Radix-4 Factorizations for the FFT with Ordered Input and Output Radix-4 Factorizations for the FFT with Ordered Input and Output Vikrant 1, Ritesh Vyas 2, Sandeep Goyat 3, Jitender Kumar 4, Sandeep Kaushal 5 YMCA University of Science & Technology, Faridabad (Haryana),

More information

Periodic motions. Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more...

Periodic motions. Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more... Periodic motions Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more... Periodic motions There are several quantities which describe a periodic

More information

Introduction to Algorithms

Introduction to Algorithms Lecture 1 Introduction to Algorithms 1.1 Overview The purpose of this lecture is to give a brief overview of the topic of Algorithms and the kind of thinking it involves: why we focus on the subjects that

More information

University of the Virgin Islands, St. Thomas January 14, 2015 Algorithms and Programming for High Schoolers. Lecture 5

University of the Virgin Islands, St. Thomas January 14, 2015 Algorithms and Programming for High Schoolers. Lecture 5 University of the Virgin Islands, St. Thomas January 14, 2015 Algorithms and Programming for High Schoolers Numerical algorithms: Lecture 5 Today we ll cover algorithms for various numerical problems:

More information

How to Write Fast Numerical Code

How to Write Fast Numerical Code How to Write Fast Numerical Code Lecture: Discrete Fourier transform, fast Fourier transforms Instructor: Markus Püschel TA: Georg Ofenbeck & Daniele Spampinato Rest of Semester Today Lecture Project meetings

More information

Algorithms 6.5 REDUCTIONS. designing algorithms establishing lower bounds classifying problems intractability

Algorithms 6.5 REDUCTIONS. designing algorithms establishing lower bounds classifying problems intractability 6.5 REDUCTIONS Algorithms F O U R T H E D I T I O N designing algorithms establishing lower bounds classifying problems intractability R O B E R T S E D G E W I C K K E V I N W A Y N E Algorithms, 4 th

More information

CS168: The Modern Algorithmic Toolbox Lecture #11: The Fourier Transform and Convolution

CS168: The Modern Algorithmic Toolbox Lecture #11: The Fourier Transform and Convolution CS168: The Modern Algorithmic Toolbox Lecture #11: The Fourier Transform and Convolution Tim Roughgarden & Gregory Valiant May 8, 2015 1 Intro Thus far, we have seen a number of different approaches to

More information

Faster integer multiplication using short lattice vectors

Faster integer multiplication using short lattice vectors Faster integer multiplication using short lattice vectors David Harvey and Joris van der Hoeven ANTS XIII, University of Wisconsin, Madison, July 2018 University of New South Wales / CNRS, École Polytechnique

More information

Lecture 20: Discrete Fourier Transform and FFT

Lecture 20: Discrete Fourier Transform and FFT EE518 Digital Signal Processing University of Washington Autumn 2001 Dept of Electrical Engineering Lecture 20: Discrete Fourier Transform and FFT Dec 10, 2001 Prof: J Bilmes TA:

More information

RSA Implementation. Oregon State University

RSA Implementation. Oregon State University RSA Implementation Çetin Kaya Koç Oregon State University 1 Contents: Exponentiation heuristics Multiplication algorithms Computation of GCD and Inverse Chinese remainder algorithm Primality testing 2

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND Second Online Version, December 998 Comments to the author at krm@mathsuqeduau All contents copyright c 99 Keith

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K. R. MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND Second Online Version, December 1998 Comments to the author at krm@maths.uq.edu.au Contents 1 LINEAR EQUATIONS

More information

How to Write Fast Numerical Code Spring 2012 Lecture 19. Instructor: Markus Püschel TAs: Georg Ofenbeck & Daniele Spampinato

How to Write Fast Numerical Code Spring 2012 Lecture 19. Instructor: Markus Püschel TAs: Georg Ofenbeck & Daniele Spampinato How to Write Fast Numerical Code Spring 2012 Lecture 19 Instructor: Markus Püschel TAs: Georg Ofenbeck & Daniele Spampinato Miscellaneous Roofline tool Project report etc. online Midterm (solutions online)

More information

The divide-and-conquer strategy solves a problem by: 1. Breaking it into subproblems that are themselves smaller instances of the same type of problem

The divide-and-conquer strategy solves a problem by: 1. Breaking it into subproblems that are themselves smaller instances of the same type of problem Chapter 2. Divide-and-conquer algorithms The divide-and-conquer strategy solves a problem by: 1. Breaking it into subproblems that are themselves smaller instances of the same type of problem. 2. Recursively

More information

Faster arithmetic for number-theoretic transforms

Faster arithmetic for number-theoretic transforms University of New South Wales 7th October 2011, Macquarie University Plan for talk 1. Review number-theoretic transform (NTT) 2. Discuss typical butterfly algorithm 3. Improvements to butterfly algorithm

More information

Fast reversion of power series

Fast reversion of power series Fast reversion of power series Fredrik Johansson November 2011 Overview Fast power series arithmetic Fast composition and reversion (Brent and Kung, 1978) A new algorithm for reversion Implementation results

More information

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

Linear Algebra: Lecture notes from Kolman and Hill 9th edition. Linear Algebra: Lecture notes from Kolman and Hill 9th edition Taylan Şengül March 20, 2019 Please let me know of any mistakes in these notes Contents Week 1 1 11 Systems of Linear Equations 1 12 Matrices

More information

Chapter 1 Divide and Conquer Algorithm Theory WS 2016/17 Fabian Kuhn

Chapter 1 Divide and Conquer Algorithm Theory WS 2016/17 Fabian Kuhn Chapter 1 Divide and Conquer Algorithm Theory WS 2016/17 Fabian Kuhn Formulation of the D&C principle Divide-and-conquer method for solving a problem instance of size n: 1. Divide n c: Solve the problem

More information

The Discrete Fourier transform

The Discrete Fourier transform 453.70 Linear Systems, S.M. Tan, The University of uckland 9- Chapter 9 The Discrete Fourier transform 9. DeÞnition When computing spectra on a computer it is not possible to carry out the integrals involved

More information

Three Ways to Test Irreducibility

Three Ways to Test Irreducibility Outline Three Ways to Test Irreducibility Richard P. Brent Australian National University joint work with Paul Zimmermann INRIA, Nancy France 8 Dec 2008 Polynomials over finite fields Irreducibility criteria

More information

Math 312/ AMS 351 (Fall 17) Sample Questions for Final

Math 312/ AMS 351 (Fall 17) Sample Questions for Final Math 312/ AMS 351 (Fall 17) Sample Questions for Final 1. Solve the system of equations 2x 1 mod 3 x 2 mod 7 x 7 mod 8 First note that the inverse of 2 is 2 mod 3. Thus, the first equation becomes (multiply

More information

CS483 Design and Analysis of Algorithms

CS483 Design and Analysis of Algorithms CS483 Design and Analysis of Algorithms Lecture 6-8 Divide and Conquer Algorithms Instructor: Fei Li lifei@cs.gmu.edu with subject: CS483 Office hours: STII, Room 443, Friday 4:00pm - 6:00pm or by appointments

More information

Chapter 5. Divide and Conquer. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

Chapter 5. Divide and Conquer. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. Chapter 5 Divide and Conquer Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved. 1 Divide-and-Conquer Divide-and-conquer. Break up problem into several parts. Solve each

More information

Divide and Conquer. Maximum/minimum. Median finding. CS125 Lecture 4 Fall 2016

Divide and Conquer. Maximum/minimum. Median finding. CS125 Lecture 4 Fall 2016 CS125 Lecture 4 Fall 2016 Divide and Conquer We have seen one general paradigm for finding algorithms: the greedy approach. We now consider another general paradigm, known as divide and conquer. We have

More information

Divide and Conquer. Chapter Overview. 1.2 Divide and Conquer

Divide and Conquer. Chapter Overview. 1.2 Divide and Conquer Chapter 1 Divide and Conquer 1.1 Overview This chapter introduces Divide and Conquer, which is a technique for designing recursive algorithms that are (sometimes) asymptotically efficient. It also presents

More information

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. Congruences Let n be a postive integer. The integers a and b are called congruent modulo n if they have the same

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND First Printing, 99 Chapter LINEAR EQUATIONS Introduction to linear equations A linear equation in n unknowns x,

More information

Review of Vectors and Matrices

Review of Vectors and Matrices A P P E N D I X D Review of Vectors and Matrices D. VECTORS D.. Definition of a Vector Let p, p, Á, p n be any n real numbers and P an ordered set of these real numbers that is, P = p, p, Á, p n Then P

More information

feb abhi shelat FFT,Median

feb abhi shelat FFT,Median L8 feb 16 2016 abhi shelat FFT,Median merge-sort (A, p, r) if pn B[k] A[i];

More information

THE COMPLEXITY OF THE QUATERNION PROD- UCT*

THE COMPLEXITY OF THE QUATERNION PROD- UCT* 1 THE COMPLEXITY OF THE QUATERNION PROD- UCT* Thomas D. Howell Jean-Claude Lafon 1 ** TR 75-245 June 1975 2 Department of Computer Science, Cornell University, Ithaca, N.Y. * This research was supported

More information

Discrete Mathematics U. Waterloo ECE 103, Spring 2010 Ashwin Nayak May 17, 2010 Recursion

Discrete Mathematics U. Waterloo ECE 103, Spring 2010 Ashwin Nayak May 17, 2010 Recursion Discrete Mathematics U. Waterloo ECE 103, Spring 2010 Ashwin Nayak May 17, 2010 Recursion During the past week, we learnt about inductive reasoning, in which we broke down a problem of size n, into one

More information

Transforms and Orthogonal Bases

Transforms and Orthogonal Bases Orthogonal Bases Transforms and Orthogonal Bases We now turn back to linear algebra to understand transforms, which map signals between different domains Recall that signals can be interpreted as vectors

More information

Week 15-16: Combinatorial Design

Week 15-16: Combinatorial Design Week 15-16: Combinatorial Design May 8, 2017 A combinatorial design, or simply a design, is an arrangement of the objects of a set into subsets satisfying certain prescribed properties. The area of combinatorial

More information

College Algebra and Trigonometry

College Algebra and Trigonometry GLOBAL EDITION College Algebra and Trigonometry THIRD EDITION J. S. Ratti Marcus McWaters College Algebra and Trigonometry, Global Edition Table of Contents Cover Title Page Contents Preface Resources

More information

Matrix Arithmetic. j=1

Matrix Arithmetic. j=1 An m n matrix is an array A = Matrix Arithmetic a 11 a 12 a 1n a 21 a 22 a 2n a m1 a m2 a mn of real numbers a ij An m n matrix has m rows and n columns a ij is the entry in the i-th row and j-th column

More information

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 11 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,, a n, b are given real

More information

CS/COE 1501 cs.pitt.edu/~bill/1501/ Integer Multiplication

CS/COE 1501 cs.pitt.edu/~bill/1501/ Integer Multiplication CS/COE 1501 cs.pitt.edu/~bill/1501/ Integer Multiplication Integer multiplication Say we have 5 baskets with 8 apples in each How do we determine how many apples we have? Count them all? That would take

More information

Three Ways to Test Irreducibility

Three Ways to Test Irreducibility Three Ways to Test Irreducibility Richard P. Brent Australian National University joint work with Paul Zimmermann INRIA, Nancy France 12 Feb 2009 Outline Polynomials over finite fields Irreducibility criteria

More information

Toeplitz matrices. Niranjan U N. May 12, NITK, Surathkal. Definition Toeplitz theory Computational aspects References

Toeplitz matrices. Niranjan U N. May 12, NITK, Surathkal. Definition Toeplitz theory Computational aspects References Toeplitz matrices Niranjan U N NITK, Surathkal May 12, 2010 Niranjan U N (NITK, Surathkal) Linear Algebra May 12, 2010 1 / 15 1 Definition Toeplitz matrix Circulant matrix 2 Toeplitz theory Boundedness

More information

Sequential Fast Fourier Transform

Sequential Fast Fourier Transform Sequential Fast Fourier Transform Departement Computerwetenschappen Room 03.018 (Celestijnenlaan 200A) albert-jan.yzelman@cs.kuleuven.be Includes material from slides by Prof. dr. Rob H. Bisseling Applications

More information