I need a program to compute the following problem: on a riverside there are 2 children and one adult. There is a boat which can be used to transport 2 children, one child, or one adult. Whenever the boat passes the riverside there has to be at least one person in it. We have to move the 2 children and the adult on the other side of the river.In theory it goes like this: I generate a tree with all the possible valid moves, than search until we have the result(Uninformed search), but I can't seem to have an idea on how to actually start the program. Can anyone help me with some ideas?
|All times are GMT +5.5. The time now is 16:25.|