arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 0909.2547cs.DS
收藏

开地址哈希表删除的简单实现

Simple implementation of deletion from open-address hash table

Maxim Kolosovskiy

摘要:

从开地址哈希表中删除不像从链式哈希表中删除那么容易,因为在开地址表中我们不能简单地将包含已删除键的槽标记为空。搜索键可能不正确。实现删除的经典方法是在哈希表中用“空闲”、“忙碌”、“已删除”三个值来标记槽。这种方法很容易实现,但也有一些缺点。在这篇文章中,我们考虑删除键的替代方法,其中我们避免使用标记“删除”。这篇文章包含了Java中方法的实现。

英文摘要:

Deletion from open-address hash table is not so easy as deletion from chained hash table, because in open-address table we can't simply mark a slot containing deleted key as empty. Search for keys may become incorrect. The classical method to implement deletion is to mark slots in hash table by three values: "free", "busy", "deleted". That method is easy to implement, but there are some disadvantages. In this article we consider alternative method of deletion keys, where we avoid using the mark "deleted". The article contains the implementation of the method in Java.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