Five people - Alice, Bob, Carlos, Diana, and Elena - must cross a river in a small boat. The boat can only hold three people at a time. The following conditions apply:
* Alice refuses to be in the boat with Carlos
* Bob and Diana must travel together if either one is in the boat
* Elena can only operate the boat when Carlos is not present
* At least one person in each crossing must know how to operate the boat
* Only Bob, Carlos, and Elena know how to operate the boat
Infer an efficient plan.
沒有留言:
張貼留言