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
Alexandra [31]
4 years ago
6

• Suppose that a particular algorithm has time complexity T(n) = 10 ∗ 2n, and that execution of the algorithm on a particular ma

chine takes T seconds for n inputs. Now, suppose you are presented with a machine that is 64 times as fast as your current machine. How many inputs can you process on you new machine in T seconds?
Engineering
1 answer:
elena-s [515]4 years ago
8 0

Answer:

The number of inputs processed by the new machine is 64

Solution:

As per the question:

The time complexity is given by:

T(n) = 10\times 2n

where

n = number of inputs

T = Time taken by the machine for 'n' inputs

Also

The new machine is 65 times faster than the one currently in use.

Let us assume that the new machine takes the same time to solve k operations.

Then

T(k) = 64 T(n)

\frac{T(k)}{T(n)} = 64

\frac{20k}{20n} = 64

k = 64n

Thus the new machine will process 64 inputs in the time duration T

You might be interested in
In details and step-by-step, show how you apply the Bubble Sort algorithm on the following list of values. Your answer should sh
astraxan [27]

( 12 17 18 19 25 )

<u>Explanation:</u>

<u>First Pass:</u>

( 19 18 25 17 12 ) –> ( 18 19 25 17 12 ), Here, algorithm compares the first two elements, and swaps since 19 > 18.

( 18 19 25 17 12 ) –> ( 18 19 25 17 12 ), Now, since these elements are already in order (25 > 19), algorithm does not swap them.

( 18 19 25 17 12 ) –> ( 18 19 17 25 12 ), Swap since 25 > 17

( 18 19 17 25 12 ) –> ( 18 19 17 12 25 ), Swap since 25 > 12

<u>Second Pass:</u>

( 18 19 17 12 25 ) –> ( 18 19 17 12 25 )

( 18 19 17 12 25 ) –> ( 18 17 19 12 25 ), Swap since 19 > 17

( 18 17 19 12 25 ) –> ( 18 17 12 19 25 ), Swap since 19 > 12

( 18 17 12 19 25 ) –> ( 18 17 12 19 25 )

<u>Third Pass:</u>

( 18 17 12 19 25 ) –> ( 17 18 12 19 25 ), Swap since 18 > 17

( 17 18 12 19 25 ) –> ( 17 12 18 19 25 ), Swap since 18 > 12

( 17 12 18 19 25 ) –> ( 17 12 18 19 25 )

( 17 12 18 19 25 ) –> ( 17 12 18 19 25 )

<u>Fourth Pass:</u>

( 17 12 18 19 25 ) –> ( 12 17 18 19 25 ), Swap since 17 > 12

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 ), Swap since 18 > 12

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 )

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 )

Now, the array is already sorted, but our algorithm does not know if it is completed. The algorithm needs one whole pass without any swap to know it is sorted.

<u>Fifth Pass:</u>

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 )

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 )

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 )

( 12 17 18 19 25 ) –> ( 12 17 18 19 25 )

6 0
3 years ago
A 16-lb solid square wooden panel is suspended from a pin support at A and is initially at rest. A 4-lb metal sphere is shot at
lbvjy [14]

Answer:

velocity = 0.6 ft/s

Explanation:

8 0
3 years ago
Water at 20 °C is flowing with velocity of 0.5 m/s between two parallel flat plates placed 1 cm apart. Determine the distances f
Basile [38]

Answer:

The distance from the entrance at which the boundary layers meet is 0.516m

The distance from the entrance at which the thermal boundary layers meet is 1.89m

Explanation:

For explanation, look at the attached file

3 0
3 years ago
In a food processing facility, a spherical container of inner radius r1 = 40 cm, outer radius r2 = 41 cm, and thermal conductivi
Rashid [163]

Answer:

attached below

Explanation:

5 0
4 years ago
Which of the following explains the main reason to cut a piece of wood on the outside of the measurement mark?
maks197457 [2]
I think it’s D ?? I’m not completely sure tho
4 0
3 years ago
Other questions:
  • Represent the following sentence by a Boolean expression:
    11·1 answer
  • You want to know your grade in Computer Science, so write a program that continuously takes grades between 0 and 100 to standard
    7·1 answer
  • How do I calculate the gear ratio​
    6·1 answer
  • A geothermal heat pump absorbs 15 KJ/s of heat from the Earth 15 m below a house. This heat pump uses a 7.45 kJ/s compressor.
    14·2 answers
  • A cartridge electrical heater is shaped as a cylinder of length L=200mm and outer diameter D=20 mm. Under normal operating condi
    5·1 answer
  • A three-point bending test is performed on a glass specimen having a rectangular cross section of height 5.3 mm and width 11.6 m
    11·1 answer
  • Which statement describes the relay between minerals and rocks ?
    15·1 answer
  • PLEASE HELP!<br> I'm in the middle of a test and the teacher didn't go over the material!
    10·1 answer
  • It is better to know or not to know?​
    6·2 answers
  • Technician A that shielding gas nozzles may have different shapes. Technician B says that gelding gas nozzles is attached to the
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!