Method and device for adding, searching for and deleting key in hash table
Patent Information
- Authority / Receiving Office
- CN Β· China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Publication Date
- 2015-01-07
- Estimated Expiration
- Not applicable Β· inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of communication technology, in particular to a method and device for adding, searching or deleting key values ββin a hash table. Background technique
[0002] Due to its high lookup performance, hash tables are widely used in the field of communication technology. A hash table generally consists of one or more hash sub-tables. An address space in a hash sub-table is called a bucket. Each bucket is composed of multiple slices (slots). Each slice can store A key value (key). Each hash subtable corresponds to a hash function (hash function), the key value is input to the hash function, and the output result is the address of the bucket that stores the key value in the corresponding hash subtable. The utilization of a hash table is defined as the number of keys to be stored divided by the number of shards in all hash subtables. If the number of key values ββto be stored is 8M (8388608), the hash table includes two has...