Evaluating Multiplier Constants in Polynomial String Hash Functions
The standard hash computation for character sequences in Java relies on a polynomial rolling hash function. The core implementation multiplies the accumulated hash value by a constant factor before adding the next character code.
public static int computeStringHash(char[] data) {
int result = 0;
for (char c : data) {
result = 31 ...
Posted on Fri, 26 Jun 2026 17:18:50 +0000 by CowbellMaster
Implementing Bloom Filters and Hash Function Applications
Bloom Filter Implementation
Fundamentals of Bloom Filters
Scenario: An unsafe webpage blacklist contains 100 billion URLs, each occupying up to 64 bytes. Design a filtering system to check if a URL exists in the blacklist.
Requirements:
1) Allow false positive rate below 0.01%
2) Additional space must not exceed 30GB (≈30×10^9 bytes)
Analysis ...
Posted on Wed, 24 Jun 2026 17:07:19 +0000 by BrandonK