~/talk

Swift in Space – The N-Body Problem

Talkat UIKonf 2018 · 2018-05-13..05-16· [machine-learning]
slides:none on file

Shows a concrete Swift implementation that replaces the O(N^2) pairwise loop with a Barnes‑Hut tree quadtree, collapsing many distant bodies into virtual masses so force calculation runs in n log n time instead of quadratic. Presents code on GitHub, a simple Body object with accelerate/update methods, and a working simulator that visualizes hundreds of bodies with SpriteKit. Reports brute force is faster for tiny N but dies as N grows, while Barnes‑Hut scales and produces believable orbital dynamics and reentry maneuvers.

AI-written summary · about

  1. 0:00Introduction to celestial mechanics
  2. 1:47Heliocentric model origins
  3. 5:31Newton’s gravitational law
  4. 8:00N-body problem complexity
  5. 10:49Barnes-Hut algorithm
  6. 15:01Code implementation overview
  7. 18:53Orbital navigation basics
  8. 22:31Q&A on orbital dynamics
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.