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
A room is kept at −5°C by a vapor-compression refrigeration cycle with R-134a as the refrigerant. Heat is rejected to cooling wa
Fed [463]

Answer:

note:

<u>solution is attached in word form due to error in mathematical equation. furthermore i also attach Screenshot of solution in word due to different version of MS Office please find the attachment</u>

Download docx
4 0
2 years ago
Read 2 more answers
Clarifying the issues of a problem is the _____ step in the problem solving process.
ratelena [41]
The answer is 2nd Step because the first step is to define the problem and third is to define your goals
7 0
3 years ago
A pin fin of uniform cross-sectional area is fabricated of an aluminum alloy (k = 160W m-1 K-1 ). The fin diameter is D = 4 mm,
disa [49]

Answer: (a) 36.18mm

(b) 23.52

Explanation: see attachment

4 0
3 years ago
What was the role of the rotors in the enigma machine?.
Lisa [10]

Answer:

Implements a reordering of the letters of the alphabet.

Explanation: GIVE ME 5 STARS AND a HEART!!!                                      Those contacts are wired across the rotor so that each contact on the left connects to the contact on the right in some scrambled arrangement. Each rotor, therefore, implements a reordering of the letters of the alphabet, which mathematicians call a permutation.

3 0
2 years ago
What are the advantages and disadvantages of a mine heardgear​
Irina18 [472]

Answer:

If there is a shaft with headgear, then mining can take place until that depth of the shaft. If it is accessed horizontal Adits, it can mine until the lowest Adit from upwards. If it is accessed decline, the development and mining can continue so long as economic exploitation is possible.

Explanation:

What are the disadvantages of mining headgear? They totally cut off your vision of anything above your head. They are hot, most of the time

7 0
1 year ago
Other questions:
  • Which is the correct order for handwashing
    11·2 answers
  • 3. (9 points) A square-thread power screw is used to raise or lower the basketball board in a gym, the weight of which is W = 10
    12·1 answer
  • Let CFG G be the following grammar.
    7·2 answers
  • A civil engineer is analyzing the compressive strength of concrete. The compressive strength is approximately normal distributed
    7·1 answer
  • Fill in the blank to correctly complete the statement below.
    6·1 answer
  • Resistors of 150 Ω and 100 Ω are connected in parallel. What is their equivalent resistance?
    13·1 answer
  • Please help been stuck on this for a couple minutes
    5·1 answer
  • In the long run, if the firm decides to keep output at its initial level, what will it likely do? Stay on SRATC3 but decrease to
    15·1 answer
  • The velocity components expressed in m/s<br>​
    6·1 answer
  • It is important to follow correct procedures when running electrical cables next to data cables in order to protect against whic
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!