Picture a million stars, each pulling on every other. The gravitational force on star i depends on the position of every other star j. Compute that naively and you need calculations â a trillion operations for a million bodies. Even at a billion operations per second, that is a thousand seconds per time step. Simulation of a galaxy becomes impossible.
Now ask yourself: does a star in the Milky Way really need to know the exact position of every star in Andromeda? Or would it be enough to know that Andromeda is roughly over there, with a certain total mass and a shape that can be summarised by a handful of numbers?
That intuition is the heart of the Fast Multipole Method (FMM), introduced by Leslie Greengard and Vladimir Rokhlin in 1987. By grouping distant particles into clusters and representing each cluster with a compact multipole expansion, the FMM reduces all-pairs force computation from to . It was named one of the top ten algorithms of the 20th century by Computing in Science & Engineering in 2000.
The key insight is hierarchical: nearby particles must be handled individually, but for particles that are far enough away, the whole group can be summarised â and the error of that summary can be made arbitrarily small by including more terms.
Comments
Loading comments...