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
8090 [49]
3 years ago
12

After all your hard work studying for Algorithms you, Alice and Bob end up stuck in a room full of deadly zombies! Luckily you h

ave a gun with plenty of ammunition and can reliably shoot one zombie dead every second. Each zombie is di feet away and moving at a speed of si feet per second. If a zombie reaches you then you all die. You are arguing about what order to shoot the zombies so you live as long as possible.
1. State this input and output conditions for this optimization problem.
2. Alice suggests shooting the closest zombie first. Give a counterexample that shows this is incorrect.
3. Bob suggests shooting the fastest zombie first. Give a counterexample that shows this is incorrect.
4. What order should you shoot the zombies?
5. Prove your order will let you live the longest. Grading You will be docked points for errors in your math, disorganization, unclarity, or incomplete proofs.
Mathematics
1 answer:
shutvik [7]3 years ago
7 0

Answer:

The most important quantity to consider in order to answer this question is the arrival time of the zombies from their initial position, which is the quotient between their distance to the visitors, divided the zombie's speed.

See explanation below.

Step-by-step explanation:

Part 1)

What is crucial to know is what is the time at which each zombie would reach Alice and Bob, and that is given by the quotient between the distance away each zombie is, divided by the zombie's speed:

speed=\frac{distance}{time} \\time=\frac{distance}{seed} \\t_i=\frac{d_i}{s_i}

Then, it is this quotient for each zombie, that one has to estimate given the input values distance and speed, and it is the output "time" (t_i) for each zombie, what we need to analyze so as to prioritize an order regarding which zombie to kill first.

Part 2)

Shooting the closest zombie first is not a good idea, since the speed of that closest zombie may be much slower than another zombie further away, but with much larger speed. Again, the important value to analyze is the time that it would take each zombie to reach Alice and Bob.

Part 3)

Shooting the fastest zombie first is not a good idea either, because that fastest zombie could be located very far away from the visitors, and other zombies closer by may reach them first.

Part 4)

The order that should be used to kill the zombies is given by the value of the time to reach Bob and Alice based on the quotient distance (di) over speed (si) explained in Part 1). The zombie that shows smallest time should be shot first, and then the others in increasing order of time value.

Part 5)

Notice that the individual zombie information is not presented in the question, but the student should be able to calculate the quotients for each zombie, and considering that there could be at most one shot every second, estimate the number of seconds that the time for each zombie in increasing order would allow until the addition of shooting time per second in the appropriate order cannot match the arrival time of the zombies that are left.

One should count number of seconds from the first shot (to the zombie with shortest arrival time), and then increase in one unit (one shot per second), to the following zombie with slightly larger arrival time), and so on, until the addition of seconds (one second per shot and per increasing arrival time of zombie) exceeds the next zombie arrival time.

You might be interested in
Which statement is true?
meriva

Answer:

The correct answer is A I believe . . .

8 0
3 years ago
Read 2 more answers
If I deposit $100,000 in a retirement account that gives 8 % paid annually, what will be balance after 25 years?
Zinaida [17]

Answer:

$300,000

Step-by-step explanation:

To find 8% of 100,000 all you need to do is multiply 100,000 by .08.

100,000 (.08) = 8,000

The 8,000 accounts for one year, so now you have to multiply 8,000 by 25.

8,000 (25) = 200,000

Now add the initial amount to the additional 200,00 that will be paid to the retirement account.

100,000 + 200,000 = 300,000

The answer is $300,000.

6 0
3 years ago
The x intercepts of the function f(x) = 2x(x-5)^2(x+4)^3<br> are…
Leokris [45]

Answer:

\boxed{\sf x- intercepts = 0 , 5 \ and \ -4}

Step-by-step explanation:

A function is given to us and we need to find the x Intercepts of the graph of the given function . The function is ,

\sf \implies f(x) = 2x( x - 5 ) ^2(x+4)^3

For finding the x intercept , <u>equate the given function with 0, we have ;</u>

\sf \implies 2x ( x - 5 )^2(x+4)^3= 0

Equate each factor with 0 ,

\sf \implies 2x = 0

Divide both sides by 2 ,

\sf \implies\bf x = 0

Again ,

\sf \implies ( x - 5)^2=0

Taking squareroot on both sides,

\sf \implies x - 5 = 0

Add 5 to both sides,

\sf \implies \bf x = 5

Similarly ,

\sf \implies \bf x = -4

<u>Hence</u><u> the</u><u> </u><u>x </u><u>Intercepts</u><u> </u><u>are </u><u>-</u><u>4</u><u> </u><u>,</u><u> </u><u>0</u><u> </u><u>and </u><u>5</u><u> </u><u>.</u>

{ See attachment also for graph } .

3 0
3 years ago
sandy had 3.8 points in the quiz game. she missed 5 questions losing 1 point each time how many points did she have at the end
telo118 [61]

Answer:

-1.2

Step-by-step explanation:

3.8-5=-1.2

lmk if this is right

hope it helped

8 0
3 years ago
A right triangle has legs measuring 4.5 meters and 1.5 meters. The lenghts of the legs of a second triangle are proportional to
Eduardwww [97]
We know that
in the first triangle
the ratio of the legs are
4.5/1.5-----> 3

then
case <span>A) 6 m and 2 m ------> ratio=6/3----> 3
so
</span><span>the legs of a second triangle are proportional to the lengths of the legs of the first triangle

</span>case B) 8 m and 5 m ------> ratio=8/5---->1.6
so
the legs of a second triangle are not proportional to the lengths of the legs of the first triangle

case C) 7 m and 3.5 mm ------> ratio=7/3.5---->2
so
the legs of a second triangle are not proportional to the lengths of the legs of the first triangle


case D) 10 m and 2.5 m ------> ratio=10/2.5---->4
so
the legs of a second triangle are not proportional to the lengths of the legs of the first triangle

case E) 11.25 m and 3.75 m ------> ratio=11.25/3.75---->3
so
the legs of a second triangle are  proportional to the lengths of the legs of the first triangle

the answer is
A) 6 m and 2 m
E) 11.25 m and 3.75 m




4 0
3 years ago
Other questions:
  • A train traveled 325 miles in 5 hours .what was the the trains average rate of speed in miles per hour
    11·2 answers
  • Eight people enter a race. If there are no ties, in how many ways can the first two places come out
    12·1 answer
  • What is the slope I. Need it
    11·1 answer
  • The function f(x) varies inversely with x and f(x)=-15 when x=30
    12·1 answer
  • Please hurry it’s urgent <br> Thank you for your time
    8·1 answer
  • 2 times the sum of a number and 8 is equal to the difference of 10 and that number find the number
    10·1 answer
  • A card is drawn one at a time from a
    8·1 answer
  • Hey i need this done in 15 pls help giving 25 points
    15·1 answer
  • 5 Which situation can be modeled by Diagram A and
    15·1 answer
  • What is the constant term -6+x4-x2
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!