Metric measure
The fact that a measure is a metric allows optimizations in many applications. For example, many efficient algorithms for searching shortest paths in graphs, such as Dijkstra’s algorithm, make use of the fact that the underlying measure is a metric.
is called metric if the following holds:
- non-negativity
- symmetry
- identity
- triangle inequality
Metric measure sometimes called (mathematical) distance. But not every string measure which is historically called “distance” is a metric, so it’s better to use word metric to avoid confusion.
Minkowski distance
Minkowski distance is an example of metric measure (not typically used as string measure though, given here as an example)
where . For , the Minkowski distance is a metric.
- Manhattan distance
- Euclidean distance
- Chebyshev distance