Jelajahi Sumber

Improved comments a bit

dstromberg 13 tahun lalu
induk
melakukan
6c6f6c464b
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      bloom_filter_mod.py

+ 4 - 2
bloom_filter_mod.py

@@ -4,8 +4,10 @@
 # Shamelessly borrowed (under MIT license) from http://code.activestate.com/recipes/577686-bloom-filter/
 # About Bloom Filters: http://en.wikipedia.org/wiki/Bloom_filter
 
-# Tweaked a bit by Daniel Richard Stromberg, mostly to make it pass pylint and give it a little nicer
-# __init__ parameters.
+# Tweaked by Daniel Richard Stromberg, mostly to:
+# 1) Give it a little nicer __init__ parameters.
+# 2) Improve the hash functions to get a much lower rate of false positives
+# 3) Make it pass pylint
 
 #mport sys
 import math