Related Experiment Video
Updated: Jan 17, 2026

12:11
Computation of Atmospheric Concentrations of Molecular Clusters from ab initio Thermochemistry
Published on: April 8, 2020
8.7K
ShockHash: Near Optimal-Space Minimal Perfect Hashing Beyond Brute-Force
Hans-Peter Lehmann1, Peter Sanders1, Stefan Walzer1
1Karlsruhe Institute of Technology, Karlsruhe, Germany.
Summary
ShockHash significantly improves minimal perfect hash function (MPHF) construction by using a novel cuckoo hashing approach. This method reduces construction time and space requirements, making MPHFs more efficient.
Area of Science:
- Computer Science
- Algorithms
- Data Structures
Background:
- Minimal perfect hash functions (MPHF) map n keys to n integers collision-free.
- Existing MPHF construction methods often rely on brute-force approaches with high computational costs.
- Optimal space for MPHFs is theoretically bounded by approximately 1.44n bits.
Purpose of the Study:
- Introduce ShockHash, a new method for constructing minimal perfect hash functions.
- Improve upon the efficiency (time and space) of existing MPHF construction algorithms.
- Reduce the number of hash function seeds that need to be tested during construction.
Main Methods:
- ShockHash utilizes two hash functions and a 1-bit retrieval data structure to store a mapping function.
- It models the problem as finding a pseudoforest in an n-edge random graph.
- Employs cuckoo hashing to derive the MPHF from the pseudoforest structure.
Main Results:
- ShockHash reduces the expected number of seeds to test to approximately 1.359^n, a significant improvement over brute-force.
- This leads to an approximate n-bit reduction in seed storage space and a speedup of nearly 2^n.
- Bipartite ShockHash further reduces expected construction time to approximately 1.166^n.
- ShockHash-RS, integrated with RecSplit, achieves construction speeds up to 3 orders of magnitude faster.
Conclusions:
- ShockHash offers a more efficient approach to constructing minimal perfect hash functions.
- The method achieves asymptotically optimal space complexity while drastically reducing construction time.
- ShockHash-RS demonstrates practical efficiency, constructing MPHFs for large datasets rapidly.
Related Concept Videos
Optimization Problems
24
Optimization problems often involve identifying maximum or minimum values under specific constraints. A well-known example is determining the longest horizontal pipe that can be moved around a right-angled corner, where a 3-meter-wide hallway meets a 2-meter-wide hallway. This scenario, common in architectural design and industrial transport, can be understood conceptually through geometric and trigonometric reasoning.To visualize the problem, consider the pipe as a straight line that touches...
24
Optimal Foraging
13.6K
How animals obtain and eat their food is called foraging behavior. Foraging can include searching for plants and hunting for prey and depends on the species and environment.
13.6K
Routh-Hurwitz Criterion II
955
In the application of the Routh-Hurwitz criterion, two specific scenarios can arise that complicate stability analysis.
The first scenario occurs when a singular zero appears in the first column of the Routh table. This situation creates a division by zero issues. To resolve this, a small positive or negative number, denoted as epsilon (∈), is substituted for the zero. The stability analysis proceeds by assuming a sign for ∈. If ∈ is positive, any sign change in the first...
The first scenario occurs when a singular zero appears in the first column of the Routh table. This situation creates a division by zero issues. To resolve this, a small positive or negative number, denoted as epsilon (∈), is substituted for the zero. The stability analysis proceeds by assuming a sign for ∈. If ∈ is positive, any sign change in the first...
955
Compacting Factor test
548
The compacting factor test is a method used to assess the workability of concrete. It is especially suitable for concrete mixes containing aggregates up to one and a half inches in size. This test involves specialized equipment consisting of two truncated cone-shaped hoppers and a cylinder, all with polished interior surfaces to minimize friction.
The procedure begins by placing concrete into the upper hopper without any compaction. Once filled, the bottom door of this hopper is opened,...
The procedure begins by placing concrete into the upper hopper without any compaction. Once filled, the bottom door of this hopper is opened,...
548
Heuristics
657
Heuristics are problem-solving strategies that use mental shortcuts to simplify decision-making. Unlike algorithms, which must be followed precisely to achieve a correct result, heuristics offer a general problem-solving framework. They save time and energy but can sometimes lead to less rational decisions.
People often rely on heuristics when faced with an overload of information, limited time, low importance of the decision, limited information, or when a heuristic readily comes to mind. For...
People often rely on heuristics when faced with an overload of information, limited time, low importance of the decision, limited information, or when a heuristic readily comes to mind. For...
657
Routh-Hurwitz Criterion I
548
Consider an electrical power grid, where stability is essential to prevent blackouts. The Routh-Hurwitz criterion is a valuable tool for assessing system stability under varying load conditions or faults. By analyzing the closed-loop transfer function, the Routh-Hurwitz criterion helps determine whether the system remains stable.
To apply the Routh-Hurwitz criterion, a Routh table is constructed. The table's rows are labeled with powers of the complex frequency variable s, starting from the...
To apply the Routh-Hurwitz criterion, a Routh table is constructed. The table's rows are labeled with powers of the complex frequency variable s, starting from the...
548
