In the past, and intermittently now, I’ve used simulation tools like Easy Java Simulations and NetLogo.
They are great tools for visually modeling various mathematical/comp-sci concepts because ‘all you have to do’ is write the simulation loop – the graphics, etc are handled for you.
However, one thing I have noticed is that improving execution time / modeling speed is extremely difficult using such tools, because the guts of the implementation are hidden under the surface.
There is, generally-speaking, great documentation on how to use the simulator tools, but I haven’t found anything on improving execution time.
For example, say you’re implementing Newton’s Method for root finding. It’s a straight-forward algorithm, but depending on
- the type of graphic attachment you use, or
- various other miscellaneous options chosen
the simulation will run at different speeds.
Is there a way to determine an ‘optimal’ display of the simulation’s data?
I’m thinking of this in the case of using such a tool to teach classes about modeling/scientific programming.
If all else fails, you can use a combination of these two approaches:
Don’t forget about effects such as memory caching and optimisations. If you try to use a particular feature in a certain context it may run differently to your previous experience.