Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Euclidean algorithm
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Method of least absolute remainders === In another version of Euclid's algorithm, the quotient at each step is increased by one if the resulting negative remainder is smaller in magnitude than the typical positive remainder.<ref name="Ore_least_abs_remainders" >{{Harvnb|Ore|1948|p=43}}</ref><ref name="Stewart_1964">{{cite book | last = Stewart|first= B. M. | year = 1964 | title = Theory of Numbers | edition = 2nd | publisher = Macmillan | location = New York | pages = 43β44 | lccn = 64010964}}</ref> Previously, the equation : {{math|1=''r''<sub>''k''β2</sub> = ''q''<sub>''k''</sub> ''r''<sub>''k''β1</sub> + ''r''<sub>''k''</sub>}} assumed that {{math|1={{abs|''r''<sub>''k''β1</sub>}} > ''r''<sub>''k''</sub> > 0}}. However, an alternative negative remainder {{math|1=''e''<sub>''k''</sub>}} can be computed: : {{math|1=''r''<sub>''k''β2</sub> = (''q''<sub>''k''</sub> + 1) ''r''<sub>''k''β1</sub> + ''e''<sub>''k''</sub>}} if {{math|1=''r''<sub>''k''β1</sub> > 0}} or : {{math|1=''r''<sub>''k''β2</sub> = (''q''<sub>''k''</sub> β 1) ''r''<sub>''k''β1</sub> + ''e''<sub>''k''</sub>}} if {{math|1=''r''<sub>''k''β1</sub> < 0}}. If {{math|1=''r''<sub>''k''</sub>}} is replaced by {{math|1=''e''<sub>''k''</sub>}}. when {{math|1={{abs|''e''<sub>''k''</sub>}} < {{abs|''r''<sub>''k''</sub>}}}}, then one gets a variant of Euclidean algorithm such that : {{math|1={{abs|''r''<sub>''k''</sub>}} β€ {{abs|''r''<sub>''k''β1</sub>}} / 2}} at each step. [[Leopold Kronecker]] has shown that this version requires the fewest steps of any version of Euclid's algorithm.<ref name="Ore_least_abs_remainders" /><ref name="Stewart_1964" /> More generally, it has been proven that, for every input numbers ''a'' and ''b'', the number of steps is minimal if and only if {{math|''q''<sub>''k''</sub>}} is chosen in order that <math>\left |\frac{r_{k+1}}{r_k}\right |<\frac{1}{\varphi}\sim 0.618,</math> where <math>\varphi</math> is the [[golden ratio]].<ref>{{cite journal|last=Lazard|first=D.|year=1977|title=Le meilleur algorithme d'Euclide pour ''K''[''X''] et '''Z''' |language=fr |journal=Comptes Rendus de l'AcadΓ©mie des Sciences|volume=284|pages=1β4}}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Euclidean algorithm
(section)
Add topic