/BarnesHut-N-Body

an O(N log N) N-Body simulation using the Barnes-Hut algorithm

Primary LanguageJava

#Barnes-Hut N-Body Simulation

Reads in a universe of N bodies from stdin, and performs an
N-Body simulation in O(N log N) using the Barnes-Hut algorithm.

Dependencies: BHTree.java Body.java Quad.java StdDraw.java
Input files: ./inputs/*.txt
Compilation: javac NBodyBH.java
Sample Execution: java NBodyBH < inputs/galaxy3.txt

screenshot