• Title of article

    A Performance Comparison of Tree Data Structures for N-Body Simulation

  • Author/Authors

    Waltz، نويسنده , , J. and Page، نويسنده , , G.L. and Milder، نويسنده , , S.D. and Wallin، نويسنده , , J. and Antunes، نويسنده , , A.، نويسنده ,

  • Issue Information
    روزنامه با شماره پیاپی سال 2002
  • Pages
    14
  • From page
    1
  • To page
    14
  • Abstract
    We present a performance comparison of tree data structures for N-body simulation. The tree data structures examined are the balanced binary tree and the Barnes–Hut (BH) tree. Previous work has compared the performance of BH trees with that of nearest-neighbor trees and the fast multipole method, but the relative merits of BH and binary trees have not been compared systematically. In carrying out this work, a very general computational tool which permits controlled comparison of different tree algorithms was developed. The test problems of interest involve both long-range physics (e.g., gravity) and short-range physics (e.g., smoothed particle hydrodynamics). Our findings show that the Barnes–Hut tree outperforms the binary tree in both cases. However, we present a modified binary tree which is competitive with the Barnes–Hut tree for long-range physics and superior for short-range physics. Thus, if the local search time is a significant portion of the computational effort, a binary tree could offer performance advantages. This result is of particular interest since short-range searches are common in many areas of computational physics, as well as areas outside the scope of N-body simulation such as computational geometry. The possible reasons for this are outlined and suggestions for future algorithm evaluations are given.
  • Journal title
    Journal of Computational Physics
  • Serial Year
    2002
  • Journal title
    Journal of Computational Physics
  • Record number

    1476949