IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v14y2026i9p1403-d1925856.html

On Parallel and Distributed N-Body Simulations

Author

Listed:
  • Alexander Brandt

    (Faculty of Computer Science, Dalhousie University, Halifax, NS B3H 4R2, Canada)

Abstract

The N -body problem is a classic problem involving a system of N discrete bodies mutually interacting in a dynamical system. At any moment in time there are N ( N − 1 ) / 2 such interactions occurring. This N 2 scaling leads to computational difficulties where simulations range from tens of thousands of bodies to billions or trillions. Approximation algorithms, such as the famous Barnes–Hut algorithm, simplify the number of interactions to scale as N log N . Even still, this improvement in complexity is insufficient to achieve the desired performance for very large simulations on computing clusters with many nodes and many cores. In this work we explore a variety of algorithmic techniques for parallel and distributed variations on the Barnes–Hut algorithm to improve parallelism and reduce inter-process communication requirements. This includes the costzones and hashed octree techniques. We implement these techniques in a gravitational N -body simulation and show that they can be applied to both a parallel and distributed context. This work collects and unifies over 30 years of research, while filling in missing details, to provide a comprehensive and reproducible source.

Suggested Citation

  • Alexander Brandt, 2026. "On Parallel and Distributed N-Body Simulations," Mathematics, MDPI, vol. 14(9), pages 1-42, April.
  • Handle: RePEc:gam:jmathe:v:14:y:2026:i:9:p:1403-:d:1925856
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/14/9/1403/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/14/9/1403/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:14:y:2026:i:9:p:1403-:d:1925856. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.