Write a parallel program to simulate the actions of the sharks and fish as described in Section 6.3.3. The parameters that are input are size of ocean, number of fish and sharks, their initial placement in the ocean, breeding ages, and shark starvation time. Adjacent cells do not include diagonally adjacent cells. Therefore, there are six adjacent cells, except for the edges. For every generation, the fishes’ and sharks’ ages are incremented by 1. Modify the simulation to take into account currents in the water.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here