星期三, 10月 01, 2025

River crossing Puzzle 1

    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.





River crossing Puzzle 2

 渡河問題2 (statement),Problem via 許元銘


結果視覺化


Claude solution non-reasoning (incorrect)


Sonnet 4 extended fails

Reasons: sometimes one of the constraints was disregarded. 2



ChatGPT 5 works 3/5.  (Two claimed to use Python code execution. One is correct. The other is not. Therefore, is it true code was generated and then executed?) 1, *2x, 34x, *5









Code Gen

Use ChatGPT 5 to generate BFS search




Use Claude second time to generate A*

 it takes 15 steps. (thanks to the python code generated by Claude)




another 15-step solution



yet another 15-step

one more 15-step

last 15-step