As can be seen from the discussion in the comments on this subject, there are many different ways to implement a hash table. Everyone has their own compromises.
, ( ), ( ). , , , , , . . , , .
-, bucketing ( - - , - ), , , open : , , - -. , -, - - 1, 1 2. () , 1, - 1, 2, . , , . , A - 1, B - 2, C - 1. A, C, B :
[ A ] [ C ] [ B ] [ ] [ ]
1 2 3
, C B, , B A C. .
, bucketing, , - , (- ) glacial . , , - , , , .
, !