I have a problem with performing mini-chaning. On paper and from reading, I understand the concept, but my problem is the trick substitution. Instead of rearranging the matrix of sets and values, the sentence to implement: "select k (for example, 100) independent hash functions", and then the algorithm says:
for each row r for each column c if c has 1 in row r for each hash function h_i do if h_i(r) is a smaller value than M (i, c) then M(i, c) := h_i(r)
In various small examples and teaching a book, they use only two or three hash functions in the form (h = a * x + b mod p). It is easy to find, but as in practice, how can I find 100 such independent functions.
In the Java example , hash values are generated from only one hash function instead of several hash functions, regardless of the row index. Where is the difference? My question is how to find these independent hash functions, or if there is an approach with a single hash function, how to handle these values โโin the algorithm?
source share