A partial solution to the Missionaries and Cannibals problem is given below ( M represents missionaries, C represents cannibals, and E represents the east side of the river ). Complete the solution to this problem.
If the file contained only five integers: 9, 3, 10, 6, and 2 what would the bit array B[] look like after the "while" loop finishes? (Assume the first position in the bit array is called location 1. Write the answer something like 01010110001100... where 1 and 0 have the obvious meaning.
Explain the strategy of "incubation".
Explain the divide and conquer strategy for problem solving.
Explain what could go wrong with this sorting technique. For example, describe what happens if the data file contains duplicate values.
{ Script }