Docsity

Indexing Techniques: B-Tree, R-Tree, and R*-Tree - Prof. Amol V. Deshpande, Study notes of Database Management Systems (DBMS)

Partial preview of the text

Download Indexing Techniques: B-Tree, R-Tree, and R*-Tree - Prof. Amol V. Deshpande and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

CMSC 724: Indexes

Amol Deshpande

University of Maryland, College Park

February 20, 2007

*Adapted from Joe Hellerstein’s Notes (http://redbook.cs.berkeley.edu/redbook3/lec4.html)

Access Methods

Heap files and indexes Support iterator interface: open (possibly with selection condition) get_next, close, insert, delete, update_field At a high level: partition: partition a dataset or domain into buckets label: provide a label for each bucket Performance goals: Query, insert, delete times (or disk I/Os) Compare to sequential (seek times improving much slower) Implementation Issues: Concurrency & recovery Cost estimation Bulk loading

R-Tree

R-Tree

Multi-dimensional, spatial data (points, rectangles) Queries: point in polygon, polygon in polygon, overlaps polygon, contains polygon labels: bounding rectangles Bulk loading? Hard... Search: Follow all paths. Insert: Driven by minimizing area enlargement Split algorithms: exhaustive, quadratic, linear Delete: re-insert if too small (why ?)

More...

Space partitioning vs data partitioning R+-Tree: Uses replication (non-overlapping keys) Quadtrees, K-D-B Trees Trees for nearest-neighbor or similarity searches Interval trees (several optimality results exist) GiST: Generalized Search Trees (will cover later)