Skip to main content
QUICK REVIEW

[Paper Review] Ptolemaic Indexing

Magnus Lie Hetland|arXiv (Cornell University)|Nov 23, 2009
Data Management and AlgorithmsComputer Science33 references7 citations
TL;DR

This paper introduces Ptolemaic indexing, a novel similarity search method leveraging Ptolemy's inequality to enhance filtering power in metric spaces. By exploiting the inequality's validity in Euclidean and quadratic form metrics—including Mahalanobis distance—and its approximate validity in Lp norms and angular pseudometrics, the approach achieves superior filtering performance over traditional triangular inequality-based methods, with further gains when combined with triangular filtering.

ABSTRACT

This paper discusses a new family of bounds for use in similarity search, related to those used in metric indexing, but based on Ptolemy's inequality, rather than the metric axioms. Ptolemy's inequality holds for the well-known Euclidean distance, but is also shown here to hold for quadratic form metrics in general, with Mahalanobis distance as an important special case. The inequality is examined empirically on both synthetic and real-world data sets and is also found to hold approximately, with a very low degree of error, for important distances such as the angular pseudometric and several Lp norms. Indexing experiments demonstrate a highly increased filtering power compared to existing, triangular methods. It is also shown that combining the Ptolemaic and triangular filtering can lead to better results than using either approach on its own.

Motivation & Objective

  • To develop a new family of bounds for similarity search based on Ptolemy's inequality rather than metric axioms.
  • To investigate the applicability of Ptolemy's inequality to various distance metrics, including Mahalanobis and Lp norms.
  • To evaluate the empirical validity of Ptolemy's inequality in real-world and synthetic datasets.
  • To demonstrate that Ptolemaic filtering enhances indexing performance beyond existing triangular filtering techniques.
  • To explore the synergistic effect of combining Ptolemaic and triangular filtering for improved search efficiency.

Proposed method

  • Leverages Ptolemy's inequality as a foundation for deriving new filtering bounds in similarity search.
  • Applies the inequality to Euclidean and quadratic form metrics, proving its validity in these spaces.
  • Empirically validates the inequality’s approximate validity for angular pseudometrics and Lp norms on diverse datasets.
  • Designs indexing structures that use Ptolemaic bounds to prune non-relevant candidates during search.
  • Combines Ptolemaic filtering with traditional triangular inequality filtering to enhance pruning effectiveness.
  • Employs experimental evaluation on synthetic and real-world data to compare filtering power and search efficiency.

Experimental results

Research questions

  • RQ1Does Ptolemy's inequality hold exactly or approximately for common distance metrics such as Mahalanobis and Lp norms?
  • RQ2Can Ptolemaic bounds be effectively used to improve filtering power in metric indexing?
  • RQ3How does Ptolemaic filtering compare in performance to triangular inequality-based filtering?
  • RQ4What is the impact of combining Ptolemaic and triangular filtering on indexing efficiency?
  • RQ5To what extent is Ptolemy's inequality approximately valid in practical, non-Euclidean settings?

Key findings

  • Ptolemy's inequality holds exactly for Euclidean and quadratic form metrics, including Mahalanobis distance.
  • The inequality is approximately valid for angular pseudometrics and several Lp norms, with a very low degree of error in empirical evaluations.
  • Ptolemaic indexing demonstrates significantly higher filtering power than existing triangular inequality-based methods.
  • Combining Ptolemaic and triangular filtering yields better performance than using either method in isolation.
  • The method is effective across both synthetic and real-world datasets, showing robustness to varying data distributions.
  • The approach provides a strong theoretical and empirical foundation for extending metric indexing beyond the constraints of the triangle inequality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.