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
Fofino [41]
3 years ago
14

An algorithm takes 0.5 seconds to run on an input of size 100. How long will it take to run on an input of size 1000 if the algo

rithm has a running time that is linear? quadratic? log-linear? cubic?
Mathematics
1 answer:
dexar [7]3 years ago
6 0

Answer:

linear: 5s

quadratic: 50s

log-linear: 0.75 s

cubic: 500s

Step-by-step explanation:

Let t_1,t_2 be the running time associated with the input of sizes s_1,s_2

If the running time is linear

t_2 = t_1\frac{s_2}{s_1} = 0.5*\frac{1000}{100} = 0.5*10 = 5s

If the running time is quadratic

t_2 = t_1\left(\frac{s_2}{s_1}\right)^2 = 0.5*\left(\frac{1000}{100}\right)^2 = 0.5*10^2 = 50s

If the running time is log-linear

t_2 = t_1\frac{log(s_2)}{log(s_1)} = 0.5*\frac{log(1000)}{log(100)} = 0.5*1.5 = 0.75s

If the running time is cubic:

t_2 = t_1\left(\frac{s_2}{s_1}\right)^3 = 0.5*\left(\frac{1000}{100}\right)^3 = 0.5*10^3 = 500s

You might be interested in
Pls help :(
Masja [62]

Answer:

similarity

Step-by-step explanation:

look , dude

the two triangles have the following features:

the angle B= angle C = 90 degree

the angle A= the angle F

so  the third angle in the first triangle = the third angle in the second triangle

so you have one condition of similarity which is the three angles are equal

to get the answer for lengths :

ab/fe= constant of proportionality

thus ab/fe=2.5/5=.5

so ac/13=.5 thus ac=6.5

and 6/de=.5 so de=12

4 0
3 years ago
Mhanifa can you please help me with this? It’s due ASAP! Look at the picture attached. I will mark brainliest!
WITCHER [35]

Answer:

  • 8) 76°
  • 9) 88°

Step-by-step explanation:

  • <em>Sum of exterior angles of any polygon is 360°</em>
<h3>Exercise 8</h3>

<u>Sum of given angles:</u>

  • 2x + 60° + 64° + 36° + 48° = 360°
  • 2x + 208° = 360°
  • 2x = 360° - 208°
  • 2x = 152°
  • x = 76°
<h3>Exercise 9</h3>

<u>Sum of given angles:</u>

  • x + 90° + 109°+ 73° = 360°
  • x + 272° = 360°
  • x = 360° - 272°
  • x = 88°

4 0
3 years ago
Read 2 more answers
Which rule describes a composition of transformations that maps pre-image PQRS to image P"Q"R"S"?
FinnZ [79.3K]

The correct option is Option D \boxed{{r_{y-axis}}o{R_{0,270^\circ }}\left({x,y}\right)} .

Further explanation:

A translation is a transformation that transforms the figure with a fixed distance in the same direction.

A rotation is the transformation that rotates the figure with given angles.

Given:

It is given that the two transformations that maps pre-image PQRS to image {\text{P''Q''R''S''}} .

Step by step explanation:

Step 1:

It can be seen from the given figure that that the pre image is in the first quadrant and the image is the third quadrant.

The coordinates in the second quadrant represents as \left({-x,y}\right)  and in the third quadrant represents as \left({-x,-y}\right)  if x,y  are positive.

Therefore, the rotation is in the counter clockwise direction of 270^\circ .

Step 2:

The rotation of 270^\circ  in the counter clockwise direction represents the coordinates as,  

  \left({x,y}\right)\to\left({y,-x}\right)

It can be seen that the coordinate of {\text{PQRS}}  are as follows,

\begin{aligned}P=\left({1,1}\right)\hfill\\Q=\left(1,5}\right)\hfill\\R=\left({3,5}\right)\hfill\\S=\left({3,1}\right)\hfill\\\end{aligned}

Then after rotation of 270^\circ  counterclockwise on {\text{PQRS}}  \left( {x,y}\right)\to\left({y,-x}\right)   as,

  \begin{gathered}P\left({1,1}\right)\to\left({1,-1}\right)\hfill\\Q\left({1,5}\right)\to\left({5,1}\right)\hfill\\R\left({3,5}\right)\to\left({5,-3}\right)\hfill\\S\left({3,1}\right)\to\left({1,-3}\right)\hfill\\\end{gathered}

Step 3:

Now apply the rule of y  axis of reflection {R_{y-axis}}\left({x,y}\right)\to\left({-x,y}\right)  on the above transformation as,

\begin{gathered}\left({1,-1}\right)\to\left({-1,1}\right)=P''\hfill\\\left({5,1}\right)\to\left({-5,-1}\right)=Q''\hfill\\\left({5,-3}\right)\to\left({-5,-3}\right)=R''\hfill\\\left({1,-3}\right)\to\left({-1,-3}\right)=S''\hfill\\\end{gathered}

Therefore, the given transformation is the rotation of 270^\circ  counterclockwise followed by y  axis of reflection.

Therefore, this is the composition of transformation.

The composition of the given transformation can be written as,

   {r_{y-axis}}o{R_{0,270^\circ}}\left({x,y}\right)

Therefore, option D {r_{y-axis}}o{R_{0,270^\circ}}\left({x,y}\right)  is correct.

Learn more:  

  • Learn more about what is the final transformation in the composition of transformations that maps pre-image abcd to image a"b'c"d"? a translation down and to the right a translation up and to the right a 270° rotation about point b' a 180° rotation about point b' <u>brainly.com/question/2480946</u>
  • Learn more about the transformation of function <u>brainly.com/question/7297858 </u>
  • Learn more about midpoint of the segment <u>brainly.com/question/3269852</u>

Answer details:

Grade: High school

Subject: Mathematics

Chapter: Transformations

Keywords: transformations, dilation, translation, rotation, counterclockwise, angle, clockwise, coordinates, mapping, rigid transformation, right side, left side, quadrant, composition.

3 0
3 years ago
Read 2 more answers
Find the value of c so that (x+1) is a factor of the polynomial p(x)
Crank

Answer:

The answer is in the step by step below (image)

Step-by-step explanation:

4 0
3 years ago
Jamal drew the function below. Which explains whether or not his function is linear?
sladkih [1.3K]

Answer:

"line" a straight line graph is always linear once the line isn't straight, it'll no longer be called a line and will never be linear anymore

8 0
3 years ago
Read 2 more answers
Other questions:
  • A man was murdered in his office. The suspects are gerry, julie, jason, nick and sophie. The number 6,4,9,10, 11 are written on
    8·1 answer
  • What is the value of n. 6(x – 1) = 9(x + 2)
    10·2 answers
  • The equation tan−1 = x can be used to find the measure of angle LKJ. What is the measure of angle LKJ? Round to the nearest whol
    11·2 answers
  • Which one is it?? Will give BRAINLIEST
    11·2 answers
  • If the base has a radius of 4 in. what’s the altitude of the cylinder ?
    15·1 answer
  • How can you identify a unit rate or consant of proplortionality in a table?graph?In a equation?
    10·1 answer
  • CAN SOMEONE PLEASE HELP ME WITH MY MATH QUESTION
    15·1 answer
  • Find the distance between the points (-4, 3) and (3, 3).
    11·1 answer
  • PLEASE HELP!!!!!<br> What is m&lt;1
    10·2 answers
  • Work out (3.6 x 10^-5) divided by (1.8 x 10^2)<br> give your answer in standard form
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!