# US 2019/0377498 A1 · Method and system for data compression and data storage optimization

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

- Number: US 2019/0377498 A1
- Document ID: US20190377498A1
- Status: Published application
- Kind: A1
- Application number: 16/049,878
- Filed: 2018-07-31
- Published: 2019-12-12
- Earliest claimed: 2018-06-11
- Assignees: Wipro Limited
- Applicants: Wipro Limited
- Inventors: Rishav DAS
- Web page: https://patentgrep.com/patent/US20190377498A1

## CPC

- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0641: {De-duplication techniques}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0673: {Single storage device}
- G06F 12/10: Address translation
- G06F 3/0671: {In-line storage system}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This disclosure relates to method and system for data compression and data storage optimization. The method of compression may include converting each data block into a matrix, compressing each data block by processing the corresponding matrix to form a minimum state matrix based on a sequential set of compression rules, deriving a granular metadata for each data block based on the corresponding minimum state matrix, and storing the granular metadata and the sequential set of compression rules for each data block. Further, the method of decompression may include accessing a granular metadata and a sequential set of compression rules for each data block, deriving a minimum state matrix for each data block based on the corresponding granular metadata, decompressing each data block by processing the corresponding minimum state matrix to form a matrix based on the sequential set of compression rules, and building each data block from the corresponding matrix.

## Claims

### Claim 1

A method of compressing data, the method comprising:
converting, by a compression device, each of a plurality of data blocks, of a pre-defined data block size, into a matrix, of a pre-defined matrix size, so as to enable bit-level data manipulation;
compressing, by the compression device, each of the plurality of data blocks by processing the corresponding matrix to form a minimum state matrix based on a sequential set of compression rules;
deriving, by the compression device, a granular metadata for each of the plurality of data blocks based on the corresponding minimum state matrix; and
storing, by the compression device, the granular metadata and the sequential set of compression rules for each of the plurality of data blocks.

### Claim 2 (depends on 1)

The method of claim 1, further comprising slicing an original data block into the plurality of data blocks.

### Claim 3 (depends on 1)

The method of claim 1, further comprising providing a unique virtual address for each of the plurality of data blocks, wherein storing comprises storing the granular metadata and the sequential set of compression rules mapped to the corresponding unique virtual address.

### Claim 4 (depends on 1)

The method of claim 1, further comprising de-duplicating the data by removing one or more redundant data blocks.

### Claim 5 (depends on 1)

The method of claim 1, wherein the pre-defined block size is dependent on at least one of a computing platform or a data storage platform implementing the compression device.

### Claim 6 (depends on 1)

The method of claim 1, wherein the pre-defined matrix size comprises a fixed number of columns and N number of rows, and wherein N is determined based on the pre-defined data block size.

### Claim 7 (depends on 1)

The method of claim 1, wherein processing the corresponding matrix to form the minimum state matrix comprises reorganizing matrix so as to form an identity matrix or a near identity matrix.

### Claim 8 (depends on 1)

The method of claim 1, wherein processing the corresponding matrix to form the minimum state matrix comprises:
initializing a row variable (i) to ‘one’ and a column variable (j) to ‘one’ to select a first matrix element (aij) of the corresponding matrix as a pivot element;
if the pivot element is ‘zero’,
swapping the ith row with a rth row, if any, such that the pivot element after swapping is ‘non-zero’, wherein the rth row is any row from (i+1)th row to a last row of the corresponding matrix;
if no such rth row exists, incrementing the column variable (j) by ‘one’ to select a new pivot element and iterating the swapping step to a last column of the corresponding matrix;
dividing the ith row by the pivot element to reduce the pivot element to ‘one’;
reducing all other elements in the jth column to ‘zero’ by performing a set of mathematical operations with a set of suitable multiples of ith row, wherein the set of mathematical operations include at least one of subtraction, addition, division, or multiplication;
incrementing the row variable (i) by ‘one’ and the column variable (j) by ‘one’ to select next pivot element and iterating the process till a last row or a last column of the corresponding matrix.

### Claim 9 (depends on 1)

The method of claim 1, further comprising compressing the granular metadata to form a key hash table.

### Claim 10

