Dynamic hash method and device, equipment and storage medium

A hashing and dynamic technology, applied in the field of hashing, can solve problems affecting the efficiency of program operation

Pending Publication Date: 2021-03-09
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When using the hash algorithm to achieve record query, the records that need to be accessed are usually stored in the hash table, and the corresponding hash function is used to calculate the key value used to realize the record query to obtain the corresponding hash value, and then in the hash table Query the record at the position corresponding to the hash value in the Greek table, that is, the record that needs to be accessed; however, the conventional static hash (hash) algorithm will not be optimized as the user environment changes, so there are different environments. The problem that different hash algorithms affect the program operation efficiency of the program due to their different efficiencies

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
  • Dynamic hash method and device, equipment and storage medium
  • Dynamic hash method and device, equipment and storage medium
  • Dynamic hash method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0040] see figure 1 , which shows a flowchart of a dynamic hash method provided by an embodiment of the present invention, which may include:

[0041] S11: Acquiring historical data on historical access to the original hash table to be updated, and determining the frequency of historical access to corresponding records in the original hash table based on the historical data.

[0042] A dynamic hash method provided by an embodiment of the present invention may...

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 dynamic hash method and device, equipment and a storage medium. The method comprises the steps: obtaining the historical data of accessing a to-be-updated original hash tablein history, and determining the frequency of accessing a corresponding record located in the original hash table in history based on the historical data; generating a corresponding hash function based on the frequency corresponding record higher than the frequency threshold, so as to minimize the possibility of hash conflict when accessing the record of which the frequency is higher than the frequency threshold based on the generated hash function; creating a hash table corresponding to the generated hash function, and inserting each record contained in the original hash table into the generated hash table according to the generated hash function; and replacing the original hash table with the generated hash table, and replacing the hash function corresponding to the original hash table with the generated hash function. According to the method, the efficiency of the hash algorithm can be improved, so that the program running efficiency of the program to which the hash algorithm belongs is improved.

Description

technical field [0001] The present invention relates to the technical field of hashing, and more specifically, to a dynamic hashing method, device, equipment and storage medium. Background technique [0002] Hash can compress a message of any length into a fixed-length message digest. When using the hash algorithm to achieve record query, the records that need to be accessed are usually stored in the hash table, and the corresponding hash function is used to calculate the key value used to realize the record query to obtain the corresponding hash value, and then in the hash table Query the record at the position corresponding to the hash value in the Greek table, that is, the record that needs to be accessed; however, the conventional static hash (hash) algorithm will not be optimized as the user environment changes, so there are different environments. Different hash algorithms affect the program operation efficiency of the program to which they belong. Contents of the i...

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
IPC IPC(8): G06F16/22G06F16/23
CPCG06F16/2255G06F16/23
Inventor 郑威范渊黄进
Owner HANGZHOU ANHENG INFORMATION 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