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

Apparatus and method for hash table storage, searching

A technology of a storage device and a hash table, applied in the field of communication, can solve the problem that the length of time required for table lookup is difficult to balance with the size of the table, and achieve the effect of good lookup efficiency

Active Publication Date: 2011-08-24
ZTE CORP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a device and method for storing and searching hash table items, which are used to solve the problem that the time required for table lookup in the existing hash table storage structure is difficult to achieve a balance with the size of the table

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
  • Apparatus and method for hash table storage, searching
  • Apparatus and method for hash table storage, searching
  • Apparatus and method for hash table storage, searching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] see figure 1 , which is a structural block diagram of a preferred embodiment of the hash table item storage device of the present invention, the hash table storage device is mainly used to complete operations such as adding, deleting or refreshing hash table items. It mainly includes a main control logic module, a hash table splitting module, a table entry adding module, a statistics module, an exception handling module, several search modules and several table entry storage modules corresponding to the search modules one by one. Among them, the main control The logic module is coupled to the entry adding module, the hash table splitting module, the statistics module and the exception handling module; the entry adding module, the hash table splitting module, the statistics module and the exception handling module are respectively coupled to a plurality of search modules 1-n, multiple search modules 1-n are respectively coupled to multiple entry storage modules 1-n. The...

Embodiment 2

[0060] see figure 2 , this figure is a structural block diagram of a preferred embodiment of the hash table item search device of the present invention, the hash table searched by the device is composed of several hash sub-tables, and the storage space of several hash table sub-tables can be determined according to Need to choose with. Each hash subtable has an independent address control line and can be accessed at the same time. Each hash sub-table corresponds to N hash functions, N>=1, and the hash function corresponding to each hash sub-table is the same as the hash function corresponding to the hash sub-table when storing entries. The device mainly includes a main control logic module, a data judgment module, several calculation modules 1-n, several search modules 1-n, and several table item storage modules 1-n corresponding to the several search modules one by one, wherein, The main control logic module is coupled to multiple calculation modules and a data decision mo...

Embodiment 3

[0069] The hash table item storage device in the first embodiment above and the hash table item lookup device in the second embodiment above can be applied independently, or they can be combined for application, please refer to image 3 , this figure is a structural block diagram of a device formed by combining the hash table item storage device and the hash table item search device according to the present invention, and the functions of each module in the combined device are as follows: The combination of the functions of the modules and the functions of each module in the above-mentioned hash table entry search device will not be given too many details here.

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 an apparatus and a method for hash table item storage, searching, which aim to solve the problem of hardness in balancing between time needed for table searching and table capacity in hash table storage structure in the prior art. According to the invention a large hash table storage space is divided into a plurality of hash sub-table storage spaces, each of which corresponds to N hash functions. When an item is stored, a hash value is computed using hash function corresponding to each hash sub-table sequentially, an empty position is found in the hash sub-table for storage of the item; when an item is searched, a search among all hash sub-tables is executed for enhancing speed of searching. The invention effectively solves the problem of hardness in balancing between time needed for table searching and table capacity in hash table storage structure in the prior art, implements storage of all items using ultimately low searching time and ultimately high table utilization without residual items.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a device and method for storing and searching hash table items. 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. For a specific description of the hash lookup, please refer to [1] "Christopher Martinez, Wei-Ming Lin, Parimal Patel. Optimal XORhashing for a linearly distributed address lookup in computer networks. ANCS'05, 203-210, 2005" in describe. [0003]...

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
CPCG06F17/3033G06F16/2255
Inventor 张炜李彧许炜华孙远航
Owner ZTE CORP
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