MinHash算法+实现
摘要:
参考:原理ppt: http://wenku.baidu.com/view/089e85c42cc58bd63186bdfc.html求解实现算法:http://fuliang.iteye.com/blog/1025638 最后部分. 感谢原作者. 算法原理+数学证明见原文.简单的实现python代码如下: 1 import os 2 import sys 3 4 5 def hash_func_demo1(x): 6 return x % 5 7 8 def hash_func_demo2(x): 9 return (2 * x + 1) % 510 11 12 ... 阅读全文
posted @ 2012-02-27 22:04
foreveryl
阅读(2146)
评论(0)
推荐(0)