Data compression method, data compression system, data decompression method and data decompression system

A data compression and decompression technology, applied in electrical components, code conversion, etc., can solve the problems of long compression time and time-consuming, and achieve the effect of good compression rate

Active Publication Date: 2016-09-07
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF5 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But there are the following defects: 1) need to scan the file to be compressed before encoding to obtain the frequency of character appearance, this process is time-consuming, especially for large files, the compression time is longer; 2) need to transmit additional code table information, when compressed When the data is relatively small or special data is encountered, the length of the output content of dynamic Huffman encoding will be longer than that of static Huffman encoding, and in extreme cases it may be longer than the length of uncompressed original data content

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
  • Data compression method, data compression system, data decompression method and data decompression system
  • Data compression method, data compression system, data decompression method and data decompression system
  • Data compression method, data compression system, data decompression method and data decompression system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] 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 creative efforts fall within the protection scope of the present invention.

[0056] The embodiment of the invention discloses a data compression method and system, and a decompression method and system, so as to increase the compression and decompression speed and reduce the storage cost of the encoding table.

[0057] see figure 1 , the embodiment of the present invention provides a kind of data compression method based on Huffman coding, it is characterized in that, comprises:

[0058]S101. Select target data from raw data;

[0059] Whe...

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 data compression method based on Huffman coding, comprising the following steps of selecting target data from original data; by means of a dynamic Huffman coding algorithm, generating a local dynamic coding table corresponding to each character of the target data; detecting whether to-be-coded characters in the original data are located in the local dynamic coding table; if so, coding the characters through the local dynamic coding table; if not, coding the characters through a fixed coding table; and storing a data file formed after coding and the local dynamic coding table together as a compressed file of the original data. Obviously, as compared with static Huffman coding, the scheme provided by the invention has better compression ratio; and as compared with the conventional dynamic Huffman coding, the scheme provided by the invention has faster compression speed and lower coding table storage overhead. The invention also provides a data compression system, a data decompression method and a data decompression system based on the Huffman coding, which also can achieve the above technical effects.

Description

technical field [0001] The present invention relates to the technical field of data compression, and more specifically, to a data compression method and system, and a decompression method and system. Background technique [0002] Huffman coding is a consistent coding method (also known as "entropy coding method") for lossless compression of data. It establishes a code table according to the probability of each character. Characters with a high probability of occurrence use a shorter code, whereas characters with a low probability of occurrence use a longer code, so that the average expected length of the coded string is reduced, so as to achieve The purpose of losslessly compressing data. [0003] The implementation of Huffman coding is divided into static Huffman coding and dynamic Huffman coding. Static Huffman coding uses a predefined fixed code table for coding, and does not need to save the code table information, but because the code table is fixed, it is not necessa...

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): H03M7/30
CPCH03M7/30
Inventor 赵雅倩
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
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