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]
3 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]3 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 RSA Digital Signature, Suppose Bob wants to send a signed message (x = 4) to Alice. The first steps are exactly t eps are exa
Luda [366]

Answer:

what r u on

Explanation:

4 0
3 years ago
A full-adder is a combinational circuit that forms the arithmetic sum of three input bits.
Vinvika [58]
(b) correct it is false
5 0
2 years ago
In javaWrite a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the out
Pavel [41]

Answer:

// Program is written in Java Programming Language

// Comments are used for explanatory purpose

import java.util.*;

public class FlipCoin

{

public static void main(String[] args)

{

// Declare Scanner

Scanner input = new Scanner (System.in);

int flips;

// Prompt to enter number of toss or flips

System.out.print("Number of Flips: ");

flips = input.nextInt();

if (flips > 0)

{

HeadsOrTails();

}

}

}

public static String HeadsOrTails(Random rand)

{

// Simulate the coin tosses.

for (int count = 0; count < flips; count++)

{

rand = new Random();

if (rand.nextInt(2) == 0) {

System.out.println("Tails"); }

else {

System.out.println("Heads"); }

rand = 0;

}

}

7 0
3 years ago
A 20-mm-diameter steel bar is to be used as a torsion spring. If the torsional stress in the bar is not to exceed 110 MPa when o
ch4aika [34]

Answer:

1.887 m

Explanation:

(15 *pi)/180

= 0.2618 rad

Polar moment

= Pi*d⁴/32

= (22/7*20⁴)/32

= 15707.96

Torque on shaft

= ((22/7)*20³*110)/16

= 172857.14

= 172.8nm

Shear modulus

G = 79.3

L = Gjθ/T

= 79.3x10⁹x(1.571*10^-8)x0.2618/172.8

= 1.887 m

The length of the bar is therefore 1.887 meters

5 0
3 years ago
How do you know which forces works for free bodies​
miss Akunina [59]

Answer:

Gravitational force (pulled downward by the Earth)

Normal force (pushed upward by the ground)

Applied force (pushed by the person)

Friction force (pulled opposite the direction of motion by the roughness of the ground)

5 0
2 years ago
Other questions:
  • Consider the expansion of a gas at a constant temperature in a water-cooled piston-cylinder system. The constant temperature is
    13·1 answer
  • 4. A 1 m3 rigid tank has propane at 100 kPa, 300 K and connected by a valve to another tank of 0.5 M3 with propane at 250 kPa, 4
    11·1 answer
  • A steady stream (1000 kg/hr) of air flows through a compressor, entering at (300 K, 0.1 MPa) and leaving at (425 K, 1 MPa). The
    10·1 answer
  • The bulk modulus of a material is 3.5 ✕ 1011 N/m2. What percent fractional change in volume does a piece of this material underg
    13·1 answer
  • A flywheel performs each of these functions except: A. Contains a gear used for engine starting B. Smoothes engine operation C.
    11·1 answer
  • A civil engineer is analyzing the compressive strength of concrete. The compressive strength is approximately normal distributed
    7·1 answer
  • 11. Technicians A and B are discussing
    12·1 answer
  • Multimeter and the LCD is showing Hz. What's she measuring?
    11·1 answer
  • Can some one plz give me brainlys
    14·2 answers
  • Describe two other safe driver skills a driver should use when driving in this road condition
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!