N-body Simulation

Description :
Write a sequential program, a P-thread, an OpenMP, and an MPI-based parallel programs to simulate an astronomical N-body system, but in two-dimensions.  The bodies are initially at rest.  Their initial positions and masses are to be selected randomly (using a random number generator).  Display the movement of the bodies using xlib, or otherwise, showing each body in a color and size to indicate its mass.

Where and What to Turn in Your Homework :

Please turn in a paper includes

   - 心得報告

   - Performance analysis

   - The source code of your program


Due Day
Program : before 24:00 Dec. 26, 2010
Paper : Dec. 27, 2010

PS : No Late Homework!!! Do Not Copy Programs From Others