Five people need to walk from this side to the other side of a bridge at...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Five people need to walk from this side to the other side of a bridge at night. The bridge is not in a very good condition and will hold at most 3 people at a time. They discover that they only have one torch. This means that after one, two, or three people have crossed the bridge, somebody (one, two, or three people) will have to come back with the torch so that the next persons can cross safely. Each of the five people (Anna, Brett, Charles, David, and Ernest) take a different time to cross the bridge. Whenever 3 people cross they can only go as fast as the slowest person in the group. Since the torch has limited battery life they need to figure out which is the fastest way to get all 5 of them across the bridge. The times each take to get across are: 1. Anna: 5 Minutes 2. Barry: 7 Minutes 3. Charles: 1 minute 4. David: 2 minutes 5. Erne I am asked how big the search space is of the problem. This is where I am getting stuck. There are 5 people, and two sides of the bridge where they can be. There is also a variable amount of people that can cross at a time (1-3 people). My state representation is $\{ A, B, C, D, E \}$ representing the first letter of each person, with this being the set of people on the left side of the bridge. Hence, my goal state is $\{\}$ - all people on the right side of the bridge. I've also worked out the sequence of moves that leads to the optimal solution - my issue is just the size of the search space. How do I go about calculating the size of the search space? Five people need to walk from this side to the other side of a bridge at night. The bridge is not in a very good condition and will hold at most 3 people at a time. They discover that they only have one torch. This means that after one, two, or three people have crossed the bridge, somebody (one, two, or three people) will have to come back with the torch so that the next persons can cross safely. Each of the five people (Anna, Brett, Charles, David, and Ernest) take a different time to cross the bridge. Whenever 3 people cross they can only go as fast as the slowest person in the group. Since the torch has limited battery life they need to figure out which is the fastest way to get all 5 of them across the bridge. The times each take to get across are: 1. Anna: 5 Minutes 2. Barry: 7 Minutes 3. Charles: 1 minute 4. David: 2 minutes 5. Erne I am asked how big the search space is of the problem. This is where I am getting stuck. There are 5 people, and two sides of the bridge where they can be. There is also a variable amount of people that can cross at a time (1-3 people). My state representation is $\{ A, B, C, D, E \}$ representing the first letter of each person, with this being the set of people on the left side of the bridge. Hence, my goal state is $\{\}$ - all people on the right side of the bridge. I've also worked out the sequence of moves that leads to the optimal solution - my issue is just the size of the search space. How do I go about calculating the size of the search space?
Expert Answer:
Answer rating: 100% (QA)
There are 5 people and two sides of the bridge where they can be There is also ... View the full answer
Related Book For
The Legal Environment of Business A Managerial Approach Theory to Practice
ISBN: 978-0078023804
2nd edition
Authors: Sean Melvin, Michael Katz
Posted Date:
Students also viewed these accounting questions
-
1. Are all the other elements of a negligence tort satisfied in this case? 2. Who else might have sued the Long Island Railroad? Who else might Palsgraf have sued? For what? Palsgraf was waiting on a...
-
1. Are all the other elements of a negligence tort satisfied in this case? 2. Who else might Palsgraf have sued? For what? 3. Context is always important. This case was decided before any federal or...
-
Anna and Zoltan are neighbours. Anna is very good at automotive mechanics; Zoltan is an expert carpenter that can build anything from wood. Anna and Zoltan made an agreement where Anna promised to...
-
Refer to Figure 9.3. Svetlana scores 0.70 on the responsibility scale of the CPI. Dymitri scores 0.30 on the responsibility scale of the CPI. By how many T-score points do their scores differ? Figure...
-
Suppose that X and Y are independent Poisson random variables such that Var(X) + Var(Y) = 5. Evaluate Pr(X + Y <2).
-
Treat the five measurements from each day as a sample and construct an R chart. What does the result suggest? Refer to the accompanying table of weights (grams) of quarters minted by the U.S....
-
The column is supported at \(B\) by a support that does not permit rotation but allows vertical displacement. Determine the critical load \(P_{\mathrm{cr}} . E I\) is constant. Per A L B
-
This Mini Case incorporates the calculation of a weighted average cost of capital (WACC) to determine whether the Alpha One Software Corporation added economic value in 2010. The Appendix to Chapter...
-
You are a law clerk employed by an administrative tribunal in Ottawa. On January 20, 2024, during a nasty cold snap, Insp. Paul Hogan removed two dogs from a motor vehicle parked at St. Laurent...
-
Trace or copy the graph of the given function f. (Assume that the axes have equal scales.) Then use the method of Example 1 to sketch the graph of f' below it. yA
-
Lab 4: Vectors Part C: Precise Vector Diagrams Graphical methods require a precisely drawn diagram with carefully measured lengths and angles. When graph paper is used, each grid line represents a...
-
With the passage and implementation of the Dodd - Frank Law during the time period mentioned in our discussion, have there been any direct changes to the accounting profession regarding reporting...
-
How has the concept of the Bildungsroman evolved over time? Discuss contemporary variations of this genre and examine how they address themes of personal growth in different cultural or...
-
Describe how the arrangement of atoms allows for electrical current to move through metals? Explain.
-
Distinguish between magical realism and surrealism. How do these genres differ in their approach to blending the fantastical with reality? Can you give examples of authors or works that epitomize...
-
Harmony Inc. uses a job-costing system with two direct cost categories (direct materials and direct manufacturing labor) and one manufacturing overhead cost pool. Harmony allocates manufacturing...
-
Open the Excel file to the tab labeled Observations In Text Box 1, identify at least three merchandise items that require action and explain why In Text Box 2, develop and defend at least three...
-
Evaluate how many lines there are in a true rotational spectrum of CO molecules whose natural vibration frequency is w = 4.09 1014 s1 and moment of inertia I = 1.44 1039 g cm2.
-
1. What exceptions displacing the employment-at-will doctrine could the pipe fitters assert? 2. What theory would be best advanced by the pipe fitters? Explain.
-
1. What would No Spray have to prove in order to have an actionable claim under the CWA? 2. Explain the significance of citizen suits provisions and watchdog groups in the context of the immediate...
-
1. Is the maximum airflow rule a logical outgrowth of the proposed rule? Why or why not? 2. Is the agency required to republish the rule?
-
How does a firms corporate strategy affect its operations management?
-
How do production management and service operations management differ?
-
What is supply chain management? What is vertical integration?
Study smarter with the SolutionInn App