📄 doublehashng.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>double hashing</TITLE>
<META name="description"
content="Definition of double hashing,
possibly with links to more information and implementations.">
<META name="keywords" content="double hashing">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>double hashing</H1>
<P>
(algorithm)
<P>
<strong>Definition:</strong>
An <a href="array.html" tppabs="http://hissa.nist.gov/dads/HTML/array.html"><em>array</em></a> which is indexed by a <a href="hash.html" tppabs="http://hissa.nist.gov/dads/HTML/hash.html"><em>hash</em></a> function. Upon insertion if an item's hash value is already occupied (a <a href="collision.html" tppabs="http://hissa.nist.gov/dads/HTML/collision.html"><em>collision</em></a>), the array is searched for an empty place at intervals given by a different hash function, thus minimizing <a href="clustering.html" tppabs="http://hissa.nist.gov/dads/HTML/clustering.html"><em>clustering</em></a>.
<P><strong>See also</strong>
<a href="linearprobng.html" tppabs="http://hissa.nist.gov/dads/HTML/linearprobng.html"><em>linear probing</em></a>, <a href="hashtab.html" tppabs="http://hissa.nist.gov/dads/HTML/hashtab.html"><em>hash table</em></a>.
<P><em>Note:
Since a different hashing function is used to find a location in case of collision, colliding values should be spread out. In <a href="linearprobng.html" tppabs="http://hissa.nist.gov/dads/HTML/linearprobng.html"><em>linear probing</em></a>, <a href="primaryclstr.html" tppabs="http://hissa.nist.gov/dads/HTML/primaryclstr.html"><em>primary clustering</em></a> occurs when collisions fill up every space for long stretches. Even in <a href="quadraticprb.html" tppabs="http://hissa.nist.gov/dads/HTML/quadraticprb.html"><em>quadratic probing</em></a>, <a href="secondaryclu.html" tppabs="http://hissa.nist.gov/dads/HTML/secondaryclu.html"><em>secondary clustering</em></a> may develop since colliding values follow the same probe sequence.</em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</a>
<H2>Implementation</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/335.ins.c.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/335.ins.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/335.ins.c.html">insert (C and Pascal)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/335.srch.c.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/335.srch.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/335.srch.c.html">search (C and Pascal)</A>
<hr>
Go to the
<A HREF="terms.html" tppabs="http://hissa.nist.gov/dads/terms.html">Algorithms, Data Structures, and Problems</A>
home page.
<hr>
If you have suggestions, corrections, or comments, please get in touch
with
<a href="javascript:if(confirm('http://hissa.nist.gov/~black/black.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://hissa.nist.gov/~black/black.html'" tppabs="http://hissa.nist.gov/~black/black.html">Paul E. Black</a>
(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).
<p>
Entry modified Fri Jan 14 15:37:42 2000.<BR>
HTML page formatted Thu Jan 20 16:36:27 2000.
<P>
This page's URL is
<A href="doublehashng.html" tppabs="http://hissa.nist.gov/dads/HTML/doublehashng.html">http://hissa.nist.gov/dads/HTML/doublehashng.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -