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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

An optimal algorithm for generating minimal perfect hash functions [pdf]

2 点作者 kklisura超过 3 年前

3 条评论

kklisura超过 3 年前
I found out this paper while I was checking out Postgres source code [1]. This is used for generating hash table of postgres keywords, where the hash function is produced on compile time (?) and used in that hash table - if I got everything right.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;postgres&#x2F;postgres&#x2F;blob&#x2F;master&#x2F;src&#x2F;tools&#x2F;PerfectHash.pm#L8" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;postgres&#x2F;postgres&#x2F;blob&#x2F;master&#x2F;src&#x2F;tools&#x2F;P...</a>
icsa超过 3 年前
I discovered this paper in the late 90s. It changed the nature of my work for the next decade or so. An O(n) algorithm for generating MPH functions seemed like a miracle, at the time. Being able to solve &quot;impossible&quot; problems (at the time) gave me access to many opportunities.
dekhn超过 3 年前
minimal perfect hash functions are really underrated