~/talk

Little Red Riding Hood & the k-d tree forest

Talkat NDC TechTown 2021 · 2021-08-30..09-02· [c-and-cpp]
links:none on file
slides:none on file

Builds a working k-d tree in C++ and shows which design changes actually matter: starts with pointer-based recursive nodes and a naive O(n^2) pairwise radius check, then implements a radius (range) search with axis check to prune branches, moves from unique_ptr nodes to array-backed storage, and finally uses offsets instead of pointers stored in three vectors (points, left, right) so the structure is cheap to copy, relocatable and serializable. Copies and destruction become far faster (about 10x faster destruction after node consolidation) and queries run logarithmically on balanced data.

AI-written summary · about

  1. 0:00Start
  2. 2:40Disclaimers
  3. 10:46Inventing the Kd Tree
  4. 21:55Effective Abstractions
  5. 32:46Rule of Three
  6. 38:31The Essential Properties of a Pointers
  7. 48:27Implicit Edge Representation
~/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.