subject
Computers and Technology, 27.08.2021 23:50 qhenley

Consider the following version of the Euclidean algorithm to compute gcd(a, b). Start with computing the largest power of 2 dividing both a and b. If this is 2", then divide a and b by 2". After this "preprocessing", do the following: Step 1: Swap the numbers if necessary to have a s b;
Step 2: If a = 0, then check the parities of a and b; if a is even, and b is odd, then replace a by a/2; if both a and b are odd, then replace b by b - a; in each case, go to step (1);
Step 3: If a = 0, then return 2" b as the greatest common denominator.

Required:
a. Show that the modified Euclidean algorithm always terminates with the right answer.
b. Show that this algorithm, when applied to two 100-digit integers, does not take more than 1500 iterations.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
The ieee 802.11: defines standards for wireless local area network (wlan) communication protocols. identifies various computers or devices connected to a network. verifies any resource attached to another computer on a network that is different from the computer to which the user is logged on. connects multiple local area networks (lans) and wide area networks (wans).
Answers: 2
You know the right answer?
Consider the following version of the Euclidean algorithm to compute gcd(a, b). Start with computing...
Questions
question
Social Studies, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Social Studies, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
History, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Chemistry, 14.09.2020 17:01
question
English, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Mathematics, 14.09.2020 17:01
question
Chemistry, 14.09.2020 17:01
Questions on the website: 13722363