We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1471d2f commit 99ede05Copy full SHA for 99ede05
src/hash.c
@@ -12,8 +12,7 @@ struct hash_tab {
12
struct hash_pair *table; // Single table for double hashing
13
};
14
15
-// TAOCP vol. 3, section 6.4: for multiplication hashing, use A ~ 1/phi, the golden ratio.
16
-//
+// 1/phi and sqrt(0.1)
17
static const double hash_multiplier1 = 0.618033988749895;
18
static const double hash_multiplier2 = 0.316227766016838;
19
static const double default_load_factor = .5;
0 commit comments