Skip to content

Instantly share code, notes, and snippets.

@Hydra9268
Last active November 18, 2024 07:33
Show Gist options
  • Save Hydra9268/e2958f147d62e91651f04551207e33c8 to your computer and use it in GitHub Desktop.
Save Hydra9268/e2958f147d62e91651f04551207e33c8 to your computer and use it in GitHub Desktop.
Aspect Hash Block Perfect Hash Table
Memory Usage (Slots) ~39,520 bytes (worst case) 140,608 bytes (fixed)
Memory Efficiency Scales with usage (lazy init) Preallocates all slots upfront
Lookup Time O(1) (array-based indexing) O(1)
Scalability Adapts to actual usage Fixed size for predefined keys
Collisions Handles with linked lists None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment