The comments in tools/perf/util/levenshtein.c lead readers to believe the algorithm implemented is the Damerau-Levenshtein distance, but in reality it is just the plain Levenshtein distance. https://en.wikipedia.org/wiki/Levenshtein_distance https://en.wikipedia.org/wiki/Damerau–Levenshtein_distance