Similarity measures are key in many machine learning algorithms, such as clustering or nearest neighbor search, to quantify the similarity between instances.