Question: In c++ Please use recursion and backtracking Write a recursive program to solve the problem of the Fiji Explorers: three explorers and three cannibals come

In c++
Please use recursion and backtracking
Write a recursive program to solve the problem of the Fiji Explorers: three explorers and three cannibals come to a river and find a boat that holds two individuals. If the cannibals ever outnumber the explorers on either bank, the explorers will be eaten. How might they cross safely? Your task is to write a program that will show the sequence in which all the individuals are transported from one side of the river to the other side, well and alive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
