string - 如何找到彼此接近的两个字符串

标签 string algorithm closest-points

我有 n 个字符串,我想找到最接近的一对。

What's the fastest practical algorithm to find this pair?

最佳答案

论文“The Closest Pair Problem under the Hamming Metric”,Min,Kao,Zhu 似乎是你要找的东西,它适用于寻找一个最接近的对。

对于您的情况,其中 n0.294 < D < n,其中 D 是数据的维度 (1000),n 是数据集的大小,算法将在 O(n< sup>1.843 D0.533).

关于string - 如何找到彼此接近的两个字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46137772/

相关文章:

javascript - 在 JQuery 中执行 JavaScript .replace

.net - {0}、{1} 等是如何成为格式化字符串的标准的?

swift - 无法将值类型 "string?"转换为预期的参数类型 "inout string"

使用词频生成 'top list' 的算法

algorithm - 一条直线上最近的一对点

ios - 两个 UIViewImages 的交集

c++ - 解释一个字符串,因为它引用程序中的变量。 Geant4台

algorithm - 如何证明嵌套 forloop 的操作次数的下限

c++ - 如何从传递给某些 STL 算法的谓词中获取元素索引?

algorithm - 在最近点对分治算法中, "strip"按点的y值排序有什么意义?