Save this video free

UUtah Fall 2026 | Data Mining | L5 NN Search

UofU Data Science · 1:19:15 · Watch on YouTube

Part of University of Utah CS 5140/6140 Data Mining. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Nearest-neighbor search turns a distance function into a scalable retrieval system by preprocessing data and answering queries without scanning every point. The lecture progresses from exact one-dimensional trees and two-dimensional Voronoi diagrams to approximate KD-trees, locality-sensitive hashing, and Hierarchical Navigable Small World (HNSW) graphs, explaining why HNSW-style vector search works well in high-dimensional practice despite the curse of dimensionality.

Key takeaways

Chapters

0:00 Implementation Efficiency and the Nearest-Neighbor Search Roadmap
3:20 Rich Sutton’s Bitter Lesson: Search Scales with Compute
5:40 Formalizing Exact and K-Nearest-Neighbor Queries
11:00 Preprocessing and Practical Uses of Nearest Neighbors
17:30 Sorted Binary Trees Deliver Logarithmic Search in One Dimension
25:00 Skip Lists Use Random Promotions to Narrow Search
29:40 Voronoi Diagrams Precompute Exact Neighbors in Two Dimensions
37:00 Voronoi Complexity Exposes the Curse of Dimensionality
39:10 KD-Trees Prune Regions for Approximate Nearest Neighbors
48:30 High-Dimensional Balls and Boxes Explain Search Difficulty
57:10 Locality-Sensitive Hashing Makes High-Dimensional Search Sublinear
1:03:20 HNSW Replaces Theory-First Expectations with Practical Performance
1:05:00 Build a K-Nearest-Neighbor Graph as HNSW’s Base Layer
1:09:00 Beam Search Maintains Multiple Candidate Paths
1:12:00 Layered HNSW Graphs Power Modern Vector Databases

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:16 So let's get started everyone. So thanks for coming back. Um so um so today we're gonna talk about uh nearest neighbor search. Um so this will be building on like the modeling sort of lecture we had. Um um so last week on Thursday where we talked about the different notions of distance. This is going to be more of like a scalability lecture. Now that we have a notion of distance what can we do with it? Um um so how can we do things efficiently? Um before I get into it, let's um uh so I just want to remind everyone in case you weren't uh I'm so paying attention up until now.

1:03 The first homework assignment is due today at the end of the day. It's be turned into grade scope. Um everyone's been able to figure out grade scope. That's not We had initial trouble syncing stuff, but uh Okay. Um uh so how many people think they've mostly finished the assignment or it's turned in? People still working on it a little bit. All right. Okay, great. So it I there weren't wasn't a lot of activity. Um so in the office hours so uh so if you um but in the future if you get kind of stuck on things uh you know the office hours with TAS are a great resource to help there is still one office hour so

1:54 left there's my time after the lecture if you have questions um and so then Arman will have his office hours uh in the Mel engineering building. So if you after class you grab a quick lunch and and walk back over there. Uh um um so you still have time to consult with them. Uh so great. So okay, good. Um so um uh

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, UofU Data Science.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.