Bshouty, Nader H.2008-05-262008-05-261989-12-01http://hdl.handle.net/1880/46601Using the operations {$+,~-$}, multiplication and division by constants {$x sub z ,~/z$}, floor operation, {$\(lf~\(rf$} and indirect addressing, we compute $GCD(x,y),~x,y~\(mo~[0,N]$ and find $a,b~\(mo~[0,N]$ such that $ax~+~by~=~GCD(x,y)$ with operation complexity $0 left ( {log N} over {log~log N} right )$ and space complexity $0((log N) sup epsilon )$ for any constant $0~<~epsilon~<~1$. The numbers that are produced in the algorithms are less than $ max(x,y)$. We also prove that using these operations our bound is tight. In the boolean model we prove that to obtain this upper bound we must use $OMEGA ((log N) sup epsilon )$ space for some constant $ epsilon $. We also study the direct sum complexity of GCD and prove that GCD function does not satisfy the direct sum conjecture and we study the operation complexity of computing GCD and LCM of $n$ numbers and find tight bounds for these problems.EngComputer ScienceEUCLIDEAN GCD ALGORITHM IS NOT OPTIMALunknown1989-376-3810.11575/PRISM/30475