M-tree explained

In computer science, M-trees are tree data structures that are similar to R-trees and B-trees. It is constructed using a metric and relies on the triangle inequality for efficient range and k-nearest neighbor (k-NN) queries.While M-trees can perform well in many conditions, the tree can also have large overlap and there is no clear strategy on how to best avoid overlap. In addition, it can only be used for distance functions that satisfy the triangle inequality, while many advanced dissimilarity functions used in information retrieval do not satisfy this.[1]

Overview

As in any tree-based data structure, the M-tree is composed of nodes and leaves. In each node there is a data object that identifies it uniquely and a pointer to a sub-tree where its children reside. Every leaf has several data objects. For each node there is a radius

r

that defines a Ball in the desired metric space. Thus, every node

n

and leaf

l

residing in a particular node

N

is at most distance

r

from

N

, and every node

n

and leaf

l

with node parent

N

keep the distance from it.

M-tree construction

Components

An M-tree has these components and sub-components:

  1. Non-leaf nodes
    1. A set of routing objects NRO.
    2. Pointer to Node's parent object Op.
  2. Leaf nodes
    1. A set of objects NO.
    2. Pointer to Node's parent object Op.
  3. Routing Object
    1. (Feature value of) routing object Or.
    2. Covering radius r(Or).
    3. Pointer to covering tree T(Or).
    4. Distance of Or from its parent object d(Or,P(Or))
  4. Object
    1. (Feature value of the) object Oj.
    2. Object identifier oid(Oj).
    3. Distance of Oj from its parent object d(Oj,P(Oj))

Insert

The main idea is first to find a leaf node where the new object belongs. If is not full then just attach it to . If is full then invoke a method to split . The algorithm is as follows:

Input: Node of M-Tree, Output: A new instance of containing all entries in original

's routing objects or objects if is not a leaf then

Notes and References

  1. Paolo . Ciaccia . Patella, Marco . Zezula, Pavel . M-tree An Efficient Access Method for Similarity Search in Metric Spaces . Proceedings of the 23rd VLDB Conference Athens, Greece, 1997 . 426–435 . Very Large Databases Endowment Inc. . 1997 . IBM Almaden Research Center . 2010-09-07 . p426.