CSE 163
Indexing and Trees�
Suh Young Choi�
🎶 Listening to:
💬 Before Class: Any finals this week?
Announcements
Project Deliverables due tonight!
No section tomorrow (we’ll be grading projects ☺)
Class is still happening on Friday
Bonus resubmission period open!
2
A Note on Peer Feedback
Final part of the project
Two forms, regardless of whether you worked by yourself or in a group
3
This Time
Previously…
4
Binary Search Tree
Can build up a tree to help us search through sorted items
5
Spatial Join - Points
Imagine we had a dataset of where�people live in the UK.��Want to know if someone lives�at coordinates (x, y)��How many points would we �have to search through?
6
[Point1, Point2, Point3, …]
Spatial Index
7
Spatial Index
This forms a tree!
8
Spatial Index Visualization
How the splits are chosen is not discussed
9
Spatial Index Query
To find if a Point is in the dataset, follow the tree! Suppose we are looking for g (we know its coordinates, but not index)
10
Spatial Index Performance
11
Before Next Time
Next Time
12