Implementing the Extended Euclidean Algorithm in C++

Learn how to implement the Extended Euclidean Algorithm in C++ to solve linear congruence equations and compute modular inverses effectively.

Implementing the Extended Euclidean Algorithm in C++
IQ95 The Homo Siliconiens
2.3K views โ€ข Nov 28, 2017
Implementing the Extended Euclidean Algorithm in C++

About this video

We will learn how to implement Extended Euclidean Algorithm in C++ code. With this algorithm at hand, we can solve linear congruence equations. Please also watch the following videos:

I made a mistake in the C++ code:


STEP 1. x = 1; y = q_last

Subsequent STEPS:

int t = x; x = y;
y = t + y * q_prev;

I also found a few other bugs and fix them in my next video. Please watch my next video how to fix them.
https://www.youtube.com/watch?v=BixqhGdS6ZI&t=2316s


1. Extended Euclidean Algorithm Example
https://goo.gl/7LH4ss

2. Solve a Linear Congruence using Euclid's Algorithm:
https://goo.gl/RFRgro

3. Extended Euclidean Algorithm and Inverse Modulo Tutorial
https://goo.gl/41XFdM

4. About How to Implement Euclidean Algorithm in C++
https://goo.gl/9Cs2FV

Download source code:
http://www.TalkPlayFun.com/bison_flex/ExtendedEuclideanSolution.zip

For more information:
http://www.TalkPlayFun.com/Cryptography

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

2.3K

Likes

18

Duration

01:03:44

Published

Nov 28, 2017

User Reviews

4.1
(2)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.

Trending Now