Damerau - Levenshtein Distance, adding a threshold
I have the following implementation, but I want to add a threshold, so if the result is going to be greater than it, just stop calculating and return. How would I go about that? EDIT: Here is my current code, threshold is not yet used...the goal is that it is used public static int DamerauLevenshteinDistance(string string1, string...