Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Hash table entry addition, deletion, search method and hash table storage device

A table entry and sub-table technology, applied in the field of communication, can solve the problems of space utilization reduction, occupation, unfavorable hardware implementation, etc.

Active Publication Date: 2016-12-14
SANECHIPS TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will cause multiple visits to the same table. Since there is only one table, the search can only be performed sequentially, which will seriously affect the speed of table lookup; If you find a storage space, you must ensure that the storage space is large enough, and the space utilization rate will be greatly reduced
If you use multiple hash tables to search in parallel, you need to occupy multiple memory interfaces, which is not conducive to hardware implementation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Hash table entry addition, deletion, search method and hash table storage device
  • Hash table entry addition, deletion, search method and hash table storage device
  • Hash table entry addition, deletion, search method and hash table storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0088] Please refer to image 3 , is a schematic structural diagram of an embodiment of the hash table storage device in this embodiment. The hash table storage and search system in this embodiment includes a main control logic module 505, a plurality of calculation modules 502a-502n, a plurality of search modules 503a-503n, a table entry adding module 504, a statistics module 505, and a table entry splitting module 506, A plurality of bitmap modules 507a-507n, a plurality of entry storage modules 508a-508n, a data judgment module 509 and an exception processing module 550. The internal connection of the hash table storage device in this embodiment is divided into a data line and a control line. On the data line, the main control logic module 501 is coupled to a plurality of calculation modules 502a-502n, a data judgment module 509; a plurality of calculation modules 502a-502n 502n is respectively coupled to multiple search modules 503a-503n; multiple search modules 503a-503n...

Embodiment 2

[0157] see Figure 9 , this figure is a logical structure diagram of an embodiment of the hash table of the present embodiment, each hash sub-table corresponds to a bitmap and a hash function, wherein the input key value is input to the hash table of the present embodiment through the input interface In the sub-table, the hash value of the input key value is calculated by the hash table storage device, and the hash value is used as an index to find and fill in the vacancy in the bitmap and the hash sub-table; among them, bitmap0~9 are 10 of the same size, A state table with a storage depth of m, hash sub-tables 0 to 9 are 10 memories with the same size and a storage depth of m.

[0158] The hash table storage device in this embodiment is used to complete all operations on input key values ​​according to user requests, including adding, searching, monitoring, exception handling, and the like. Please refer to image 3 , when the hash key value is input into the main control lo...

Embodiment 3

[0176] see Figure 9 , which is a logical structure diagram of an embodiment of the hash table in this embodiment, wherein the input key value is input into the hash sub-table of this embodiment through the input interface, and the input key value is calculated by the hash table controller Hash value, use the hash value as an index to find and fill in the vacancy in the hash subtable; among them, hash subtable 0~9 are 10 memories, representing 10 hash subtables, bitmap0~9 are 10 state tables, However, the storage depth of the first 4 of the 10 memories in this embodiment is m, and the storage depth of the last 6 is m / 2.

[0177] The logical structure of the hash table controller in this embodiment, the storage and search process of the hash table, and the logical structure of the lookup table items are completely consistent with those in the second embodiment.

[0178] Compared with the second embodiment, the space utilization rate of the third embodiment is higher.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a hash table entry adding, deleting and searching method and a hash table storage device. The table item lookup method of the hash table of the present invention calculates the hash value of the key value of the table item to be looked up in parallel, and searches the corresponding bitmap according to the hash value, and compares the search results, when the first When the first conflict bit is invalid, take out the entry in the hash subtable corresponding to the address of the bitmap; compare it with the lookup table entry, if they match, the entry is the entry to be looked up. That is, the table item to be found is found. The hash table item search method of the present invention realizes the storage of all table items with a very small search time cost and high table space utilization rate without leaving any table items, and can accurately find the required table only by accessing the memory once. It is also convenient for the implementation of the interface between hardware and storage, and can achieve a better balance in terms of table space size, search efficiency, and hardware implementation.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for adding, deleting and searching entries of a hash table and a storage device thereof. Background technique [0002] In the communication field, there are various matching algorithms, for example, for exact matching search, a hash algorithm can be used. The process of the hash search is to use the hash function to perform the abbreviation operation on the input search key (Key), then use the calculated hash value to address in the hash index table, and read out after finding the matching item. The hash index (Hash Index) stored in the corresponding item is finally used to address the direct address mapping table to obtain the required search result. [0003] The hash algorithm is a common fast search algorithm, and its basic idea is to use the keyword k of each element in the linear table as an independent variable. Through a certain functional relationship H(k...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 李彧张炜孙远航崔玉姣郑永梅
Owner SANECHIPS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products