1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tcecarenko [31]
3 years ago
9

Consider two different versions of algorithm for finding gcd of two numbers (as given below), Estimate how many times faster it

will be to find gcd (31415, 14142) by Euclid’s algorithm compared with the algorithm based on checking consecutive integers from min{m, n} down to gcd(m,n). Provide all the steps related to your solution.
Engineering
1 answer:
juin [17]3 years ago
5 0

Answer:

Explanation:

Step 1:

a) The formula for compute greatest advisor is

     gcd(m,n) = gcd (n,m mod n)

the gcd(31415,14142) by applying Euclid's algorithm is

    gcd(31,415,14,142) =gcd(14,142,3,131)

                                  =gcd=(3,131, 1,618)

                                   =gcd(1,618, 1,513)

                                   =gcd(1,513, 105)

                                   =gcd(105, 43)

                                    =gcd(43, 19)

                                     =gcd(19, 5)

                                      =gcd(5, 4)

                                      =gcd(4, 1)

                                      =gcd(1, 0)

                                      =1

STEP 2

b)  The number of comparison of given input with the algorithm based on  checking consecutive integers and Euclid's algorithm is

     The number of division using Euclid's algorithm =10 from part (a)

      The consecutive integer checking algorithm:

      The number of iterations =14,142 and 1 or 2 division of iteration.

        14,142 ∠= number of division∠ = 2*14,142

         Euclid's algorithm is faster by at least 14,142/10 =1400 times

          At most 2*14,142/10 =2800 times.

You might be interested in
The simply supported beam in the Figure has a rectangular cross-section 150 mm wide and 240 mm high.
8_murik_8 [283]
Same question idea but different values... I hope I helped you... Don't forget to put a heart mark

4 0
3 years ago
Describe the Range of a set of numbers and how it is calculated.
allochka39001 [22]

Answer:

The range of a set of data is the difference between the highest and lowest values in the set. To find the range, first order the data from least to greatest. Then subtract the smallest value from the largest value in the set.

Explanation:

7 0
3 years ago
When engineers develop a model, which step in the engineering process is<br><br> taking place
Sonbull [250]

Answer: Design a solution or problem

Explanation:

When engineers develop a model, the step that is taking place in the engineering process is referred to as the design a solution or problem step.

This is when engineers tackles and solved a problem by finding solutions and this is done by incorporating their analytical, and synthetic thinking and using their skills an experience.

7 0
3 years ago
At what height above the surface of the earth does the weight of an object decrease to 0.8​
prohojiy [21]

Answer: That'd be about 6400km upwards, i belive.

Explanation:

8 0
2 years ago
Question #4
inn [45]

Answer:

Deconstruction

Explanation:

8 0
3 years ago
Other questions:
  • Match the description with the term. I need help
    7·1 answer
  • The heat flux through a 1-mm thick layer of skin is 1.05 x 104 W/m2. The temperature at the inside surface is 37°C and the tempe
    8·1 answer
  • A well penetrates an unconfined aquifer. Prior to pumping, the water level (head) is 25 meters. After a long period of pumping a
    14·1 answer
  • Local technology is foundation for modern technology? justufy this statement with example.​
    12·1 answer
  • PLEASE ANSWER SOON
    7·1 answer
  • In a hydraulic system, a 100.-newton force is applied to a small piston with an area of 0.0020 m2. What pressure, in pascals, wi
    13·1 answer
  • Difference between theory and practice?​
    10·1 answer
  • What kinds of problems or projects would a mechanical engineer work on?
    11·1 answer
  • Problema sobre programacion orientada a objetos!!
    14·1 answer
  • Which of the following is critical when performing maintenance?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!