Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 452 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 452 Bytes

#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