barnes 0.1.0

A multithreaded Barnes Hut Algorithm implementation.
Documentation

Barnes-Hut tree in Rust

Based on The Barnes-Hut Algorithm by Tom Ventimiglia & Kevin Wayne. "A quad-tree is similar to a binary tree, except that each node has 4 children"

Made to learn Rust

My friend Tristan Brismontier was building a (more advance) Barnes-Hut in C# using Unity. It looks like a nice project for learning Rust. Also, an interesting candidate for building an Anomaly Detection Service

How to use

let mut square = Square::new(0, 0, 80);
square.compute(some_points);

println!("{:#?}", square);

Compile and Run

From the command line:

cargo run

This demo use 8 points: barnes-hut quadrant

It should produce this quadtree: barnes-hut tree

Performance

in x: number of point to place in the tree in y: time used in second

perf1 perf2

Contact

Developed by Martin Magakian dev.martin.magakian@gmail.com by Anomaly Detection

License

MIT License (MIT)