6 Zombie breakout (from the Exam 2014) A zombie breakout has occurred in the country 1D...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
6 Zombie breakout (from the Exam 2014) A zombie breakout has occurred in the country 1D and you have been asked by the prime minister to help find solutions to stop the infection. You are given a map of the country, with coordinates of all cities. There are X infected cities and Y uninfected cities. The map also contains information about all roads between cities. A road goes directly to from one city to another and all roads are directed. There are R roads. A city is reachable from the capital if you can follow one or more roads from the capital to the city. You can assume that the travel time from the capital to any reachable city is no more than a day. 6.1 Save the capital The zombies only travel on the roads. The capital is still uninfected and the prime minister wants to know how many roads that must be destroyed to keep the capital uninfected. Give an algorithm to compute the minimum number of roads that has to be destroyed to cut off the capital from the infected cities. Analyze the running time of your algorithm in terms of X, Y, and R. Remember to argue that your algorithm is correct. 6.2 Distributing the vaccine Researchers in the center in the capital have found a vaccine. To get the vaccine to the people in the uninfected cities we need to send 10 doctors to each uninfected city. The doctors can only travel on the roads. They can go through infected cities but at most 50 doctors can go through each infected city per day. Give an algorithm to decide whether we can get the vaccine out to all uninfected cities in one day. Analyze the running time of your algorithm in terms of X, Y, and R. Remember to argue that your algorithm is correct. 6 Zombie breakout (from the Exam 2014) A zombie breakout has occurred in the country 1D and you have been asked by the prime minister to help find solutions to stop the infection. You are given a map of the country, with coordinates of all cities. There are X infected cities and Y uninfected cities. The map also contains information about all roads between cities. A road goes directly to from one city to another and all roads are directed. There are R roads. A city is reachable from the capital if you can follow one or more roads from the capital to the city. You can assume that the travel time from the capital to any reachable city is no more than a day. 6.1 Save the capital The zombies only travel on the roads. The capital is still uninfected and the prime minister wants to know how many roads that must be destroyed to keep the capital uninfected. Give an algorithm to compute the minimum number of roads that has to be destroyed to cut off the capital from the infected cities. Analyze the running time of your algorithm in terms of X, Y, and R. Remember to argue that your algorithm is correct. 6.2 Distributing the vaccine Researchers in the center in the capital have found a vaccine. To get the vaccine to the people in the uninfected cities we need to send 10 doctors to each uninfected city. The doctors can only travel on the roads. They can go through infected cities but at most 50 doctors can go through each infected city per day. Give an algorithm to decide whether we can get the vaccine out to all uninfected cities in one day. Analyze the running time of your algorithm in terms of X, Y, and R. Remember to argue that your algorithm is correct.
Expert Answer:
Related Book For
Fundamentals of Cost Accounting
ISBN: 978-1259565403
5th edition
Authors: William Lanen, Shannon Anderson, Michael Maher
Posted Date:
Students also viewed these algorithms questions
-
You have been asked by two of your friends, Marco and Jenna, to settle a (friendly) argument they are having about splitting the cost of a road trip during Spring Break. They will take Jenna's car...
-
You have been asked to evaluate two companies as possible investments. The two companies, Norfolk Industries Inc. and Strafford Crystal Limited, are similar in size. Assume that all other available...
-
You have been asked to evaluate two companies as possible investments. The two companies, Norfolk Industries Inc. and Strafford Crystal Limited, are similar in size. Assume that all other available...
-
FinCorp Inc. is exploring different portfolio allocations between two stocks. Complete the following table. Case1 Case 2 Case 3 Case 4 Case 5 $ invested in stock 1 $ invested in stock 2 Total $...
-
Water at 20C is transported through a 200-m-long wrought iron pipe with a head loss of 9.8 m. Determine the diameter of the pipe required to convey 10 L/sec.
-
In Problem find f (x) and simplify. f(x) = (3x + 2)(4x - 5)
-
Suppose that the price received for gold extracted from time \(k\) to \(k+1\) is the average of the price of gold at these two times; that is, \(\left(g_{k}+g_{k+1} ight) / 2\). However, costs are...
-
Nicolet Real Estate Company was founded 25 years ago by the current CEO, Steven Nicolet. The company purchases real estate, including land and buildings, and rents the property to tenants. The...
-
3. Starting with the following AVL tree: 100 50 200 30 80 Perform the following operations cumulatively in the order given. For each operation draw: The tree after the operation but before any...
-
You want to park your bicycle in a bicycle parking area where bike racks are aligned in a row. There are already N bikes parked there (each bike is attached to exactly one rack, but a rack can have...
-
Imagine that you are the manager of a radio station. A 15 year-old Pop Star who recently visited the station complained that one of your DJs touched her inappropriately during a recent studio visit....
-
A roller coaster has a starting hieght of 1 . 6 1 m . The length of track is 6 . 1 3 m . The final height of the track is . 2 2 m . The marble mass is . 0 0 4 kg The marble starts from rest. What...
-
Research Correctional Service Canada programs in Ontario, including: the identification of each program's mandate; their distinguishing characteristics; their position within the field of community...
-
Determine the difference in potential between two points that are distances Ra and Rb from a very long (> Ra or Rb) straight wire carrying a uniform charge per unit length X Express your answer in...
-
8. Explain the features I, II and III in the density of states diagram shown below. Occupancy F 0 EF 3 Q1-4: Covered
-
In which car will vou be moving fastest at theverv bottom of the incline? a) Front ar. b) Middle car. c) Rear car. d) Other.
-
During COVID-19 Global lock down, there is shortage of Air Conditioner's supply in the market in the month of April 2020. Nesto Electronics store raises the price of an Air Conditioner by 15% above...
-
In the series connection below, what are the respective power consumptions of R, R2, and R3? R R www 4 V=6V P1-3 W; P2=3W; and P3= 3 W OP10.5 W; P2-1 W; and P3= 1.5 W P1=1.5 W; P2=1 W; and P3= 0.5 W...
-
IPort Products makes cases for portable music players in two processes, cutting and sewing. The cutting process has a capacity of 150,000 units per year; sewing has a capacity of 180,000 units per...
-
On-the-Go, Inc., produces two models of traveling cases for laptop computers: the Programmer and the Executive. The bags have the following characteristics: The total fixed costs per year for the...
-
We have discussed two methods for process costing, weighted average and FIFO. Your colleague recommends last-in, first-out (LIFO) process costing to the controller as a new system. The controller is...
-
While the BohrSommerfeld condition sometimes gets the energy eigenvalues exactly correct, it can also be used for systems where the exact solution is not known. In this example, we will estimate the...
-
While we introduced the variational method and the power method both as a way to approximate the ground state of some system, they both can be used to approximate excited states as well, with...
-
It's useful to see how our quantum perturbation theory works in a case that we can solve exactly. Let's consider a two-state system in which the Hamiltonian is...
Study smarter with the SolutionInn App