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
Consider a refrigerator that consumes 320 W of electric power when it is running. If the refrigerator runs only one quarterof th
ryzh [129]

Answer:

$5.184

Explanation:

The cost can be calculated using the formula: Cost = Load \ factor \times Number \ of \ hours \ \\M_{month} = M_{units} \times W\\

Before using this, we require the following conversions:

<em>320 W → kW:</em>

\frac {320}{1000} = 0.32

<em>30 Days → Hours:</em>

30 \times 24 = 720

Using the above stated formula:

M_{month} = 0.09 \times 0.32 \times \frac{1}{4} \times 720 = 5.184

4 0
3 years ago
What is the function of engineers?
lara [203]

Answer:

To add technology and advancements to society and make out community more advanced.

Explanation:

5 0
3 years ago
A disk of radius 2.1 cm has a surface charge density of 5.6 µC/m2 on its upper face. What is the magnitude of the electric field
Assoli18 [71]

Answer:

=6.3*10^3 N/C

Explanation:

solution:

from this below equation (1)

E=σ/2εo(1-\frac{z}{\sqrt{z^2-R^2} } )...........(1)

we obtain:

=5.6*10^-6 \frac{c}{m^2} /2(8.85*10^-12\frac{c^2}{N.m^2} ).(1-\frac{9.5 cm}{\sqrt{9.5^2-2.1^2} } )

=6.3*10^3 N/C

8 0
3 years ago
What does the simplify command do
uranmaximum [27]

Answer:The simplify command is used to apply simplification rules to an expression. The simplify routine searches the expression for function calls, square roots, radicals, and powers and invokes the appropriate simplification procedures. For detailed information on the simplify command, see simplify/details.

Explanation:

4 0
3 years ago
Which of the following is the BEST definition for e-commerce? *
VARVARA [1.3K]

Answer:

(C) Buying and selling items electronically on the internet.

Explanation:

Electronic commerce or e-commerce (sometimes written as eCommerce) is a business model that lets firms and individuals buy and sell things over the internet. E-commerce operates in all four of the following major market segments: ... Business to consumer. Consumer to consumer. Consumer to business.

7 0
3 years ago
Other questions:
  • The popularity of orange juice, especially as a breakfast drink, makes it an important factor in the economy of orange-growing r
    14·1 answer
  • 7. Which power source is an important transition between
    7·1 answer
  • Select the statement that is false.
    12·1 answer
  • For a steel alloy it has been determined that a carburizing heat treatment of 11-h duration will raise the carbon concentration
    12·1 answer
  • Joe Bruin has a big lawn in front of his house that is 30 meters wide and 20 meters long. Josephine makes him go out and mow the
    5·1 answer
  • What is a rivet and how do tehey work
    14·1 answer
  • A railroad runs form city A to city B, a distance of 800km, through mountainous terrain. The present one-way travel time (includ
    13·1 answer
  • Are there engineering students here?​
    5·2 answers
  • If a nurse does not agree to the discipline set due to a complaint made against this nurse, after reviewing the proposed agreed
    14·1 answer
  • Planetary gears require the armature to be offset via a gear housing that holds the starter drive.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!