Supercharge Your Innovation With Domain-Expert AI Agents!

Huffman coding method, system and device and readable storage medium

A Huffman coding and storage medium technology, applied in the field of data compression, which can solve the problems of inability to traverse in parallel and high time-consuming traversal search

Pending Publication Date: 2021-11-26
山东云海国创云计算装备产业创新中心有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method can obtain the Huffman tree that guarantees the optimal compression rate, but the traversal search is extremely time-consuming, and it cannot be traversed in parallel in special cases. In extreme cases, the time consumption of correcting the Huffman tree may be several times that of building a Huffman tree. Time consumption of Fman tree

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
  • Huffman coding method, system and device and readable storage medium
  • Huffman coding method, system and device and readable storage medium
  • Huffman coding method, system and device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] 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.

[0039] Currently, the commonly used super-long code correction method is based on a software algorithm, which needs to traverse and search the binary tree to find the position of the super-long node and the grafting point of the super-long node. This method can obtain a Huffman tree that guarantees the optimal compression rate, but the traversal search is extremely time-consuming, and it cannot be traversed in parallel in special cases. In extreme cases, the ti...

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 Huffman coding method, a Huffman coding system, a Huffman coding device and a readable storage medium. The method comprises the following steps: acquiring a target data block in a target file; performing frequency distribution statistics on the target data block to obtain a first frequency distribution result; obtaining a second frequency distribution result by using the first frequency distribution result and a frequency distribution result of a preset data block in the target file; constructing a first Huffman tree by using the first frequency distribution result; judging whether the depth of the first Huffman tree exceeds a preset value or not; if not, coding the target data block by using the first Huffman tree; and if yes, constructing a second Huffman tree by using the second frequency distribution result, and encoding the target data block by using the second Huffman tree. According to the method, when the depth of the first Huffman tree exceeds the preset value, the second frequency distribution result is selected to be generated for subsequent characterization and coding, the first Huffman tree is not traversed in the process, the effect of correcting the ultra-long code is also achieved, and the efficiency is obviously improved.

Description

technical field [0001] The invention relates to the field of data compression, in particular to a Huffman encoding method, system, device and readable storage medium. Background technique [0002] With the explosive growth of data in the field of information science, servers are under great pressure on how to store massive amounts of data. Data compression has become an effective means to reduce the storage burden of servers and reduce storage costs. Common data compression standards, such as Gzip, zip, zlib, etc., will compress and encapsulate data blocks into data in a deflate format. deflate is a lossless data compression algorithm, which uses the LZ77 algorithm to find duplicate data in the data. Fenman coding represents and encodes repetitive data. [0003] Since the Huffman tree generated by sorting during Huffman encoding may be too deep and the code may appear super long, when the maximum depth specified by the deflate protocol is exceeded, the Huffman tree exceedin...

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): H03M7/40
CPCH03M7/40
Inventor 张永兴刘宇豪王江孙华锦
Owner 山东云海国创云计算装备产业创新中心有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More