1e0ng / simhash

A Python Implementation of Simhash Algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Setting of F Parameters

yhfwww opened this issue · comments

commented

it is said parameter f is the dimensions of fingerprints.
How does the f parameter affect the hash value of the result?
I tried to compute the results of "abc" and "aaa", and found that the length was 64, and the other was 63.

abc

commented

@yhfwww the other is 63 because the leading bit is 0. Hope that helps you understand it.