Is the Euclidean Algorithm Optimal Among its Peers?
Complexity of computation (including implicit computational complexity) (03D15) Recursive functions and relations, subrecursive hierarchies (03D20) Multiplicative structure; Euclidean algorithm; greatest common divisors (11A05) Decidability (number-theoretic aspects) (11U05) Number-theoretic algorithms; complexity (11Y16) Computational difficulty of problems (lower bounds, completeness, difficulty of approximation, etc.) (68Q17) Analysis of algorithms and problem complexity (68Q25)
A recursive program (or: McCarthy program) over some algebra \(\mathcal A\) is a system of recursive equations \(f(\vec{x})=E_0(\vec{x})\), \(f_1(\vec{x})=E_1(\vec{x})\), \dots, \(f_k(\vec{x})=E_k(\vec{x})\), where the \(E_i\) are expressions involving constants and functions in \(\mathcal A\) as well as the functions \(f_1,\dots,f_k\) and a conditional among terms (``if \(E=0\) then \(E_1\) else \(E_2\)). The function computed by this program is \(f\). A notion of parallel time complexity, denoted by \(c_f(\vec{x})\) is defined that measures the depth of nested ``calls to the functions in \(\mathcal A\). Concerning the Euclidean algorithm E over the algebra consisting of the natural numbers and the remainder function (\(\text{rem}(a,b)\) is the remainder of the division of \(a\) by \(b\)), it can be seen that \(c_{\text{E}}(a,b)\leq 3\log_2a\) and it is conjectured that \(c_{\text{E}}(a,b)\geq r\log_2a\) for some constant \(r\) and infinitely many \(a>b\). While this conjecture remains open in the paper, the following lower bounds are shown: (1) For every recursive program P that decides the primality relation over the algebra of the natural numbers with functions equality, less-than, addition, subtraction, multiplication by 2, division by 2, remainder of division by 2, \(c_{\text{P}}(p)>\frac{1}{4}\log_2(p)\) for all primes \(p\). This implies optimality up to a multiplicative constant of the Stein algorithm S that computes the gcd over the same algebra with complexity \(c_{\text{S}}(a,b)\leq c\log_2\max\{a,b\}\) for some constant \(c\) [see \textit{D. E. Knuth}, The art of computer programming. Vol.~2. Seminumerical algorithms. 3rd ed. Bonn: Addison-Wesley (1998; Zbl 0895.65001)]. (2) For every recursive program P that decides the coprimeness relation over the algebra of the natural numbers with functions equality, less-than, addition, subtraction, division, and remainder, \(c_{\text{P}}(a,b)>\frac{1}{10}\log_2\log_2a\) for infinitely many coprime numbers \(a>b>1\). Both lower bounds hold in all inessential extensions of the above algebras; these are enrichments of the algebras by data structures such as arrays or trees but do not include any new non-trivial functions. Examples for these are random access machines over the functions of the above algebras.
This page was built for publication: Is the Euclidean Algorithm Optimal Among its Peers?
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4678946)