Hash, Bitmap, Bloom filter, and B-tree indexes




CS257

Chris Pollett

Oct 21, 2020

Outline

Introduction

Hash Indexes

Bitmap Indexes

Bloom Filters

In-Class Exercise

B-trees

The Structure of B-trees

B-Tree Leaf Node
An B-tree Leaf Node.
B-Tree Internal Node
An internal B-tree Node.

Domain of Application of B-trees

Lookup in B-Trees

For simplicity we will assume no duplicate keys. To search for a record with key K:

Example

B-Tree example

Range Queries

Insertion into B-Trees

B-Tree Insertion Example 1 B-Tree Insertion Example 2

Deletion from B-Trees

B-Tree for In-Class Exercise B-Tree Deletion Example 1 B-Tree Deletion Example 2 B-Tree Deletion Example 3

Efficiency of B-Trees

Some Optimizations