Construct an algorithm for computing greatest common divisor

Assignment Help Mathematics
Reference no: EM131570500

Question: Show that if a and b are positive integers with a ≥ b, then gcd(a, b) = a if a = b, gcd(a, b) = 2 gcd(a/2, b/2) if a and b are even, gcd(a, b) = gcd(a/2, b) if a is even and b is odd, and gcd(a, b) = gcd(a - b, b) if both a and b are odd.

b) Explain how to use (a) to construct an algorithm for computing the greatest common divisor of two positive integers that uses only comparisons, subtractions, and shifts of binary expansions, without using any divisions

c) Find gcd(1202, 4848) using this algorithm.

Reference no: EM131570500

Questions Cloud

Show smallest prime factor of the positive integer is larger : Show that if the smallest prime factor p of the positive integer n is larger than v3 n, then n/p is prime or equal to 1.
Paper on some topic related to business : Assist on drafting a short seven hundred to one thousand word paper on some topic related to business.
Current federal debt : Using only.gov Websites report the current GDP, the current Federal deficit, the current Federal debt, and the bottom line of the current.
Describe a dashboard that would be useful for you : Describe a dashboard that would be useful for you in your current position and organization (or one with which you are familiar).
Construct an algorithm for computing greatest common divisor : Show that if a and b are positive integers with a = b, then gcd(a, b) = a if a = b, gcd(a, b) = 2 gcd(a/2, b/2) if a and b are even, gcd(a, b) = gcd(a/2, b).
How are they different in each country : What are some of the components of these cultures that you need to understand from a business standpoint?
Stocks as either growth stocks or defensive stocks : Describe the following stocks as either growth stocks or defensive stocks Kroger- ticker symbol KR-Walmart- ticker symbol WMT
Explain what value does the product life cycle offer : What value does the Product Life Cycle offer today's corporate managers. What are the advantages and disadvantages of this research tool?
Very common in today society : Body piercing and tattoos are very common in today's society. What is your perception of body piercing and tattoos related to professional image?

Reviews

Write a Review

Mathematics Questions & Answers

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd