1
edit
Changes
→Example Profiles of Brute Force Algorithm
All of these profiles were ran for about 4 to 5 minutes each. It seems that when the body count is low (1000) the program spends most of its time in the '''addforces()''' function, which is a user defined function within one of the source files. However, when the body count gets higher, it seems that the program slows down so much from having to draw all of the bodies, it spends most of its time in the Java defined'''fillOval()''' function, rather than the '''addforces()''' function. I'm not entirely sure if we would be able to parrallelize that function, since it is in a library. It may be possible to simply define a function that does the same thing and put it in the program.
=====Example Profiles of Barnes Hut Algorithm=====