Home
Showcase(9)
Blog(16)
Lab
YouTube

Blog

16

Latest Blog

barnes hut cover image

Simulating 100,000 Stars in Real-Time with the Barnes-Hut Algorithm

0 views

When I started CS380P at UT Austin, I expected a tough parallel computing assignment from my Parallel Computing course. What I did not expect was to get genuinely obsessed with a physics simulation.

The problem was deceptively simple: implement a parallel N-body gravitational simulator using the Barnes–Hut algorithm with MPI. I built a correct sequential Barnes–Hut tree code first, then parallelized it with MPI, then kept going until I had an interactive web demo that lets you see the quadtree evolve in real time.

This post is a guided walkthrough of what I built, how Barnes–Hut turns an impossible looking problem into something tractable, what MPI does to a tree-based algorithm, and what the accuracy versus speed knob (θ) really means when you can watch it.


Research

Development

January 9, 2026

More Blogs

Categories

    DevelopmentResearchAIBCI
Loading...
Montek KundanMontek Kundan
  • Home
  • Showcase(9)
  • Blog(16)
XInstagramGitHubLinkedInYouTube

Build using basehub.com

Inspired by basement.studio

Montek 2026

XInstagramGitHubLinkedInYouTube

Montek 2026

Inspired by basement.studio

thoughtdriven-shooting-with-a-singlechannel-eeg/thoughtdriven-shooting-with-a-singlechannel-eeg_cover

Thought‑Driven Shooting with a Single‑Channel EEG

0 views

BCI

Research

November 16, 2025

Building Google Translate from Scratch cover image

Building Google Translate from Scratch (kinda)

0 views

Research

Development

AI

June 29, 2025

Cover Image Transformer teaching

Explaining Transformer to a friend

0 views

Research

June 27, 2025