Divide-and-conquer algorithms | Computer arithmetic algorithms | Multiplication

Karatsuba algorithm

The Karatsuba algorithm is a fast multiplication algorithm. It was discovered by Anatoly Karatsuba in 1960 and published in 1962. It is a divide-and-conquer algorithm that reduces the multiplication of two n-digit numbers to three multiplications of n/2-digit numbers and, by repeating this reduction, to at most single-digit multiplications. It is therefore asymptotically faster than the traditional algorithm, which performs single-digit products. For example, the traditional algorithm requires (210)2 = 1,048,576 single-digit multiplications to multiply two 1024-digit numbers (n = 1024 = 210), whereas the Karatsuba algorithm requires 310 = 59,049 thus being ~17.758 times faster. The Karatsuba algorithm was the first multiplication algorithm asymptotically faster than the quadratic "grade school" algorithm.The Toom–Cook algorithm (1963) is a faster generalization of Karatsuba's method, and the Schönhage–Strassen algorithm (1971) is even faster, for sufficiently large n. (Wikipedia).

Karatsuba algorithm
Video thumbnail

How Karatsuba's algorithm gave us new ways to multiply

To advance the field of computer science, mathematician Kolmogorov tried to optimise the multiplication algorithm we learn in elementary school. After failing to do so, he conjectured that no faster algorithms exist. This gave rise to Karatsuba's fast multiplication algorithm, an algorithm

From playlist Summer of Math Exposition Youtube Videos

Video thumbnail

Recitation 12: Karatsuba Multiplication, Newton's Method

MIT 6.006 Introduction to Algorithms, Fall 2011 View the complete course: http://ocw.mit.edu/6-006F11 Instructor: Victor Costan License: Creative Commons BY-NC-SA More information at http://ocw.mit.edu/terms More courses at http://ocw.mit.edu

From playlist MIT 6.006 Introduction to Algorithms, Fall 2011

Video thumbnail

Lecture 12: Square Roots, Newton's Method

MIT 6.006 Introduction to Algorithms, Fall 2011 View the complete course: http://ocw.mit.edu/6-006F11 Instructor: Srini Devadas License: Creative Commons BY-NC-SA More information at http://ocw.mit.edu/terms More courses at http://ocw.mit.edu

From playlist MIT 6.006 Introduction to Algorithms, Fall 2011

Video thumbnail

Eliminating the parameter for parametric trigonometric

Learn how to eliminate the parameter in a parametric equation. A parametric equation is a set of equations that express a set of quantities as explicit functions of a number of independent variables, known as parameters. Eliminating the parameter allows us to write parametric equation in r

From playlist Parametric Equations

Video thumbnail

Lecture 11: Integer Arithmetic, Karatsuba Multiplication

MIT 6.006 Introduction to Algorithms, Fall 2011 View the complete course: http://ocw.mit.edu/6-006F11 Instructor: Srini Devadas License: Creative Commons BY-NC-SA More information at http://ocw.mit.edu/terms More courses at http://ocw.mit.edu

From playlist MIT 6.006 Introduction to Algorithms, Fall 2011

Video thumbnail

Solving for sine with no constraints

👉 Learn how to solve trigonometric equations. There are various methods that can be used to evaluate trigonometric identities, they include by factoring out the GCF and simplifying the factored equation. Another method is to use a trigonometric identity to reduce and then simplify the give

From playlist Solve Trigonometric Equations

Video thumbnail

23C3: How to implement bignum arithmetic

Speaker: Felix von Leitner A short look at my pet project implementation Assembly language skills are a bonus, but not strictly required. This lecture will explain how software like OpenSSL and GnuPG do their arithmetic on 1024 bit numbers. This is not about how RSA works, or about how

From playlist 23C3: Who can you trust

Video thumbnail

Centrality - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

Solving a trigonometric equation with applying pythagorean identity

👉 Learn how to solve trigonometric equations. There are various methods that can be used to evaluate trigonometric equations, they include factoring out the GCF and simplifying the factored equation. Another method is to use a trigonometric identity to reduce and then simplify the given eq

From playlist Solve Trigonometric Equations by Factoring

Video thumbnail

Learn how to eliminate the parameter with trig functions

Learn how to eliminate the parameter in a parametric equation. A parametric equation is a set of equations that express a set of quantities as explicit functions of a number of independent variables, known as parameters. Eliminating the parameter allows us to write parametric equation in r

From playlist Parametric Equations

Video thumbnail

Learn how to find all the solutions to a trigonometric equation

👉 Learn how to solve trigonometric equations. There are various methods that can be used to evaluate trigonometric identities, they include by factoring out the GCF and simplifying the factored equation. Another method is to use a trigonometric identity to reduce and then simplify the give

From playlist Solve Trigonometric Equations

Video thumbnail

Olivier Ramaré: Some news on bilinear decomposition of the Möbius function

Find this video and other talks given by worldwide mathematicians on CIRM's Audiovisual Mathematics Library: http://library.cirm-math.fr. And discover all its functionalities: - Chapter markers and keywords to watch the parts of your choice in the video - Videos enriched with abstracts, b

From playlist Number Theory

Video thumbnail

Finding the solutions to a trigonometric equation

👉 Learn how to solve trigonometric equations by factoring out the GCF. When solving trigonometric equations involving the multiples of the same trigonometric function. It is very useful to collect similar trigonometric functions together and then factor out the GCF. This enables us to use

From playlist Solve Trigonometric Equations

Video thumbnail

Recitation 18: Quiz 2 Review

MIT 6.006 Introduction to Algorithms, Fall 2011 View the complete course: http://ocw.mit.edu/6-006F11 Instructor: Victor Costan License: Creative Commons BY-NC-SA More information at http://ocw.mit.edu/terms More courses at http://ocw.mit.edu

From playlist MIT 6.006 Introduction to Algorithms, Fall 2011

Video thumbnail

Learn how to eliminate the parameter with trig

Learn how to eliminate the parameter in a parametric equation. A parametric equation is a set of equations that express a set of quantities as explicit functions of a number of independent variables, known as parameters. Eliminating the parameter allows us to write parametric equation in r

From playlist Parametric Equations

Video thumbnail

Solving a trigonometric equation on the interval of 0 and 2pi

👉 Learn how to solve trigonometric equations. There are various methods that can be used to evaluate trigonometric equations, they include factoring out the GCF and simplifying the factored equation. Another method is to use a trigonometric identity to reduce and then simplify the given eq

From playlist Solve Trigonometric Equations by Taking the Square Root

Video thumbnail

How 2 multiply Day 1

Broadcasted live on Twitch -- Watch live at https://www.twitch.tv/simuleios

From playlist Misc

Video thumbnail

A2 A Second order polynomial

More on the Desmos calculator software. In this video I show you how to use the software to get familiar with properties of graphs of functions.

From playlist Biomathematics

Related pages

Big O notation | Schönhage–Strassen algorithm | Time complexity | Radix | Toom–Cook multiplication | Carry-save adder | Recurrence relation | Computational complexity theory | Andrey Kolmogorov | Imaginary unit | Divide-and-conquer algorithm | Anatoly Karatsuba | Binary multiplier | Recursion | Master theorem (analysis of algorithms) | Multiplication algorithm