On each step of Euclid's algorithm, we replace the pair of positive arguments with until one of arguments is zero. Consider three possible modifications of this procedure. Which of them give the same result as the original algorithm and which cause some problems? Match the modifications with their effects.
MathNumber theory
Euclid's algorithm
Modifications
Report a typo
Match the items from left and right columns
Replace with
Replace with
Replace with
Algorithm successfully computes
Algorithm never terminates
Algorithm terminates, but returns incorrect answer
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.