GCD, Bezout, and Modular Inverses | The Extended Euclidean Algorithm

  Рет қаралды 6,250

William Y. Feng

William Y. Feng

Күн бұрын

In this video, I talk about the Extended Euclidean Algorithm, a method for solving integer equations of the form ax + by = n.
Wikipedia article: en.wikipedia.org/wiki/Extende...
Code: github.com/womogenes/extended...
00:00 Intro
00:34 The gcd function
01:48 The standard Euclidean algorithm
05:28 Implementing the standard Euclidean algorithm
07:22 Extending the Euclidean algorithm
08:08 Worked example
15:14 Generalization
16:40 Implementing the Extended Euclidean Algorithm
18:42 Application - modular inverses
21:16 Summary

Пікірлер: 14
@voltflake
@voltflake 2 жыл бұрын
Man, your videos are some of the best youtube/internet has about this topic. Thank you so much!
@aiham224
@aiham224 Жыл бұрын
I F agree, i have been struggling for days to understand this
@tanhnguyen2025
@tanhnguyen2025 2 ай бұрын
very easy to understand.
@jdhp3696
@jdhp3696 2 жыл бұрын
Thanks for the awesome video.
@januaryjohnson8107
@januaryjohnson8107 2 жыл бұрын
Great video! Thanks so much!!
@Luke-jh5hi
@Luke-jh5hi 2 жыл бұрын
Second semester Computer Science and thanks to you I believe I'll graduate one day 😁
@fredpim11
@fredpim11 Жыл бұрын
great video and explanation maybe something on "the baby step giant step algorythm... on the continuation... thanks for your share
@AlexTurbo
@AlexTurbo 2 жыл бұрын
thank you
@thomasyang9517
@thomasyang9517 Жыл бұрын
good vid
@Lucas-pj9ns
@Lucas-pj9ns 2 жыл бұрын
is there any guarantees on the maximum size of x and y? trying to code this up in c++ and im worried about overflow
@TheStephenShu
@TheStephenShu Жыл бұрын
I found 77(23)+30(-59)=1. I wonder how to find different solutions
@fredpim11
@fredpim11 Жыл бұрын
when you get one particular solution you get every other ones: 77a + 30b=1 one solution you get is a=23 and b=-59 here you have to think at this form 77a=1mod 30 and 30b=1mod77 the other solutions of a are mod30 and mod 77 for b a are more or minus 30 and b are more or minus 77 a=-7, b=18 a=23, b=-59 a=-37, b=95 a=53,b=-137 etc...
@skaunov_code
@skaunov_code Жыл бұрын
I guess it doesn't take polynomials into account? Is there a version with them? X)
@Luke-jh5hi
@Luke-jh5hi 2 жыл бұрын
And please make a video about RSA🙏
Extended Euclidean Algorithm Example
14:50
John Bowers
Рет қаралды 308 М.
The extended Euclidean algorithm in one simple idea
10:59
Proof of Concept
Рет қаралды 11 М.
No empty
00:35
Mamasoboliha
Рет қаралды 10 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 45 МЛН
The Euclidean Algorithm:  How and Why, Visually
13:29
Proof of Concept
Рет қаралды 30 М.
The math behind Fermat's Last Theorem | Modular Forms
14:37
MathKiwi
Рет қаралды 43 М.
Bézout's identity: ax+by=gcd(a,b)
18:20
blackpenredpen
Рет қаралды 78 М.
The Extended Euclidean algorithm
12:11
GVSUmath
Рет қаралды 493 М.
EUCLIDEAN ALGORITHM - DISCRETE MATHEMATICS
10:02
TrevTutor
Рет қаралды 268 М.
Расширенный алгоритм Евклида.
21:21
Igor Mamay
Рет қаралды 2,5 М.
Mathematicians Use Numbers Differently From The Rest of Us
33:06
Veritasium
Рет қаралды 6 МЛН
It's Clash Anime Season! Happy 12th Clashiversary!
0:35
Clash of Clans
Рет қаралды 5 МЛН
БАТЯ ПОМОГАЕТ МНЕ СБЕЖАТЬ в Schoolboy Runaway
29:05