countminsketch icon indicating copy to clipboard operation
countminsketch copied to clipboard

Minor changes for Python 3

Open convexset opened this issue 6 years ago • 1 comments

It would be good to make a few changes for Python 3.

range instead of xrange and print as a function.

In lines 49 to 56:

        for _ in range(d):
            table = array.array("l", (0 for _ in range(m)))
            self.tables.append(table)
            self.salt.append(hash(str(id(table))))

    def _hash(self, x):
        for s in self.salt:
            print (hash((x, s)))

convexset avatar Apr 28 '18 17:04 convexset

https://github.com/SerialDev/Count-min-sketch-3 Created a new repo due to inactivity. this should work btw

SerialDev avatar Jan 17 '19 20:01 SerialDev