-1
Could someone show me (and explain) a hash (scatter) function without being the? (key % size)? I would like it to be a simple one (and one that exists). In this case I have a table of 11 positions that should be based on the number of the Cpf your Dice, but without using Cpf % table size_table.
What is your exact doubt? May I suggest
Integer.hashCode()
, which is basicallyreturn this;
as an easy hash example?– Jefferson Quesado
I have a table of 11 positions, I will receive a Cpf with 11 digits and using a scatter function I must place it in the table. But without using the Cpf function % size_table.
– Carlos Alexandre