Hostname: page-component-8448b6f56d-42gr6 Total loading time: 0 Render date: 2024-04-24T00:17:48.596Z Has data issue: false hasContentIssue false

Is the Euclidean Algorithm Optimal Among its Peers?

Published online by Cambridge University Press:  15 January 2014

Lou Van Den Dries
Affiliation:
University of Illinois, Department of Mathematics, 1409 W. Green Street, Urbana, IL 61801, USAE-mail: , vddries@math.uiuc.edu
Yiannis N. Moschovakis
Affiliation:
Department of Mathematics, University of California, Los Angeles, CA, 90095-1555, USAE-mail: , ynm@math.ucla.edu Department of Mathematics, University of Athens, Athens, Greece

Extract

The Euclidean algorithm on the natural numbers ℕ = {0,1,…} can be specified succinctly by the recursive program

where rem(a, b) is the remainder in the division of a by b, the unique natural number r such that for some natural number q,

It is an algorithm from (relative to) the remainder function rem, meaning that in computing its time complexity function cε (a, b), we assume that the values rem(x, y) are provided on demand by some “oracle” in one “time unit”. It is easy to prove that

Much more is known about cε(a, b), but this simple-to-prove upper bound suggests the proper formulation of the Euclidean's (worst case) optimality among its peers—algorithms from rem:

Conjecture. If an algorithm α computes gcd (x,y) from rem with time complexity cα (x,y), then there is a rational number r > 0 such that for infinitely many pairs a > b > 1, cα (a,b) > r log2a.

Type
Research Article
Copyright
Copyright © Association for Symbolic Logic 2004

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

REFERENCES

[1] van den Dries, Lou, Generating the greatest common divisor, and limitations of primitive recursive algorithms, Foundations of computational mathematics, vol. 3 (2003), pp. 297324.Google Scholar
[2] van den Dries, Lou and Moschovakis, Yiannis N., Arithmetic complexity, (200?), in preparation.Google Scholar
[3] Emde Boas, P. van, Machine models and simulations, Handbook of Theoretical Computer Science, Vol. A, Algorithms and Complexity (van Leeuwen, Jan, editor), Elsevier and MIT Press, 1994, pp. 166.Google Scholar
[4] Hardy, G. H. and Wright, E. M., An introduction to the theory of numbers, Clarendon Press, Oxford, fifth edition, 2000, originally published in 1938.Google Scholar
[5] Knuth, D. E., The art of computer programming. Fundamental algorithms, second ed., Addison-Wesley, 1973.Google Scholar
[6] Mansoor, Yishay, Schieber, Baruch, and Tiwari, Prasoon, A lower bound for integer greatest common divisor computations, Journal of the Association for Computing Machinery, vol. 38 (1991), pp. 453471.Google Scholar
[7] McCarthy, J., A basis for a mathematical theory of computation, Computer programming and formal systems (Braffort, P. and Herschberg, D, editors), North-Holland, 1963, pp. 3370.Google Scholar
[8] Moschovakis, Ylannis N., What is an algorithm?, Mathematics unlimited – 2001 and beyond (Engquist, B. and Schmid, W., editors), Springer, 2001, pp. 919936.CrossRefGoogle Scholar
[9] Moschovakis, Ylannis N., On primitive recursive algorithms and the greatest common divisor function, Theoretical Computer Science, vol. 301 (2003), pp. 130.Google Scholar
[10] Tarski, Alfred, What are logical notions?, History and Philosophy of Logic, vol. 7 (1986), pp. 143154, edited by Corcoran, John.Google Scholar