ML Wiki
Machine Learning Wiki - A collection of ML concepts, algorithms, and resources.

Multiple-Key Index

Multiple-Key Index

This is a very simple conventional Multi-Dimensional Index Structure

Idea

The main idea is a nested index:

  • the index on indexes
  • index could be anything: B-Tree or Hash-Based one-dimensional index

Image

  • in this case we have a tree
  • nodes at each level of this tree are also indexes
  • so for this example we have an index on the first attribute that points to an index on 2nd attribute

Example

Image

Types of Queries

  • partial match queries
    • easy if first attribute is specified
    • otherwise must look through every subindex
  • range queries
    • easy - provided individual indexes support range queries

Sources