WikiStart: packet.txt

File packet.txt, 262 bytes (added by 131509, 9 years ago)
Line 
1Closed bucket
2
3private int hash(K key) {
4 return Math.abs(key.hashCode()) % buckets.length ;
5}
6
7
8Open Bucket
9
10private int hash(K key) {
11 int h = 0;
12 for (int i = 0; i<izbor.lenght() ; i++
13 {
14 h += zbor.ChatAt(i)*Math.pow(31,i) ;
15 }
16 return h ;
17}