Method and Apparatus for Calculating Estimated Data Compression Ratio
First Claim
Patent Images
1. A method for calculating an estimated data compression ratio, comprising:
- parsing to-be-compressed data to obtain a symbol sequence;
obtaining a related indicator of the symbol sequence, wherein the related indicator is used to represent a distribution pattern of symbols in the symbol sequence;
calculating, according to the related indicator, an estimated coding length obtained after the to-be-compressed data is coded using a specified coding mode; and
using a ratio of the estimated coding length obtained by calculation to an initial length of the to-be-compressed data as an estimated compression ratio of the to-be-compressed data.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for calculating an estimated data compression ratio relate to the field of data processing technologies. In the solutions, an estimated data compression ratio is calculated using a related indicator that represents a distribution pattern of symbols in a symbol sequence, where the related indicator that represents the distribution pattern of the symbols in the symbol sequence is relatively closely related to the estimated data compression ratio.
4 Citations
20 Claims
-
1. A method for calculating an estimated data compression ratio, comprising:
-
parsing to-be-compressed data to obtain a symbol sequence; obtaining a related indicator of the symbol sequence, wherein the related indicator is used to represent a distribution pattern of symbols in the symbol sequence; calculating, according to the related indicator, an estimated coding length obtained after the to-be-compressed data is coded using a specified coding mode; and using a ratio of the estimated coding length obtained by calculation to an initial length of the to-be-compressed data as an estimated compression ratio of the to-be-compressed data. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An apparatus for calculating an estimated data compression ratio, wherein the apparatus is configured to perform:
-
parse to-be-compressed data to obtain a symbol sequence; obtain a related indicator of the symbol sequence, wherein the related indicator is used to represent a distribution pattern of symbols in the symbol sequence; calculate, according to the related indicator, an estimated coding length obtained after the to-be-compressed data is coded using a specified coding mode; and use a ratio of the estimated coding length obtained by calculation to an initial length of the to-be-compressed data as an estimated compression ratio of the to-be-compressed data. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification