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
Alisa had 1/2 L of juice in a bottle. She drank 3/8 L of her juice. What
Elina [12.6K]

Answer:

3/16

Step-by-step explanation:

By drinking 3/8 liters of 1/2 liter juice it means the question tests the ability to multiply fractions. Since she drank 3/8*1/2=3/16

We multiply the numerators and denominators separately ie 3*1/(8*2)=3/16

Therefore, Alisa consumed 3/16 or 0.1875 or 18.75% of the juice.

Since the question was in fractional form, it is prudent to also express answer in fractions hence the right answer is 3/16

3 0
3 years ago
Subtract the binomials. On simplifying (-3y2 − 8) − (-5y2 + 1), we get ____ y2 −______ .
Gala2k [10]
(-3y^2 − 8) − (-5y^2<span> + 1)
= </span>-3y^2 − 8 + 5y^2<span> - 1
= 2</span>y^2 <span>- 9

answer is

</span>2y^2 - 9<span>

</span>
6 0
3 years ago
Read 2 more answers
Which of the following pairs of functions are inverses of each other?
AnnyKZ [126]

Answer:

Step-by-step explanation:

Rearrange each function to solve for x.

Switch x and y,

The resulting equation is the inverse function.

A:

f(x) = y = 5+x

x = y-5

y = x-5

f⁻¹(x) = x-5

g(x) = 5-x ≠ f⁻¹(x)

g(x) is not the inverse of f(x).

:::::

B:

f(x) = y = 2x-9

x = (y+9)/2

y = (x+9)/2

f⁻¹(x) = (x+9)/2

g(x) = (x+9)/2 = f⁻¹(x)

g(x) is the inverse of f(x).

:::::

C:

f(x) = y = 2/x - 6

x = 2/(y+6)

y = 2/(x+6)

f⁻¹(x) = 2/(x+6)

g(x) = (x+6)/2 ≠ f⁻¹(x)

:::::

D:

f(x) = y = x/3 + 4

x = 3y - 12

y = 3x - 12

f⁻¹(x) = 3x - 12

g(x) = 3x - 4 ≠ f⁻¹(x)

g(x) is not the inverse of f(x).

4 0
2 years ago
How do you answer number 5
riadik2000 [5.3K]

x² - x - 6  = (x +3)(x - 2)

x² - 5x + 6 = (x - 2)(x - 3)

What is their common factor?

Answer: B. x - 2

5 0
3 years ago
Sammi believes that 0.3 repeating is a rational number. Is Sammi correct?
Ket [755]

Answer: Yes, Sammi is correct because although it is repeating, it is expressible as a ratio of 2 integers.

I hope this helps!

Step-by-step explanation:

7 0
3 years ago
Other questions:
  • Which number sentence below matches this word problem? Two
    6·1 answer
  • What are the last two questions?
    13·1 answer
  • How many 90° angles are formed by the intersection?
    8·2 answers
  • The formula for the surface area of a cylinder is 2\pi r(r+h)2πr(r+h)2, pi, r, left parenthesis, r, plus, h, right parenthesis w
    8·1 answer
  • Mr. Burr and his daughter live in Corpus Christi, Texas. Mr. Burr’s employer pays 100% of his insurance premium and 50% of the p
    12·1 answer
  • The sum of two numbers is 67. The larger number is 4 more than 2 times the smaller. What are the two numbers?
    9·1 answer
  • G=3j+4 for j how do I find r
    7·1 answer
  • The rate of change in sales S is inversely proportional to time t(t &gt; 1) measured in weeks. Find S as a function of t if sate
    5·1 answer
  • Help ASAP A TIMED QUIZZZZZ
    15·2 answers
  • This table shows the number of goals scored in 25 Premier League football matches
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!