Efficient N-body Simulation : Fast Algorithms for Potential Field Evaluation and Trummer ’ s Problem ∗

In this paper, we describe an efficient approximation algorithm for the n-body problem. The algorithm is a non-trivial modification of the fast multipole method that works in both two and three dimensions. Due to the equivalence between the two-dimensional n-body problem and Trummer’s problem, our algorithm also gives the fastest known approximation algorithm for Trummer’s problem. Let A be the sum of the absolute values of the particle charges (or masses if the simulation is gravitational) in the n-body problem under consideration. To approximate the particle potentials with absolute error bound , we let p = dlog(A/ )e and give complexity bounds in terms of p. Note that, under reasonable assumptions on the particle charges, if we desire the output to be accurate to b bits, then p = Θ(b). In two dimensions, our algorithm runs in time O(n log p), which is a substantial improvement over the previous best algorithm which requires Θ(np log p) time. We also apply our new algorithm to the three dimensional problem and get a new algorithm that has time complexity O(np), an improvement over the best previouslyknown three-dimensional algorithm which requires Θ(np log p) time. Our algorithms do not make any assumptions about the input distribution, and are true worst-case bounds.

[1]  J. Reif,et al.  N -body Simulation I: Fast Algorithms for Potential Field Evaluation and Trummer's Problem , 1996 .

[2]  L. Greengard The Rapid Evaluation of Potential Fields in Particle Systems , 1988 .

[3]  R. Saleh FastCap : A Multipole Accelerated 3-D Capacitance Extraction Program , 1991 .

[4]  K. Schmidt,et al.  Implementing the fast multipole method in three dimensions , 1991 .

[5]  Jayathi Y. Murthy,et al.  Parallel and vector computation in heat transfer , 1990 .

[6]  J. A. Board,et al.  Parallelization of the fast multipole algorithm using the BO12 transputer network , 1991 .

[7]  Donald Greenspan,et al.  N-Body Problems and Models , 2004 .

[8]  L Greengard,et al.  On the Efficient Implementation of the Fast Multipole Algorithm. , 1988 .

[9]  Ian Parberry,et al.  Problems on Algorithms , 1995, SIGA.

[10]  H. T. Kung Fast evaluation and interpolation , 1973 .

[11]  S. Rao Kosaraju,et al.  A decomposition of multi-dimensional point-sets with applications to k-nearest-neighbors and n-body potential fields (preliminary version) , 1992, STOC '92.

[12]  V. Rokhlin Rapid solution of integral equations of classical potential theory , 1985 .

[13]  A. Chorin Numerical study of slightly viscous flow , 1973, Journal of Fluid Mechanics.

[14]  L. Greengardt POTENTIAL FLOW IN CHANNELS , 1990 .

[15]  Jacob Katzenelson Computational structure of the N-body problem , 1989 .

[16]  V. Rokhlin,et al.  Rapid Evaluation of Potential Fields in Three Dimensions , 1988 .

[17]  A. Gerasoulis A fast algorithm for the multiplication of generalized Hilbert matrices with vectors , 1988 .

[18]  V. Pan On computations with dense structured matrices , 1990 .

[19]  J. Reif,et al.  Parallel Tree Contraction Part 1: Fundamentals , 1989, Adv. Comput. Res..

[20]  Victor Y. Pan,et al.  The power of combining the techniques of algebraic and numerical computing: improved approximate multipoint polynomial evaluation and improved multipole algorithms , 1992, Proceedings., 33rd Annual Symposium on Foundations of Computer Science.

[21]  R W Hockney,et al.  Computer Simulation Using Particles , 1966 .

[22]  C. R. Anderson A method of local corrections for computing the velocity field due to a distribution of vortex blobs , 1986 .

[23]  Allan Borodin,et al.  Fast Modular Transforms , 1974, J. Comput. Syst. Sci..

[24]  Alfred V. Aho,et al.  The Design and Analysis of Computer Algorithms , 1974 .

[25]  M. Karplus,et al.  Molecular dynamics simulations in biology , 1990, Nature.

[26]  J. CARRIERt,et al.  A FAST ADAPTIVE MULTIPOLE ALGORITHM FOR PARTICLE SIMULATIONS * , 2022 .

[27]  Leslie Greengard,et al.  A fast algorithm for particle simulations , 1987 .

[28]  V. Pan,et al.  Polynomial and Matrix Computations , 1994, Progress in Theoretical Computer Science.

[29]  Gary L. Miller,et al.  List ranking and parallel tree contraction , 1993 .

[30]  Arnold Schönhage,et al.  Fast algorithms for multiple evaluations of the riemann zeta function , 1988 .

[31]  Joseph JáJá,et al.  An Introduction to Parallel Algorithms , 1992 .

[32]  Arthur L. Delcher,et al.  Optimal Parallel Evaluation of Tree-Structured Computations by Raking , 1988, AWOC.

[33]  D. Heller A Survey of Parallel Algorithms in Numerical Linear Algebra. , 1978 .