链式哈希表(Hash Table)--算法导论示例


In computer science, a hash table is an associative array data structure that associates keys with values. The primary operation it supports efficiently is a lookup, where it is given a key, an identifier for the information to be found such as a person's name, and asked to find the corresponding value. It works by transforming the key using a hash function into a hash, a number that the hash table uses to locate the desired value.
散列表(也叫哈希表),是根据关键码值直接进行访问的数据结构,也就是说,它通过把 关键码值映射 ... 称这个对应关系f为哈希(Hash)函数,按这个思想建立的表为哈希表。
以下是链式哈希表的实现程序,参考算法导论第226页


[url=http://blog.csdn.net/hedongfu/archive/2006/09/08/1195287.aspx][/url]



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/76292/showart_1991213.html

posted @ 2011-02-21 20:06  SunnyDay2015  阅读(2165)  评论(0编辑  收藏  举报