The edit distance, also referred to as the Levenshtein distance, may be determined by the minimum number of operations needed to transform one of the queries into the other, where an operation is an insertion, deletion, or substitution of a single character.