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.

IQ95 The Homo Siliconiens2.3K views01:03:44

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

This video is tagged with the following topics. Click any tag to explore more related content and discover similar videos:

Tags help categorize content and make it easier to find related videos. Browse our collection to discover more content in these categories.

4.1

2 user reviews

Write a Review

0/1000 characters

User Reviews

0 reviews

Be the first to comment...

Video Information

Views
2.3K

Total views since publication

Likes
18

User likes and reactions

Duration
01:03:44

Video length

Published
Nov 28, 2017

Release date

Quality
hd

Video definition

Related Trending Topics

LIVE TRENDS

This video may be related to current global trending topics. Click any trend to explore more videos about what's hot right now!

No specific trending topics match this video yet.

Explore All Global Trends

Share This Video

SOCIAL SHARE

Share this video with your friends and followers across all major social platforms including X (Twitter), Facebook, Youtube, Pinterest, VKontakte, and Odnoklassniki. Help spread the word about great content!