We use cookies and other technologies on this website to enhance your user experience.
By clicking any link on this page you are giving your consent to our Privacy Policy and Cookies Policy.
Extended Euclidean Algorithm アイコン

1.1 by gokhanku


2016年05月14日

このExtended Euclidean Algorithmについて

日本語

二つの整数の最大公約数を見つけるために使用されるアルゴリズム

The Euclidean algorithm is usually used simply to find the greatest common divisor of two integers. (For a description of this algorithm, see the notes about additional topics in number theory.) The standard Euclidean algorithm gives the greatest common divisor and nothing else. However, if we keep track of a bit more information as we go through the algorithm, we can discover how to write the greatest common divisor as an integer linear combination of the two original numbers. In other words, we can find integers s and t such that

gcd(a, b) = sa + tb.

[Note that, since gcd(a, b) is usually less than both a and b, one of s or t will usually be negative.]

As a reminder, here are the steps of the standard Euclidean algorithm to find the greatest common divisor of two positive integers a and b:

Set the value of the variable c to the larger of the two values a and b, and set d to the smaller of a and b.

Find the remainder when c is divided by d. Call this remainder r.

If r = 0, then gcd(a, b) = d. Stop.

Otherwise, use the current values of d and r as the new values of c and d, respectively, and go back to step 2.

The extended Euclidean algorithm uses the same framework, but there is a bit more bookkeeping. Before we present a formal description of the extended Euclidean algorithm, let’s work our way through an example to illustrate the main ideas.

最新バージョン 1.1 の更新情報

Last updated on 2016年05月14日

Minor bug fixes and improvements. Install or update to the newest version to check it out!

翻訳中...

アプリの追加情報

最終のバージョン

Extended Euclidean Algorithm 更新を申請する 1.1

投稿者

Максим Каратаев

Android 要件

Android 4.2+

もっと見る

Extended Euclidean Algorithm スクリーンショット

コメントをよみこんでいます...
言語
言語
APKPureをを購読する
最高のAndroidゲームアプリの最新リリースやニュースやガイドなどの情報にいち早くアクセスすることができます。
いいえ結構です
購読
購読完了!
APKPureの購読が完了しました。
APKPureをを購読する
最高のAndroidゲームアプリの最新リリースやニュースやガイドなどの情報にいち早くアクセスすることができます。
いいえ結構です
購読
成功!
ニュースレターを購読しました。