Example:
Gravitational N-Body Problem
Goal: Model a large number
of “self-gravitating” particles
To simulate evolution of a
galaxy, for instance
Straightforward solution
Compute all n(n-1)/2
pairwise forces
For each particle, we sum
the forces and compute its
motion for one time-step
Recompute pairwise forces
and repeat
Straightforward solution is
too slow for large n
Idea: Use hierarchical
grouping to speed up the
calculation
Calculations for nearby
particles are exact
Distant particles are
grouped and act as if their
total mass is concentrated
at their center-of-mass
CS409 - Spring 2000
15