A zombie breakout has occurred in the country 1D and you have been asked by the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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. 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. 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. 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. 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:
Answer rating: 100% (QA)
1 To solve this problem we can use a graph algorithm called Dijkstras algorithm This algorithm allow... View the full 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 accounting questions
-
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 as a HR Generalist have been asked by your HR Director for your recommendations in terms of what tools your organization could use to better manage the talents of your employees. This will help...
-
Scott is the sole director and shareholder of a company called Go Slow Pty Ltd. It is involved in marketing holidays to exclusive overseas destinations. It is located in Southbank. It is registered...
-
As you might imagine, the chart of accounts for a manufacturing firm would be different from that of a service firm. Not surprisingly, service firms differ so much that software now exists for almost...
-
Consider the following call option: The current price of the stock on which the call option is written is $20.00; The exercise or strike price of the call option is $18.00; The maturity of the...
-
Determine whether this series converges or diverges by ratio test. n=1 (-1)" (n!) (2n)!
-
True or False. The coordinate transformation of element matrices is required for all systems.
-
Rimes Company makes and sells lawn mowers for which it currently makes the engines. It has an opportunity to purchase the engines from a reliable manufacturer. The annual costs of making the engines...
-
Read the Danshui Plant 2 case in your Course Pack, Using budget data, how many Apple iPhone 4's would have to have been completed for Danshui Plant 2 to break-even? Using budget data, what was the...
-
For each of the following lists of premises, derive the conclusion and supply the justification for it. There is only one possible answer for each problem. (1) 1. G F 2. F 3. _______ ____ (2) 1. S...
-
Mr. Said Al Yaqoobi, an MBA degree holder from UK, worked in software related and financial service company for 5 years. He then started his own business called Muscat Business Solutions on January...
-
1. Consider the finite state machine whose next state function and output function are given by: V b 82 $6 85 84 84 86 $1 82 83 84 83 $5 85 82 $3 86 84 $3 and W a b Y N YN Y Y 84 Y Y Y N 85 86 Y Y $1...
-
Toby and Norma are married at 18 and quickly have three children. Eventually, Toby and Norma separate and their children grow into adults and have their own families. Norman ever remarries and passes...
-
Using Microsoft Access, how can Jenny identify the redundant attributes in her table and design an efficient database management system? Selling Mary Kay brand cosmetics and beauty aids was Jenny...
-
Company A announced an offer to buy Company B for $22/sh; $17/sh in cash, $5/sh in stock (Explain) Cash component is about $22 Bn Revenue of target is 6.5x the acquiror Combined EBITDA is $6.5 Bn...
-
We can produce 62,000 mice in the first quarter of the year and add $1,550,000 in revenue! Your boss is fascinated and says she want to move forward but... she wants to make sure this is really going...
-
1. Answer the following questions related to stabilization. 1.1) Imagine the United States educational system improves, which makes workers more productive. If the federal reserve is trying to...
-
1-Stern observed all of the following results EXCEPT _______ in his experiment. A-one of the recombinant phenotypes was associated with an X chromosome of normal length B-the number of car, B+ male...
-
What does a manager learn by computing an industry volume variance?
-
Midland Resources has two production departments (Fabrication and Assembly) and three service departments (Engineering, Administration, and Maintenance). During July, the following costs and service...
-
Consider two firms in the same industry. Is it possible that one uses job costing and the other uses process costing? Explain.
-
What is the total amount of slack in all critical path activities?
-
PERT assumes that individual task times can be modeled with what type of prob- ability distribution?
-
Would a project with 100 tasks always be more challenging to manage than a differ- ent project with only 20 tasks? Why or why not?
Study smarter with the SolutionInn App