Re:Earth and Sun
by perl4ever on Friday October 18, 2019 @05:44PM
(#21295335)
I played with a simple program like that for the Amiga when I was younger, and then I discovered that there was an O(n log n) algorithm[1] rather than the obvious O(n^2) one. Never was up to writing a program to use it.
https://en.wikipedia.org/wiki/Barnes%E2%80%93Hut_simulation