, 1 997 . , - (.. 1000 ).
, ....
, ? , ? ?
( = ) - , , (.. 1000), . " ", , , N, , # N : , 997 , , . N/997, , , O (N).
: - O (1000). 1000 - .
- , Big-O .
: (0) , a > 1 . (1) -, - - . O (1) (2), . O (lg n).
. .
- . , 1 , , . , (% ), , , . Rehashing - , , CPU, .
Hash table tables in hash tables are completely pointless and startlingly wasteful. It is much better to use part of this space to reduce collisions in an external hash table.
source
share