# US 2013/0254441 A1 · Method and apparatus to process data based upon estimated compressibility of the data

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

- Number: US 2013/0254441 A1
- Document ID: US20130254441A1
- Status: Published application
- Kind: A1
- Application number: 13/425,016
- Filed: 2012-03-20
- Published: 2013-09-26
- Earliest claimed: 2012-03-20
- Assignees: SanDisk Technologies LLC
- Inventors: ALON KIPNIS; ITAI DROR
- Web page: https://patentgrep.com/patent/US20130254441A1

## CPC

- 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/3071: {Prediction}
- H03M 7/3079: {Context modeling}
- H04L 69/04: Protocols for data compression, e.g. ROHC
- 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)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method includes, in a data storage device, determining an estimated compression ratio. The estimated compression ratio is based on hash values of a subset of a data set. The method includes selectively processing the data set based on the estimated compression ratio prior to storage of data associated with the data set in a memory of the data storage device.

## Claims

### Claim 1

A method comprising:
in a data storage device, performing:
determining an estimated compression ratio, wherein the estimated compression ratio is based on hash values of a subset of a data set; and
processing the data set prior to storage of data associated with the data set in a memory of the data storage device, wherein the processing is determined based on the estimated compression ratio.

### Claim 2 (depends on 1)

The method of claim 1, wherein the subset includes fewer data elements than a total number of data elements in the data set.

### Claim 3 (depends on 1)

The method of claim 1, further comprising determining whether to initiate a compression operation of the data set at a compressor of the data storage device based on comparing the estimated compression ratio to a threshold value.

### Claim 4 (depends on 3)

The method of claim 3, wherein the hash values are generated at hash circuitry, and wherein initiating the compression operation includes generating additional hash values of the data set at the hash circuitry.

### Claim 5 (depends on 3)

The method of claim 3, wherein a determination is made to initiate the compression operation in response to the estimated compression ratio being less than the threshold value.

### Claim 6 (depends on 3)

The method of claim 3, wherein a determination is made to refrain from initiating the compression operation in response to the estimated compression ratio satisfying the threshold value.

### Claim 7 (depends on 1)

The method of claim 1, wherein each hash value is determined from a corresponding sample of the data set, each sample including at least two data elements.

### Claim 8 (depends on 1)

The method of claim 1, further comprising selecting, based on the estimated compression ratio, a type of error correction code encoding to apply to a representation of the data set.

### Claim 9 (depends on 1)

The method of claim 1, wherein the estimated compression ratio is determined based on a count of collisions of the hash values.

### Claim 10 (depends on 9)

The method of claim 9, wherein the estimated compression ratio is further based on a comparison of the count of collisions to an expected number of collisions based on a uniform distribution of data values.

### Claim 11 (depends on 1)

The method of claim 1, further comprising applying, by a processor, a selected hash function to a plurality of data elements of the data set to determine the hash values of the subset of the data set.

### Claim 12

A data storage device comprising:
a memory configured to store a data set, the data set including a first plurality of data elements; and
processing hardware configured to:
determine an estimated compression ratio associated with the data set based on hash values of a subset of the data set; and
selectively process the data set based on the estimated compression ratio to produce a representation of the data set prior to storage of data associated with the data set in a the memory of the data storage device.

### Claim 13 (depends on 12)

The data storage device of claim 12, wherein the processing hardware is further configured to determine, based on comparing the estimated compression ratio to a threshold value, whether to initiate a compression operation of the data set at a compressor of the data storage device.

### Claim 14 (depends on 13)

The data storage device of claim 13, wherein the processing hardware includes a comparator to initiate the compression operation in response to the estimated compression ratio being less than the threshold value.

### Claim 15 (depends on 13)

The data storage device of claim 13, wherein the processing hardware includes a comparator, the comparator to refrain from initiating the compression operation in response to the estimated compression ratio satisfying the threshold value.

### Claim 16 (depends on 12)

The data storage device of claim 12, wherein each of the hash values is determined from a corresponding sample of the data set, each sample including at least two data elements.

### Claim 17 (depends on 12)

The data storage device of claim 12, further comprising an error correction coding (ECC) encoder, and wherein the processing hardware is configured to select, based on the estimated compression ratio, a type of error correction code encoding to be applied by the ECC encoder to a representation of the data set.

### Claim 18 (depends on 12)

The data storage device of claim 12, wherein the estimated compression ratio is further based on a comparison of a count of collisions to an expected number of collisions based on a uniform distribution of data elements.

### Claim 19 (depends on 12)

The data storage device of claim 12, wherein the processing hardware is further configured to apply a selected hash function to a plurality of data elements of the subset of a data set to determine the hash values.

### Claim 20 (depends on 12)

The data storage device of claim 12, wherein the subset includes fewer data elements than the data set.
