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...
-
Thomas Kimbro, a Department of Public Safety (DPS) officer, was the driver of a state-owned vehicle that struck Brystal McCloud's vehicle on April 1, 2005. Kimbro normally worked in Phoenix, where he...
-
The requirement for small features on small parts has led to increased demands on measuring systems. One approach for determining the size of features (such as a hole's diameter) is to use a probe to...
-
Jennifer Vera, Inc., is the only company with a distribution network for its imported goods. The company does a brisk business with specialty stores such as Neiman Marcus, Saks Fifth Avenue, and...
-
Collyer Products Inc. has a Valve Division that manufactures and sells a standard valve as follows: The company has a Pump Division that could use this valve in the manufacture of one of its pumps....
-
Blossom Inc. operates a lumber yard. Blossom purchases the raw materials for $50100 and incurs additional processing costs of $36200 to obtain three observable joint products. Further processing and...
-
A laser pointer is kept at a constant and fixed height above the floor, but it can move horizontally back and forth in a straight line. A mirror is placed on a platform at a fixed distance from a...
-
Which of the following statements about enveloped viruses is true? (Select all that apply) Enveloped viruses have only a capsid surrounding their genetic material. Enveloped viruses exit their host...
-
If Apple (AAPL) decides expand their company locally inside the U.S. (1) what financial modeling is is needed in the decision-making process, and define its purpose in terms of providing optimal...
-
What information is not to be stored in a Personal Health Record (PHR)? Explain.
-
Here is a portfolio and benchmark return: Benchmark performance Portfolio performance Equity 40 4% Equity 40 3.5% Treasury 40 2.6% Treasury 40 2.6% High Yield 20 3% High Yield 20 3% How much the...
-
In what ways does the protagonist's existential journey serve as a vehicle for exploring the complexities of the human condition ? Explain
-
Lenny Davis purchased a new house for $250,000. He paid $30,000 down and agreed to pay the rest over the next 25 years in 25 equal annual payments that included principal payments plus 10 per cent...
-
Simpson Auto Body Repair purchased $20,000 of Machinery. The company paid $8,000 in cash at the time of the purchase and signed a promissory note for the remainder to be paid in four monthly...
-
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?
-
Prove that the constant \(a\) in Eq. (8.82) is positive for common boundary conditions. c dW(x) W(x) dx4 = 1 dT(t) T(t) dt = a = w (8.82)
-
Find the response of a simply supported beam subject to a uniformly distributed harmonically varying load.
-
A cantilever beam of length \(l\), density \(ho\), Young's modulus \(E\), area of cross section \(A\), and area moment of inertia \(I\) carries a concentrated mass \(M\) at its free end. Derive the...
Study smarter with the SolutionInn App