TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Minimal Perfect Hash-Tables in Common Lisp

73 点作者 vseloved超过 7 年前

5 条评论

zokier超过 7 年前
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 未加载
taeric超过 7 年前
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.
resource0x超过 7 年前
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>
kruhft超过 7 年前
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 未加载
justinhj超过 7 年前
“(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 未加载