Unlock instant, AI-driven research and patent intelligence for your innovation.

Set element query method and device for bloom filter

A technology of bloom filter and collection of elements, which is applied in instruments, special data processing applications, electrical digital data processing, etc., to achieve the effect of simple operation process, saving operation time, and saving operation process.

Inactive Publication Date: 2017-11-21
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method for Bloom filter to query set elements, which solves the problem of too long operation time when determining whether a character string belongs to an element in the set, and improves the operation efficiency and system execution efficiency

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
  • Set element query method and device for bloom filter
  • Set element query method and device for bloom filter
  • Set element query method and device for bloom filter

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In the prior art, when elements in a set are mapped to a Bloom filter, generally a plurality of different Hash functions are used to perform operations, and then the corresponding position is determined in the bit array of the Bloom filter, and Set the value of the position. The Hash function is used as the filtering algorithm, which has the characteristics of low error rate and low space complexity, but the calculation time is very long.

[0034] After analysis, it is found that each Hash function can be regarded as two parts, the Hashcode function and the Mod function, and when each element in the set is mapped to the Bloom filter, it needs to be operated by multiple different Hash functions, that is, for each The operation of the Hash function needs to be operated by a Hashcode function and a Mod function, and because each element in the set is different, the operation of the Hashcode function is unique, so when each element is operated by the same Hashcode function,...

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 set element query method and device for a bloom filter. The method comprises the steps of conducting calculation on a to-be-queried character string by using a Hashcode function, then conducting calculation by using K different Mod functions, finally determining a value corresponding to the position of the character string in K bit arrays of the bloom filter, and determining whether or not the character string belongs to elements in a set according to the value. The time spent on function calculation in the process of determining whether or not the character string belongs to the elements in the set is greatly shortened, and therefore the execution efficiency of the entire system of the bloom filter is improved. The invention also discloses a device of querying set elements for the bloom filter, and the device has the above advantages.

Description

technical field [0001] The invention relates to the field of Bloom filters, in particular to a method and device for querying set elements by a Bloom filter. Background technique [0002] The Bloom filter is a random data structure with high space efficiency. Its principle is: when an element is added to the set, the element is mapped to K points in a bit array through k Hash functions, and the They are set to specific values ​​to record that the element is in the collection. When retrieving, we only need to find the corresponding position of the element in the bit array of the Bloom filter through the same Hash function operation, and see if these points are specific values ​​​​pre-set, and we will (approximately) know whether there is it in the collection . [0003] However, whether it is to record the elements in the set through the Bloom filter or to determine whether a certain string is in the set through the Bloom filter, it is necessary to use a relatively complex H...

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
CPCG06F16/9014
Inventor 李延彬
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD