Indexing for Multidimensional Data

Download Report

Transcript Indexing for Multidimensional Data

Indexing for Multidimensional
Data
An Introduction
Applications of
Multidimensional Databases






Normal databases with multiple key
Spatial databases
Geographic information system (GIS)
Computer-aided design (CAD)
Multimedia databases
Medical applications
Jaruloj Chongstitvatana
Advanced Data Structures
2
Characteristics of
Good Index Structures (1)

Dynamic

Handle necessary queries
• Insert, delete, and update data in any order
• Point or exact queries
• Range quesries
• Spatial queries
• Boolean queries
Jaruloj Chongstitvatana
Advanced Data Structures
3
Characteristics of
Good Index Structures (2)

Good performance (disk accesses,
running time, etc.) for
• Query, insert, delete

Good storage (memory or disk)
utilization
• Low percentage of waste space


Scalability
Simple
Jaruloj Chongstitvatana
Advanced Data Structures
4
Why hierarchical structures



Allow the search to be focused on
interesting subset of data
Eliminate useless search
Clean and simple implementation
Jaruloj Chongstitvatana
Advanced Data Structures
5
Hierarchical index structures for
single attribute
B tree
B+ tree

Binary tree


Unbalanced
Organize data
Memory-based index




•


Measuring the running
time
Practical mem. size
Jaruloj Chongstitvatana

N-ary tree
Height-balanced
Organize data space
Disk-based index
•
Measuring the number
of disk accesses
Disk page size
Advanced Data Structures
6
B tree
10
4
20
7
6
Jaruloj Chongstitvatana
9
Advanced Data Structures
7
B+ tree
16 31
6 11 14
Jaruloj Chongstitvatana
19 22
Advanced Data Structures
48
8
Handling multiple attributes (1)

Separate index structure for each attributes
• Update all index structures for each record
•
update.
Data are scattered in many disk pages.
a1
a2
a3
a4
disk
Jaruloj Chongstitvatana
Advanced Data Structures
9
Handling multiple attributes (2)

Bit interleaving

Attribute interleaving
Jaruloj Chongstitvatana
Advanced Data Structures
10
Multiple-attribute indexing





Quad-tree
k-d tree
k-d-B tree
Grid file
hB-tree
Jaruloj Chongstitvatana
Advanced Data Structures
11
Spatial Indexing



R-tree
R*-tree
SKD-tree
Jaruloj Chongstitvatana
Advanced Data Structures
12
High-dimensional indexing


SS-tree
TV-tree
Jaruloj Chongstitvatana
Advanced Data Structures
13