Metric tree

{{About|the data structure|the type of metric space|Real tree}}

A metric tree is any tree data structure specialized to index data in metric spaces. Metric trees exploit properties of metric spaces such as the triangle inequality to make accesses to the data more efficient. Examples include the M-tree, vp-trees, cover trees, MVP trees, and BK-trees.{{cite book|last=Samet|first=Hanan|title=Foundations of multidimensional and metric data structures|year=2006|publisher=Morgan Kaufmann|isbn=978-0-12-369446-1|url=https://books.google.com/books?id=vO-NRRKHG84C | author-link=Hanan Samet}}

Metric data structures

If there is no structure to the similarity measure then a brute force search requiring the comparison of the query image to every image in the dataset is the best that can be done {{Citation needed|date=May 2015}}. If, however, the similarity function satisfies the triangle inequality then it is possible to use the result of each comparison to prune the set of candidates to be examined.

The first article on metric trees, as well as the first use of the term "metric tree", published in the open literature was by Jeffrey Uhlmann in 1991.{{cite journal |last=Uhlmann |first=Jeffrey |title=Satisfying General Proximity/Similarity Queries with Metric Trees |journal=Information Processing Letters |volume=40 |number=4 |year=1991|pages=175–179 |doi=10.1016/0020-0190(91)90074-r }} Other researchers were working independently on similar data structures. In particular, Peter Yianilos claimed to have independently discovered the same method, which he called a vantage point tree (VP-tree).{{cite conference

|first=Peter N.

|last=Yianilos

|title=Data structures and algorithms for nearest neighbor search in general metric spaces

|book-title=Proceedings of the fourth annual ACM-SIAM Symposium on Discrete algorithms

|pages=311–321

|publisher=Society for Industrial and Applied Mathematics Philadelphia, PA, USA

|year=1993

|url=http://pnylab.com/papers/vptree/main.html

|access-date=2019-03-07

|id=pny93

}}

The research on metric tree data structures blossomed in the late 1990s and included an examination by Google co-founder Sergey Brin of their use for very large databases.{{cite conference |last=Brin |first=Sergey |title=Near Neighbor Search in Large Metric Spaces |book-title=21st International Conference on Very Large Data Bases (VLDB) |year=1995 |url=http://www.vldb.org/conf/1995/P574.PDF}} The first textbook on metric data structures was published in 2006.

Open source implementations

References

{{Reflist}}

{{CS-Trees}}

Category:Trees (data structures)