ما از کوکی ها و فناوری های دیگر در این وبسایت برای بهبود تجربه کاربری شما استفاده می کنیم.
با کلیک بر روی هر پیوند در این صفحه شما دستور خود را برای سیاست حفظ حریم خصوصیاینجاو سیاست فایلمی دهید.
باشه موافقم بیشتر بدانید
آیکون‌ Extended Euclidean Algorithm

1.1 by gokhanku


14/05/2016

درباره‌ی Extended Euclidean Algorithm

English

The algorithm, which is used to find the greatest common divisor of two integers

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 14/05/2016

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

بارگذاری ترجمه...

اطلاعات تکمیلی برنامه

آخرین نسخه

وارد شوید undefined در undefined 1.1

بارگذاری شده توسط

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

نیاز به اندروید

Android 4.2+

نمایش بیشتر

Extended Euclidean Algorithm اسکرین شات ها

در حال بارگذاری نظر...
زبان‌ها
زبان‌ها
اشتراک در APKPure
اولین کسی باشید که به نسخه اولیه، اخبار و راهنمای بهترین بازی ها و برنامه های اندروید دسترسی پیدا می کند.
نه، متشکرم
ثبت نام
با موفقیت مشترک شد!
اکنون به APKPure مشترک شده اید.
اشتراک در APKPure
اولین کسی باشید که به نسخه اولیه، اخبار و راهنمای بهترین بازی ها و برنامه های اندروید دسترسی پیدا می کند.
نه، متشکرم
ثبت نام
موفقیت!
شما الان عضو خبرنامه‌ی ما شدید.