| |||
|
| |||
| | |||
| |||
|
Discrete Event Simulation
A discrete event simulation of balls colliding elastically in a
closed box. For some reason, I've had the idea of making this ever
since Prof. Luc Devroye said, and I paraphrase, that "every
student should experience writing a discrete event simulation before
graduating."
The applet gives you choice to render discretely or continuously. If you choose to render discretely, a pause of 100ms is taken during each event. Continuous rendering may be choppy with large numbers of entities. Hit the reset button to read input parameters and restart the simulation. |