仅供自勉和记录所用, copyright is held by Berkeley CS61B
- 刷题记录在Dropbox Paper上
- 2019 July 2 || Range Searching and Multi-Dimensional Data
- 2019 July 3 || Tree and Graph Traversals
- 2019 July 3 || Graph Traversals and Implementations
- 2019 July 4 || Shortest Paths
- 2019 July 5 || Minimum Spanning Trees
- 2019 July 6 || Reductions and Decomposition
- 2019 July 7 || Basic Sorts
- 2019 July 7 || Quick Sort
- 2019 July 8 || Software Engineering I
- 2019 July 8 || More Quick Sort, Sorting Summary
刷题记录在Dropbox Paper上
2019 July 2 || Range Searching and Multi-Dimensional Data
-
Multidimensional data has interesting operations:
- Range Finding: What are all the objects inside this (rectangular) subspace?
- Nearest: What is the closest object to a specific point?
- Can be generalized to k-nearest.
-
The most common approach is spatial partitioning:
- Uniform Partitioning: Analogous to hashing.
- Quadtree: Generalized 2D BST where each node “owns” 4 subspaces.
- K-d Tree: Generalized k-d BST where each node “owns” 2 subspaces.
- Dimension of ownership cycles with each level of depth in tree.
(Spatial partitioning allows for pruning of the search space.)
2019 July 3 || Tree and Graph Traversals
2019 July 3 || Graph Traversals and Implementations
2019 July 4 || Shortest Paths
2019 July 5 || Minimum Spanning Trees
2019 July 6 || Reductions and Decomposition
- Applications
- BUILD‐MAX‐HEAP is O(n).
2019 July 7 || Basic Sorts