Barnes-Hut 算法:一种用于加速 N 体问题(如引力或库仑力相互作用)计算的近似算法。它通过把远处的一组粒子用“整体”(质量中心/多极近似)来近似,并用 树结构(2D 常用四叉树 quadtree,3D 常用八叉树 octree)组织空间,将计算复杂度通常从 \(O(N^2)\) 降到约 \(O(N\log N)\)。常见于天体物理模拟、粒子系统与大规模物理仿真。(该术语也可泛指“Barnes-Hut 树算法/树码 treecode”。)
/ˈbɑːrnz hʌt ˈælɡəˌrɪðəm/
We used the Barnes-Hut algorithm to speed up the gravity simulation.
我们使用 Barnes-Hut 算法来加速引力模拟。
By tuning the opening angle parameter, the Barnes-Hut algorithm balances accuracy and performance in large N-body systems.
通过调整开角参数,Barnes-Hut 算法能在大型 N 体系统中平衡精度与性能。
“Barnes-Hut”来自提出该方法的两位研究者 Josh Barnes 与 Piet Hut 的姓氏;该算法最早以树结构近似远距离相互作用而闻名,属于计算物理与计算天体物理中经典的 treecode(树码) 方法之一。