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
Help plz this is my last question of my quiz anybody know the answer don't send file plz ? Question 24
Ostrovityanka [42]

Answer:

4 units count the boxes from a to b and that's 4

5 0
3 years ago
How many seconds are in a leep year
Vedmedyk [2.9K]

Answer:3.162e+7

Step-by-step explanation:in 1 hour it is

3 0
3 years ago
How you solve systems of equations
garri49 [273]
Look it up on the cumputer
8 0
3 years ago
The circle above has a radius of 11 cm. what is the area of the circle? use = 3.14.
Lina20 [59]
The area of circle can be determined with the formula
a = π × r²

Given from question:
r = 11 cm
π = 3.14

Asked from question:
a

Solution:
input the numbers to the formula
a = π × r²
a = 3.14 × 11²
a = 3.14 × 121
a = 379.94 cm²

The area of the circle is 379.94 cm²
6 0
3 years ago
Which segment is the perpendicular bisector of XY¯¯¯¯¯¯¯¯? options : CD, FH, DH, FG
sveta [45]

Answer:

CD

Step-by-step explanation:

CD is perpendicular to XY and also cuts XY into two equal halves.

FH is not perpendicular to XY even though it cuts XY into two equal halves.

DH is not a line.

FG is perpendicular to XY but it does not cut XY into equal halves.

8 0
3 years ago
Read 2 more answers
Other questions:
  • 25) A group of 35 people are going to run a
    8·1 answer
  • An oil tank is being filled at a constant rate. The depth of the oil is a function of the number of minutes the tank has been fi
    8·1 answer
  • The 2 in the middle is the one that I needed help <br> Please
    10·1 answer
  • A sales person works 40 hours per week at a job he has two options were being paid option is the hourly wage of $19 I should be
    15·1 answer
  • There are 12 balls in a bag. One is blue and one is red. What is the exact probability that the blue ball is drawn first and the
    13·1 answer
  • A circle with a radius of 1 unit​
    5·1 answer
  • Please I really need help with these
    15·1 answer
  • I NEED HELP ASAP Find the area of the trapezoid by decomposing it into other shapes.
    13·1 answer
  • Standard form, degree, leading coefficient of 2x(2)-7x(4)+5x
    10·1 answer
  • Can someone please help me with this :( asap
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!