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 pumping test was made in pervious gravels and sands extending to a depth of 50 ft. ,where a bed of clay was encountered. The n
Vikki [24]

Answer:per minute from the pumping well, a steady state was attained in about 24 hr. The draw-down at a distance of 10 ft. was 5.5 ft. and at 25 ft. was 1.21 ft.

Explanation:

6 0
2 years ago
Hello , how are yall:))))
SVEN [57.7K]

Answer:

eh I'm good hbu?????????

6 0
2 years ago
Read 2 more answers
The sum ofall microscopic forms of energy of a system is quantified as flow energy. a)True b) False
Sliva [168]

Answer: b) False

Explanation: Microscopic energy is the the energy that is based on the  molecular level in a particular energy system. Microscopic energy basically comprise with tiny particles like atoms and molecules .The sum of all microscopic form of energy e together make the internal energy .Therefore, the statement given is false because the sum of all the microscopic forms of energy of a system is quantified as internal energy not flow energy.

3 0
3 years ago
Imagine you are a process safety consultant and you have been tasked to make a metal refinery site DSEAR compliant. What are the
masya89 [10]

Complying with DSEAR involves:

Assessing risks. ...

Preventing or controlling risks. ...

Control measures. ...

Mitigation. ...

Preparing emergency plans and procedures. ...

Providing information, instruction and training for employees. ...

Places where explosive atmospheres may occur ('ATEX' requirements)

hse uk

4 0
2 years ago
A series of three direct shear tests has been conducted on a certain saturated soil. Each test was performed on a 2.375-inch dia
Pachacha [2.7K]

Answer:

Go to explaination for the details of the answer.

Explanation:

Angle of friction (friction angle) is a measure of the ability of a unit of rock or soil to withstand a shear stress. It is the angle (φ), measured between the normal force (N) and resultant force (R), that is attained when failure just occurs in response to a shearing stress (S).

The cohesion intercept is a used when we want to describe the shear strength soils. The definition is mainly derived from the Mohr-Coulomb failure criterion and it is used to describe the non-frictional part of the shear resistance which is independent of the normal stress.

Please check attachment to Determine the friction angle and cohesion intercept.

8 0
3 years ago
Other questions:
  • An air-standard Otto cycle has a compression ratio of 6 and the temperature and pressure at the beginning of the compression pro
    13·1 answer
  • According to information found in an old hydraulies book, the energy loss per unit weight of fluid flowing through a nozzle conn
    6·1 answer
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • Part of the basic procedures is the vehicle check. What does that mean?
    7·1 answer
  • An insulated tank having a total volume of 0.6 m3 is divided into two compartments. Initially one compartment contains 0.4 m3 of
    8·1 answer
  • Air at 300 K and 100 kPa steadily flows into a hair dryer having electrical work input of 1500 W. Because of the size of the air
    6·2 answers
  • What is the horizontal distance from Point A to toe of slope?
    12·1 answer
  • Item110pointseBook HintPrintReferences Check my work Check My Work button is now disabled5Item 1Item 1 10 pointsAn ideal Diesel
    10·1 answer
  • Which of the following are made up of electrical probes and connectors?
    8·1 answer
  • 1) Plastics that soften when heated,harden when cooled, and then can be heated and softened many times
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!