Modifying Levenshtein Distance algorithm to not calculate all distances

后端 未结 6 1758
渐次进展
渐次进展 2020-12-31 19:40

I\'m working on a fuzzy search implementation and as part of the implementation, we\'re using Apache\'s StringUtils.getLevenshteinDistance. At the moment, we\'re going for a

6条回答
  •  迷失自我
    2020-12-31 19:57

    I've written about Levenshtein automata, which are one way to do this sort of check in O(n) time before, here. The source code samples are in Python, but the explanations should be helpful, and the referenced papers provide more details.

提交回复
热议问题