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

Method and device for establishing Hash mapping and storage medium

A hash map and hash algorithm technology, applied in the field of data storage, can solve the problems of redundant storage and easy storage space occupation, and achieve the effect of improving space utilization, improving utilization rate, and saving storage space

Active Publication Date: 2019-05-17
XIAMEN MEIYA PICO INFORMATION
View PDF7 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of the above-mentioned problems such as easy occupation of redundant storage space and redundant storage when establishing a mapping table, the present invention provides an improved method, device, and storage medium for establishing a hash mapping table to solve the above-mentioned existing problems

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 establishing Hash mapping and storage medium
  • Method and device for establishing Hash mapping and storage medium
  • Method and device for establishing Hash mapping and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of them. 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] figure 1 is a schematic flow diagram of a method for establishing a hash mapping table according to an embodiment of the present invention, such as figure 1 As shown, the present invention discloses a method for establishing a hash mapping table, comprising:

[0041] S1: Construct the first vector in the database to store elements sequentially;

[0042] S2: Build a hash table, the hash table includes n (n=1,2,...,i,...,n) hash ...

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 method for establishing a Hash mapping table. The method comprises the following steps of S1, constructing a first vector in a database for sequentially storing elements; S2,constructing a hash table, the hash table comprising n (n = 1, 2,..., i,..., n) hash buckets, the i-th hash bucket comprising 2i + 2 linked list units and a free pointer, the linked list unit comprising linked list data and an address of the next linked list unit, and the free pointer being used for storing a storage position of a subsequent linked list; S3, calculating a Hash value of an elementin the first vector through a Hash algorithm, and carrying out residue removal on 2i + 2 through the hash value to obtain position data representing the position of the hash bucket, and storing the position of an element in the corresponding first vector as linked list data into the position of the hash bucket represented by the position data, so that a hash mapping table for the first vector isestablished, and operations such as query, addition and deletion can be effectively carried out on elements in the database.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a method, device and storage medium for establishing a hash map. Background technique [0002] In the process of programming, the data of different objects of the same type are often placed in continuous storage space, and each object occupies the same length of space, so the offset of the object can be used to read or edit data very efficiently. This is how programming language arrays are implemented. For example, an application system has many users, and each user has account number, name, password and other information, and all user information objects are constructed into an array, and the kth user can directly use the array subscript k to quickly access the user data . [0003] But in many cases, we not only need to use subscripts to access user data, but also need to quickly access user data through account number, name or other information. A common practice at this time is ...

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): G06F16/22G06F16/245
Inventor 朱智佳李山林世国常鹏张永光吴鸿伟
Owner XIAMEN MEIYA PICO INFORMATION
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