current position:Home>Pseudo code method for solving missionary and savage problems

Pseudo code method for solving missionary and savage problems

2022-02-04 16:29:31 CSDN Q & A

Missionaries and savages . Three missionaries and three savages are on one bank of the river , There is a boat that can carry one or two people , Please try to get everyone across to the other side of the river , It is required that the number of savages in any place should not exceed the number of missionaries .
How to find the optimal solution of the problem with an appropriate search algorithm ? How to express with pseudo code ? thank you

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/02/202202041629296746.html

Random recommended