Method and device for storing and searching keyword

A storage device and keyword technology, applied in the field of communication, can solve the problems of compression keyword conflict, increase search delay, storage space and bandwidth waste, etc., to increase flexibility, save storage space and bandwidth, and avoid compression keywords. the effect of conflict

Active Publication Date: 2011-11-02
HUAWEI TECH CO LTD
View PDF4 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the bucket depth of the initial hash bucket is too deep, which will lead to waste of storage space and bandwidth
The conflict of the hash function 2 will lead to the conflict of the compression key, which requires multiple visits to the hash bucket to complete the search, which will increase the search delay

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
  • Method and device for storing and searching keyword
  • Method and device for storing and searching keyword
  • Method and device for storing and searching keyword

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0041] Such as figure 1 As shown, in the embodiment of the present invention, the processing flow of the keyword storage method may include:

[0042] Step 101, the keyword is operated by the first hash function to obtain the address of the first hash bucket; according to the address of the first hash bucket, the first hash bucket is searched;

[0043] Step 102, operating the keyword through a second hash function to obtain the address of the second hash bucket; searching for the second hash bucket according to the address of the second hash bucket;

[0044] Step 103...

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

A method for storing keyword is disclosed, which includes: a keyword is operated respectively on the first and the second hash function in order to obtain the first and the second hash bucket addresses; the first and the second hash buckets are searched according to the first and the second hash bucket addresses; if no compressed keyword which conflicts with the compressed keyword of the keyword exists in the first hash bucket, the compressed keyword of the keyword and the pointer of the keyword are stored into the first hash bucket when the first hash bucket has remaining space; or the compressed keyword of the keyword and the pointer of the keyword are stored into the second hash bucket, when the first hash bucket has no remaining space and the second hash bucket has remaining space, and no compressed keyword which conflicts with the compressed keyword of the keyword exists in the second hash bucket. A method for searching keyword, a device for storing keyword and a device for searching keyword are also disclosed. The present invention enables increasing memory utilization ratio greatly and saving memory space and bandwidth.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to methods and devices for storing and searching keywords. Background technique [0002] The exact matching algorithm based on hash is widely used in various fields. Low latency, low collision probability and high performance are the goals everyone is pursuing. [0003] The prior art provides a solution for realizing an exact matching search through a secondary hash algorithm. In this solution, two hash functions are used for a keyword (key) for an exact match search. [0004] Through the hash function 1 operation, an initial hash bucket address can be obtained, and the initial hash bucket contains several compressed key units and a cascaded linked list pointer. Each compression key unit consists of a compression key and a key pointer. A valid cascaded linked list pointer points to a cascaded hash bucket. The data structure of the cascaded hash bucket is consistent with t...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F17/30949H04L45/745G06F16/9014
Inventor 克里斯蒂安·兰比瑞崔秀梅
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products