Skip to content

From scratch backtracking solution to the Wolf, Sheep, Cabbage, and Farmer (River Crossing) Problem using C++

License

Notifications You must be signed in to change notification settings

mahmoudai1/backtracking-river-crossing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Backtracking River Crossing

From scratch backtracking solution to the Wolf, Sheep, Cabbage, and Farmer (River Crossing) Problem using C++

The problem is to drive all the passengers/things to the other side.

Constraints:

● Wolf is not allowed to stay with the sheep neither the farmer.

● Sheep is not allowed to stay with the cabbage.

● Only two passengers/things can enter the boat.

Releases

No releases published

Packages

No packages published

Languages