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 600-MW steam power plant, which is cooled by a nearby river, has a thermal efficiency of 54 percent. Determine the rate of hea
Gennadij [26K]

Answer:

\dot Q _{L} = 511.111 MW. Heat transfer can be higher if themal efficiency is lower.

Explanation:

The heat transfer rate to the river water is calculated by this expression:

\dot Q_{L} = \dot Q_{H} - \dot W

\dot Q_{L} = (\frac{1}{\eta_{th}}-1 )\cdot \dot W\\\dot Q_{L} = (\frac{1}{0.54}-1)\cdot (600 MW)\\\dot Q _{L} = 511.111 MW

The actual heat transfer can be higher if the steam power plant reports an thermal efficiency lower than expected.

8 0
3 years ago
Are front-end engineers starting to decline in China?
laiz [17]

Yes. They are declining in China. Very fast

7 0
3 years ago
Force = 33 newtons
kicyunya [14]

Answer:

answer

Explanation:

4 0
3 years ago
A well insulated turbine operates at steady state. Steam enters the turbine at 4 MPa with a specific enthalpy of 3015.4 kJ/kg an
Anarel [89]

Answer:

power developed by the turbine = 6927.415 kW

Explanation:

given data

pressure = 4 MPa

specific enthalpy h1 = 3015.4 kJ/kg

velocity v1 = 10 m/s

pressure = 0.07 MPa

specific enthalpy h2 = 2431.7 kJ/kg

velocity v2 = 90 m/s

mass flow rate = 11.95 kg/s

solution

we apply here  thermodynamic equation that

energy equation that is

h1 + \frac{v1}{2}  + q = h2 + \frac{v2}{2}  + w

put here value with

turbine is insulated so q = 0

so here

3015.4 *1000 + \frac{10^2}{2}  =  2431.7 * 1000 + \frac{90^2}{2}  + w

solve we get

w = 579700 J/kg = 579.7 kJ/kg

and

W = mass flow rate × w

W = 11.95 × 579.7

W = 6927.415 kW

power developed by the turbine = 6927.415 kW

7 0
3 years ago
The increasing interconnections of peoples and countries around the world is known as ________.
Irina18 [472]
I think it’s rationalization.
Hope this helps
4 0
3 years ago
Read 2 more answers
Other questions:
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • What is Differential Analysis in fluid mechanics?
    13·1 answer
  • How far do you jog each morning? You prefer to jog in different locations each day and do not have a pedometer to measure your d
    14·1 answer
  • A lightweight electric car is powered by ten 12-V batteries. At a speed of 100 km/h, the average frictional force is 1500 N. Wha
    9·1 answer
  • Two pressure gauges measure a pressure drop of 16.3 psi (lb/in.2) at the entrance and exit of an old buried pipeline. The origin
    13·1 answer
  • For the same cross-sectional area, which column provides the higher buckling load: a circular bar or a circular tube?
    15·1 answer
  • Which scientist was famous for his laws on gravity?
    10·2 answers
  • What do machines require in order to work?
    12·1 answer
  • A Carnot heat engine absorbs 235 KW of heat from a heat source and rejects 164 KW to the atmosphere. Determine the thermal effic
    7·1 answer
  • Accidents occur as a result of ____ and ____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!