sqrtmur2
sqrtmur2 is a concept used in theoretical and educational discussions of hashed-space transforms. It combines a MurmurHash2–style hash with the square root operation to map integers into a compact, distributed range. It is not a standard mathematical function and implementations vary in the exact hash used and the output width.
Definition: Given a positive integer n and a hash function h with output in an integer range
Properties: The mapping is deterministic for a fixed h but not monotone with respect to n. It
Computational aspects: Computing sqrtmur2(n) involves first evaluating h(n) and then computing an integer square root of
Applications: It is used in randomized algorithms, simulations, and data structures where a uniform-ish spread of
See also: MurmurHash2, integer square root, hash-based bucketing. References: foundational MurmurHash2 literature and general hashing texts.