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
solmaris [256]
2 years ago
10

An algorithm takes 5 seconds for input size 200. How long will it take for input size 1000 if the running time is linear (assume

low-order terms are negligible)?
Mathematics
1 answer:
tankabanditka [31]2 years ago
8 0

The running time for an input size of 1000 will be 25 seconds.

To calculate the runtime of the Algorithm we need to know what an Algorithm is and how its runtime works.

<h3>What is the runtime of an Algorithm?</h3>

A finite sequence of rigorous instructions, used to solve a critical problem of a specific class or for computational purposes is called an Algorithm. The time taken to complete the said task is called the runtime of an Algorithm.

Let us now solve the question about linear running time of an algorithm.

Input size(N_{1})=200

Time taken(T_1)=5 seconds

Final input size(N_2)=1000

Let the final time taken be T.

Now we know that: \frac{N_1}{T_1}=\frac{N_2}{T_2}

Substituting the values we get T_2=25 seconds .

Therefore the linear running time for an input size of 1000 is 25 seconds.

To know more about Algorithm:

brainly.com/question/17780739

#SPJ4

You might be interested in
0.5 - (-10.5 • 5) + 40.5 I need the solution to this problem
kondor19780726 [428]
93.5 Great and write answer please brainliest and thanks

7 0
3 years ago
Anybody have an answer key to this?
tresset_1 [31]
I found a answer key online
6 0
3 years ago
A sample of 47 observations is selected from a normal population. The sample mean is 30, and the population standard deviation i
erma4kov [3.2K]

Answer:

We accept the null hypothesis and reject  the alternate hypothesis. There is no evidence to conclude that the population mean is greater than 29. The population mean is less than or equal to 29.

Step-by-step explanation:

We are given the following in the question:

Population mean, μ = 29

Sample mean, \bar{x} = 30

Sample size, n = 47

Alpha, α = 0.05

Population standard deviation, σ = 5

First, we design the null and the alternate hypothesis

H_{0}: \mu \leq 29\\H_A: \mu > 29

a) This is a one-tailed test because the alternate hypothesis is in greater than direction.

We use One-tailed z test to perform this hypothesis.

b) z_{stat} > z_{critical} , we reject the null hypothesis and accept the alternate hypothesis and if z_{stat} < z_{critical} , we accept the null hypothesis and reject  the alternate hypothesis.

c) Formula:

z_{stat} = \displaystyle\frac{\bar{x} - \mu}{\frac{\sigma}{\sqrt{n}} }

Putting all the values, we have

z_{stat} = \displaystyle\frac{30 - 29}{\frac{5}{\sqrt{47}} } = 1.37

d) Now, z_{critical} \text{ at 0.05 level of significance } = 1.64

Since,  

z_{stat} < z_{critical}

We accept the null hypothesis and reject  the alternate hypothesis. There is no evidence to conclude that the population mean is greater than 29. The population mean is less than or equal to 29.

e) P-value is 0.0853

On the basis of p value we again accept the null hypothesis.

5 0
4 years ago
3(y+7)+8y plz be spacific and answer correctly, im counting on you. :)
Galina-37 [17]

Answer:

11y + 21

Step-by-step explanation:

mutipily 3 by y + 7 bc 3 is right outside of the parentheis which means to mutipily. Then u get 3y +21 +8y. then simpilfy

7 0
3 years ago
Find the volume of the square pyramid below.
miv72 [106K]

Hello!

\bf ANSWER

The volume of the square pyramid is approximately \boxed{ \bf 19.19~km^3}

____________________________________________________________

\bf EXPLANATION

V = a^{2}\frac{h}{3}

First, we must find the area of the square base.

A = l * w

A = 3.5 * 3.5

A = 12.25 km^2

The area of the base is 12.25 km^2. Now, multiply the base area by the perpendicular height. Then divide by 3.

V = (12.25 * 4.7) / 3

V = 19.1916666667

V ≈ 19.19 km^3



7 0
4 years ago
Other questions:
  • On a string of lights, for every 6 green lights, there are 4 white. If there are 30 green lights, how many white lights are ther
    9·1 answer
  • A Poker club has 10 members. A president and a vice-president are to be selected. In how many ways can this be done if everyone
    14·1 answer
  • so my equation is x^2-30x=-125. i already completed the square but what does it mean when i have to add (b/2)^2
    10·1 answer
  • Write 2/3 as a decimal rounded to 3 sighificant figures
    10·1 answer
  • When authors mean something ________
    7·1 answer
  • Carlos had 24 classes play tickets to sell. He sold 3/4 of the tickets. How many tickets did Carlos sell?
    13·2 answers
  • NEED HELP NOW PLEASE HELP
    15·1 answer
  • For the following situations decide what type of chi square test is appropriate. Explain.
    7·1 answer
  • At the Clark Ski Resort, it snowed 1/2 of a foot yesterday and 1/5 of a foot today. How much more did it snow yesterday than tod
    9·1 answer
  • Why is upendrakishore roy chouwdhury remembered​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!