# US 2022/0035526 A1 · Data compression method, electronic device and computer program product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0035526 A1
- Document ID: US20220035526A1
- Status: Published application
- Kind: A1
- Application number: 17/028,158
- Filed: 2020-09-22
- Published: 2022-02-03
- Earliest claimed: 2020-07-31
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Shuo Lv; Huan Chen; Chen Gong; Ming Zhang; Leihu Zhang
- Web page: https://patentgrep.com/patent/US20220035526A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0673: {Single storage device}
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M 7/607: {Selection between different types of compressors}
- H03M 7/00: Conversion of a code where information is represented by a given sequence or number of digits to a code where the same {, similar or subset of} information is represented by a different sequence or number of digits
- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- H03M 7/4031: {Fixed length to variable length coding}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

A data compression technique involves: selecting, from a data block, a plurality of bit strings as sample data. The technique further involves: determining a set of characters included in the sample data. Each character in the set of characters is represented by at least one bit string among the plurality of bit strings. The technique further involves: compressing the data block if statistical characteristics of the set of characters match predetermined statistical characteristics. Accordingly, incompressible data can be filtered out efficiently and accurately, so as to utilize computing resources more efficiently.

## Claims

### Claim 1

A data compression method, comprising:
selecting, from a data block, a plurality of bit strings as sample data;
determining a set of characters comprised in the sample data, each character in the set of characters being represented by at least one bit string among the plurality of bit strings; and
compressing the data block if statistical characteristics of the set of characters match predetermined statistical characteristics.

### Claim 2 (depends on 1)

The method according to claim 1, wherein compressing the data block comprises:
initiating a first compression operation on the data block if it is determined that the number of characters in the set of characters is lower than a first threshold.

### Claim 3 (depends on 1)

The method according to claim 1, wherein compressing the data block comprises:
determining the number of core characters in the set of characters, a percent of bit strings representing the core characters in the plurality of bit strings exceeding a threshold percent; and
initiating a second compression operation on the data block if it is determined that the number of the core characters is lower than a second threshold.

### Claim 4 (depends on 1)

The method according to claim 1, wherein compressing the data block comprises:
determining an information entropy of the sample data based on the number of the plurality of bit strings and the number of times each character in the set of characters appears in the sample data; and
initiating a third compression operation on the data block if the information entropy is lower than a third threshold.

### Claim 5 (depends on 4)

The method according to claim 4, wherein initiating the third compression operation on the data block comprises:
selecting the third compression operation from predetermined compression operations based on the information entropy, the degree of compression of the data block by the third compression operation matching the size of the information entropy; and
making the data block compressed based on the third compression operation.

### Claim 6 (depends on 2)

The method according to claim 2, further comprising:
determining the number of core characters in the set of characters if it is determined that the number of characters is not lower than the first threshold, a percent of bit strings representing the core characters in the plurality of bit strings exceeding a threshold percent; and
initiating a second compression operation on the data block if it is determined that the number of the core characters is lower than a second threshold.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
determining, if it is determined that the number of the core characters is not lower than the second threshold, an information entropy of the sample data based on the number of the plurality of bit strings and the number of times each character in the set of characters appears in the sample data; and
initiating a third compression operation on the data block if the information entropy is lower than a third threshold.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the degrees of compression of the data block by the first compression operation and the second compression operation exceed the degree of compression of the data block by the third compression operation.

### Claim 9 (depends on 1)

The method according to claim 1, wherein selecting the sample data comprises:
selecting, from the data block and based on a predetermined step length and a predetermined interval, the plurality of bit strings as the sample data, the predetermined step length corresponding to the number of consecutive bits selected within the predetermined interval.

### Claim 10 (depends on 1)

The method according to claim 1, wherein initiating a compression operation on the data block comprises:
compressing at least a part of the data block using accelerator resources.

### Claim 11

An electronic device, comprising:
a processor; and
a memory coupled to the processor and having instructions stored therein, wherein the instructions, when executed by the processor, cause the device to execute actions comprising:
selecting, from a data block, a plurality of bit strings as sample data;
determining a set of characters comprised in the sample data, each character among the set of characters being represented by at least one bit string among the plurality of bit strings; and
compressing the data block if statistical characteristics of the set of characters match predetermined statistical characteristics.

### Claim 12 (depends on 11)

The device according to claim 11, wherein compressing the data block comprises:
initiating a first compression operation on the data block if it is determined that the number of characters in the set of characters is lower than a first threshold.

### Claim 13 (depends on 11)

The device according to claim 11, wherein compressing the data block comprises:
determining the number of core characters in the set of characters, a percent of bit strings representing the core characters in the plurality of bit strings exceeding a threshold percent; and
initiating a second compression operation on the data block if it is determined that the number of the core characters is lower than a second threshold.

### Claim 14 (depends on 11)

The device according to claim 11, wherein compressing the data block comprises:
determining an information entropy of the sample data based on the number of the plurality of bit strings and the number of times each character in the set of characters appears in the sample data; and
initiating a third compression operation on the data block if the information entropy is lower than a third threshold.

### Claim 15 (depends on 14)

The device according to claim 14, wherein initiating the third compression operation on the data block comprises:
selecting the third compression operation from predetermined compression operations based on the information entropy, the degree of compression of the data block by the third compression operation matching the size of the information entropy; and
making the data block compressed based on the third compression operation.

### Claim 16 (depends on 12)

The device according to claim 12, wherein the actions further comprise:
determining the number of core characters in the set of characters if it is determined that the number of characters is not lower than the first threshold, a percent of bit strings representing the core characters in the plurality of bit strings exceeding a threshold percent; and
initiating a second compression operation on the data block if it is determined that the number of the core characters is lower than a second threshold.

### Claim 17 (depends on 16)

The device according to claim 16, wherein the actions further comprise:
determining, if it is determined that the number of the core characters is not lower than the second threshold, an information entropy of the sample data based on the number of the plurality of bit strings and the number of times each character in the set of characters appears in the sample data; and
initiating a third compression operation on the data block if the information entropy is lower than a third threshold.

### Claim 18 (depends on 17)

The device according to claim 17, wherein the degrees of compression of the data block by the first compression operation and the second compression operation exceed the degree of compression of the data block by the third compression operation.

### Claim 19 (depends on 11)

The device according to claim 11, wherein selecting the sample data comprises:
selecting, from the data block and based on a predetermined step length and a predetermined interval, the plurality of bit strings as the sample data, the predetermined step length corresponding to the number of consecutive bits selected within the predetermined interval.

### Claim 20 (depends on 11)

The device according to claim 11, wherein initiating a compression operation on the data block comprises:
compressing at least a part of the data block using accelerator resources.

### Claim 21

A computer program product having a non-transitory computer readable medium which stores a set of instructions to perform data compression; the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of:
selecting, from a data block, a plurality of bit strings as sample data;
determining a set of characters comprised in the sample data, each character in the set of characters being represented by at least one bit string among the plurality of bit strings; and
compressing the data block if statistical characteristics of the set of characters match predetermined statistical characteristics.
