19. Quentin, Alice, and the other Brakebills Physical Kids are planning an excursion through the Neitherlands...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
19. Quentin, Alice, and the other Brakebills Physical Kids are planning an excursion through the Neitherlands to Fillory. The Neitherlands is a vast, deserted city composed of several plazas, each containing a single fountain that can magically transport people to a different world. Adjacent plazas are connected by gates, which have been cursed by the Beast. The gates between plazas are open only for five minutes every hour, all simultaneously-from 12:00 to 12:05, then from 1:00 to 1:05, and so on-and are otherwise locked. During those five minutes, if more than one person passes through any single gate, the Beast will detect their presence.¹5 Moreover, anyone attempting to open a locked gate, or attempting to pass through more than one gate within the same five-minute period will turn into a niffin.16 However, any number of people can safely pass through different gates at the same time and/or pass through the same gate at different times. You are given a map of the Neitherlands, which is a graph G with a vertex for each fountain and an edge for each gate, with the fountains to Earth and Fillory clearly marked. (a) Suppose you are also given a positive integer h. Describe and analyze an algorithm to compute the maximum number of people that can walk from the Earth fountain to the Fillory fountain in at most h hours-that is, after the gates have opened at most h times-without anyone alerting the Beast or turning into a niffin. The running time of your algorithm should depend on h. [Hint: Build a different graph.] 19. Quentin, Alice, and the other Brakebills Physical Kids are planning an excursion through the Neitherlands to Fillory. The Neitherlands is a vast, deserted city composed of several plazas, each containing a single fountain that can magically transport people to a different world. Adjacent plazas are connected by gates, which have been cursed by the Beast. The gates between plazas are open only for five minutes every hour, all simultaneously-from 12:00 to 12:05, then from 1:00 to 1:05, and so on-and are otherwise locked. During those five minutes, if more than one person passes through any single gate, the Beast will detect their presence.¹5 Moreover, anyone attempting to open a locked gate, or attempting to pass through more than one gate within the same five-minute period will turn into a niffin.16 However, any number of people can safely pass through different gates at the same time and/or pass through the same gate at different times. You are given a map of the Neitherlands, which is a graph G with a vertex for each fountain and an edge for each gate, with the fountains to Earth and Fillory clearly marked. (a) Suppose you are also given a positive integer h. Describe and analyze an algorithm to compute the maximum number of people that can walk from the Earth fountain to the Fillory fountain in at most h hours-that is, after the gates have opened at most h times-without anyone alerting the Beast or turning into a niffin. The running time of your algorithm should depend on h. [Hint: Build a different graph.]
Expert Answer:
Answer rating: 100% (QA)
Answer and step by step explanation Algorithm 1 Construct a new graph G with a vertex for ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Please thoroughly explain how the manufacturing company General Electric relates to basic accounting.
-
Thoroughly explain why communication is a critical concern to all sport managers. Thoroughly explain what skills and experiences are most important for sport communication professionals to possess....
-
Thoroughly explain the difference between incompetence to stand trial (or adjudicative incompetence) and insanity. Include in your answer what researchers have learned about the individuals who...
-
Pettit Printing Company has a total market value of $100 million, consisting of 1 million shares selling for $50 per share and $50 million of 10 percent perpetual bonds now selling at par. The...
-
Burke Corporation was organized on January 1, 2014. It is authorized to issue 10,000 shares of 8%, $100 par value preferred stock, and 500,000 shares of no-par common stock with a stated value of $2...
-
Two blocks are attached to opposite ends of a massless rope that goes over a massless, frictionless, stationary pulley. One of the blocks, with a mass of 6.0 kg, accelerates downward at 3/4 g. What...
-
What is the role of a paralegal in the litigation process?
-
What criteria must be met before donated services can be recorded as contribution revenue and an expense? Give an example of a service that might qualify as a donated service for accounting purposes.
-
On January 1, Larkspur Corporation issues a $160,000, 10-year non-interest-bearing note to Camden Production for new machinery. The market interest rate is 8% and Camden is to pay $16,000 as an...
-
1. What is the cost of debt for Sunrise Bakery? 2. What is their cost of equity? 3. What is the WACC? 4. Which cost of capital should be used to evaluate the feasibility of the oven purchase? 5....
-
1. A wire originally 3.2 m long suffers a 7.5% strain. What is its new stretched length? 2. A ball of mass 3.5 kg having diameter of 60 cm falls in the swimming pool. Calculate its buoyant force and...
-
Your Turn Climb the Legal Ladder Dewey & LeBoeuf, which just a few years previously had 2,500 employees (including 1,400 attorneys) in 26 offices around the world, filed for bankruptcy in 2012. The...
-
4. A PUMA 560 robot arm is used to pick and place an object. The required pick and place end- effector poses are given by homogenous transformation matrices To and T, respectively, To -1 0 500 00-500...
-
Mr. Sho operates a news-stand and sells newspaper - orders copies of the newspaper from the publisher at a cost of $4 per copy - sells at a retailing price of $7 -The demand can be described with a...
-
Problem 1. Consider the Fibonacci numbers, define recursively by F = 0, F = 1, and Fn = Fn1 + Fn-2 for all n 2; so the first few terms are 0, 1, 1, 2, 3, 5, 8, 13, .... Fn For all n >2, define the...
-
On January 1, 2021, Entity A Company acquired all the assets and assumed all the liabilities of Entity B Company and merged Entity B into Entity A. In exchange for the net assets of Entity B, Entity...
-
In a chemistry lab are 2 bottles (which we can designate A and B), both labelled "indium bromide, InBr" but the solids in the bottles have different colors. You analyze samples of both solids to find...
-
You've been asked to take over leadership of a group of paralegals that once had a reputation for being a tight-knit, supportive team, but you quickly figure out that this team is in danger of...
-
Lisa Sizemore, a taxpayer in the 10-15 percent tax bracket, purchased stock as an investment on July 11, 2011. She sold the stock on July 9, 2012, 2 days before qualifying for the long-term holding...
-
Linda and Richard are married and file a joint return for 2012. During the year, Linda, who works as an accountant for a national airline, used $2,100 worth of free passes for travel on the airline;...
-
Scott Butterfield is self-employed as a CPA. He uses the cash method of accounting, and his Social Security number is 644-47-7833. His principal business code is 541211. Scott's CPA practice is...
-
The upper curve in the boiling point diagram is called (a) The saturated vapour curve (b) The dew point curve (c) The saturated liquid curve (d) Both (a) and (b).
-
A vertical cylinder containing helium gas is filled with a piston of \(50 \mathrm{~kg}\) mass and crosssectional area of \(0.025 \mathrm{~m}^{2}\). If the atmospheric pressure outside the cylinder is...
-
The Joule-Thomson coefficient for any gas at inversion point is (a) 1 (b) 0 (c) 2 (d) 3
Study smarter with the SolutionInn App