We describe a way to compute the edit distance of two strings without having to fill the whole dynamic programming (DP) matrix, through a sequence of increasing guesses on the edit distance. If the strings share a certain degree of similarity, the edit distance can be quite smaller than the value of non-optimal solutions, and a large fraction (up to 80–90%) of the DP matrix cells do not need to be computed. Including the method’s overhead, this translates into a speedup factor from 3× up to 30× in the time needed to find the optimal solution for strings of length about 20,000.
CITATION STYLE
Lancia, G., & Dalpasso, M. (2019). Speeding-up the dynamic programming procedure for the edit distance of two strings. In Communications in Computer and Information Science (Vol. 1062, pp. 59–66). Springer Verlag. https://doi.org/10.1007/978-3-030-27684-3_9
Mendeley helps you to discover research relevant for your work.