title>CS267/Sp1995 Assignment 2
U.C. Berkeley Department of Electrical Engineering and Computer Science
CS267 Sp95
Assignment 2: Due Thursday, February 9, 1994
Your assignment is to solve the
Sharks and Fish 1 & 2 problem,
i.e. fish swimming around in an ocean subject both to external
current and gravity. You should modify existing matlab and CM Fortran
code on rodin in /usr/castle/share/proj/shortcourse/wator.
You should not run the matlab code on rodin, but on your own workstation,
so rodin does not get loaded (matlab should run everywhere). There are
pointers to the code that you can click on in
Lecture 4.
It is harder to test your implementation to see if you answers are
accurate in a simulation of this kind, because it is less clear what
the "right" answer is supposed to be, unlike matrix multiplication.
You should try 2 test cases:
In addition to looking at nice pictures produced by the code, and turning in
a picture of the fish after several "together and apart" cycles from Case 2,
you should time the CMF code, and compute the speedup and efficiency. For this,
remove the I/O, and time only the main loop of the program. Is the speedup what
you expect?
Assignment 3 will be exactly the same, but using the CMMD library
and the Split-C language.