Skip to main content
Log in

Distribution-Independent Hierarchical Algorithms for the N-body Problem

  • Published:
The Journal of Supercomputing Aims and scope Submit manuscript

Abstract

The N-body problem is to simulate the motion of N particles under the influence of mutual force fields based on an inverse square law. Greengards algorithm claims to compute the cumulative force on each particle in O(N) time for a fixed precision irrespective of the distribution of the particles. In this paper, we show that Greengards algorithm is distribution dependent and has a lower bound of ­(N log 2 N) in two dimensions and ­(N log 4 N) in three dimensions. We analyze the Greengard and Barnes-Hut algorithms and show that they are unbounded for arbitrary distributions. We also present a truly distribution independent algorithm for the N-body problem that runs in O(N log N) time for any fixed dimension.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. S. Aluru, Distribution-independent hierarchical N-body methods, Ph.D. thesis, Iowa State University, 1994.

  2. S. Aluru, G.M. Prabhu and J. Gustafson, Truly distribution-independent hierarchical algorithms for the N-body problem, Proc. Supercomputing '94 (1994) 420–428.

  3. R.J. Anderson, Tree Data Structures for N-Body Simulations, Proc. Annual Symposium on Foundations of Computer Science, (1996) 224–233.

  4. A. W. Appel, An efficient program for many-body simulation, SIAM J. Sci. Stat. Comput., 6 (1985) 85–103.

    Google Scholar 

  5. J. Barnes, A modified tree code: Don't laugh; It runs, J. Comput. Phys., 87 (1990) 161–170.

    Google Scholar 

  6. J. Barnes and P. Hut, A hierarchical O(N log N) force-calculation algorithm, Nature, 324 (1986) 446–449.

    Google Scholar 

  7. S. Bhatt, M. Chen, C.Y. Len and P. Liu, Abstractions for parallel N-body simulations, Tech. Rep. DCS/TR-895, Yale University, 1992.

  8. P.B. Callahan and S.R. Kosaraju, A decomposition of multidimensional point sets with applications to κ-nearest neighbors and n-body potential fields, J. of the ACM, 42(1) (1995) 67–90.

    Google Scholar 

  9. K. Esselink, The order of Appel's algorithm, Info. Proc. Letters, 41 (1992) 141–147.

    Google Scholar 

  10. L. Greengard, The rapid evaluation of potential fields in particle systems, MIT Press, Cambridge, MA, 1988.

    Google Scholar 

  11. L. Greengard and V. Rokhlin, A fast algorithm for particle simulations, J. Comp. Phys., 73 (1987) 325–348.

    Google Scholar 

  12. L. Hernquist, Vectorization of tree traversals, J. Comp. Phys., 87 (1990) 137–147.

    Google Scholar 

  13. R.W. Hockney and J.W. Eastwood, Computer simulation using particles, McGraw-Hill, New York, 1981.

    Google Scholar 

  14. J. Katzenelson, Computational structure of the N-body problem, SIAM. J. Sci. Stat. Comput., 10 (1989) 787–915.

    Google Scholar 

  15. J. Makino, Vectorization of a treecode, J. Comp. Phys., 87 (1990) 148–160.

    Google Scholar 

  16. E.M. Mc Creight, Priority Search Trees, SIAM J. Comput (1985) 257–268.

  17. R.H. Miller and K.H. Prendergast, Stellar dynamics in a discrete phase space, Astrophys. J., 151 (1968) 699–709.

    Google Scholar 

  18. R.H. Miller, K.H. Prendergast and W.J. Quirk, Numerical experiments on spiral structure, Astrophys. J., 161 (1970) 903–916.

    Google Scholar 

  19. J.K. Salmon, Parallel hierarchical N-body methods, Ph.D. thesis, California Institute of Technology, 1990.

  20. J.P. Singh, Parallel hierarchical N-body methods and their implications for multiprocessors, Ph.D. thesis, Stanford University, 1993.

  21. J.P. Singh, C. Holt, T. Totsuka, A. Gupta and J.L. Hennesy, Load balancing and data locality in hierarchical N-body methods, Journal of Parallel and Distributed Computing, to appear.

  22. M.S. Warren and J.K. Salmon, Astrophysical N-body simulations using hierarchical tree data structures, Proc. Supercomputing '92 (1992) 570–576.

    Google Scholar 

  23. M.S. Warren and J.K. Salmon, A parallel hashed oct-tree N-body algorithm, Proc. Supercomputing '93 (1993) 1–12.

  24. F. Zhao and L. Johnsson, The parallel multipole method on the connection machine, SIAM. J. Sci. Stat. Comput., 12 (1991) 1420–1437.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Aluru, S., Gustafson, J., Prabhu, G. et al. Distribution-Independent Hierarchical Algorithms for the N-body Problem. The Journal of Supercomputing 12, 303–323 (1998). https://doi.org/10.1023/A:1008047806690

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/A:1008047806690

Navigation