TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Minimal Perfect Hash-Tables in Common Lisp

73 pointsby vselovedover 7 years ago

5 comments

zokierover 7 years ago
The algorithm used (EPH) seems bit curious. The paper says &quot;The EPH algorithm was implemented in the C language and is available at <a href="http:&#x2F;&#x2F;cmph.sf.net&quot;" rel="nofollow">http:&#x2F;&#x2F;cmph.sf.net&quot;</a>, but that page has no mention of EPH and I even checked archive.org. I wonder why they ended up never actually releasing a version of cmph with that algorithm. Two years later they seem to have come up with another algorithm, CHD, which was actually released in cmph. Interestingly enough the CHD paper has no comparisons to EPH either.
评论 #16297292 未加载
taericover 7 years ago
I love the reference to static structures. Indeed, I have a pet theory that most love of immutable lists is actually a love of static ones. Though, I typically expand that to measure statically visible in the code.
resource0xover 7 years ago
perfect map in dart: <a href="https:&#x2F;&#x2F;github.com&#x2F;tatumizer&#x2F;pigeon_map#how-it-works" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tatumizer&#x2F;pigeon_map#how-it-works</a>
kruhftover 7 years ago
Relevant, alternate implementation for C and C++:<p><a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;gperf&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;gperf&#x2F;</a>
评论 #16297299 未加载
评论 #16293943 未加载
justinhjover 7 years ago
“(although, for many methods, it can still be bounded by amortized O(1) time)”<p>I don’t follow this. Does it mean that you can build the perfect hash table in constant time? Surely you can’t beat linear.
评论 #16292712 未加载
评论 #16293925 未加载