A method of decompressing data, the method comprising:
accessing, by a decompression device, a granular metadata and a sequential set of compression rules for each of a plurality of data blocks of a pre-defined data block size;
deriving, by the decompression device, a minimum state matrix for each of the plurality of data blocks based on the corresponding granular metadata;
decompressing, by the decompression device, each of the plurality of data blocks by processing the corresponding minimum state matrix to form a matrix based on the sequential set of compression rules; and
building, by the decompression device, each of the plurality of data blocks from the corresponding matrix.

### Claim 11 (depends on 10)

The method of claim 10, further comprising reconstructing the granular metadata from a key hash table, wherein the key hash table is formed by compressing the granular metadata.

### Claim 12 (depends on 10)

The method of claim 10, wherein deriving the minimum state matrix comprises parsing the granular metadata and assigning respective value to each of a plurality of elements of the minimum state matrix.

### Claim 13 (depends on 10)

The method of claim 10, wherein processing the corresponding minimum state matrix to form the matrix comprises computing value of each of a plurality of elements of the matrix based on the minimum state matrix by back-propagating the sequential set of compression rules.

### Claim 14 (depends on 10)

The method of claim 10, further comprising concatenating the plurality of data blocks into an original data block.

### Claim 15 (depends on 14)

The method of claim 14, wherein accessing comprises accessing the granular metadata and the sequential set of rules mapped to a unique virtual address for each of the plurality of data blocks, and wherein concatenating comprises concatenating the plurality of data blocks into the original data block based on the corresponding unique virtual addresses.

### Claim 16

A system for compressing data, the system comprising:
a compression device comprising at least one processor and a memory for storing instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising:
converting each of a plurality of data blocks, of a pre-defined data block size, into a matrix, of a pre-defined matrix size, so as to enable bit-level data manipulation;
compressing each of the plurality of data blocks by processing the corresponding matrix to form a minimum state matrix based on a sequential set of compression rules;
deriving a granular metadata for each of the plurality of data blocks based on the corresponding minimum state matrix; and
storing the granular metadata and the sequential set of compression rules for each of the plurality of data blocks.

### Claim 17 (depends on 16)

The system of claim 16, wherein the operations further comprise:
slicing an original data block into the plurality of data blocks; and
providing a unique virtual address for each of the plurality of data blocks, wherein storing comprises storing the granular metadata and the sequential set of compression rules mapped to the corresponding unique virtual address.

### Claim 18 (depends on 16)

The system of claim 16, wherein processing the corresponding matrix to form the minimum state matrix comprises reorganizing matrix so as to form an identity matrix or a near identity matrix.

### Claim 19 (depends on 16)

The system of claim 16, wherein the operations further comprise compressing the granular metadata to form a key hash table.

### Claim 20

A system of decompressing data, the system comprising:
a decompression device comprising at least one processor and a memory for storing instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising:
accessing a granular metadata and a sequential set of compression rules for each of a plurality of data blocks of a pre-defined data block size;
deriving a minimum state matrix for each of the plurality of data blocks based on the corresponding granular metadata;
decompressing each of the plurality of data blocks by processing the corresponding minimum state matrix to form a matrix based on the sequential set of compression rules; and
building each of the plurality of data blocks from the corresponding matrix.

### Claim 21 (depends on 20)

The system of claim 20, wherein the operations further comprise reconstructing the granular metadata from a key hash table, wherein the key hash table is formed by compressing the granular metadata.

### Claim 22 (depends on 20)

The system of claim 20, wherein deriving the minimum state matrix comprises parsing the granular metadata and assigning respective value to each of a plurality of elements of the minimum state matrix.

### Claim 23 (depends on 20)

The system of claim 20, wherein processing the corresponding minimum state matrix to form the matrix comprises computing value of each of a plurality of elements of the matrix based on the minimum state matrix by back-propagating the sequential set of compression rules.

### Claim 24 (depends on 20)

The system of claim 20, wherein the operations further comprise concatenating the plurality of data blocks into an original data block, wherein accessing comprises accessing the granular metadata and the sequential set of rules mapped to a unique virtual address for each of the plurality of data blocks, and wherein concatenating comprises concatenating the plurality of data blocks into the original data block based on the corresponding unique virtual addresses.
