# US 2021/0342305 A1 · Method of compressing and decompressing a file via cellular automata pre-processing

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

- Number: US 2021/0342305 A1
- Document ID: US20210342305A1
- Status: Published application
- Kind: A1
- Application number: 17/302,374
- Filed: 2021-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: University of Central Florida Research Foundation, Inc.
- Applicants: University of Central Florida Research Foundation, Inc.
- Inventors: Annie S. Wu
- Web page: https://patentgrep.com/patent/US20210342305A1

## CPC

- G06F 16/1744: {using compression, e.g. sparse files}
- H03M 7/3059: {Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression}
- H03M 7/3066: {by means of a mask or a bit-map}
- H03M 7/3068: {Precoding preceding compression, e.g. Burrows-Wheeler transformation}
- H03M 7/6011: {Encoder aspects}
- H03M 7/3086: {employing a sliding window, e.g. LZ77}
- 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 method for pre-processing files that can improve file compression rates of existing general-purpose lossless file compression algorithms, particularly for files on which traditional algorithms perform poorly. The elementary cellular automata (CA) pre-processing technique involves finding an optimal CA state that can be used to transform an original file into a format (i.e., an intermediary file) that is more amenable to compression than the original file format. This technique is applicable to multiple file types and may be used to enhance multiple compression algorithms. Evaluation on generated files, as well as samples selected from online text repositories, finds that the CA pre-processing technique improves compression rates by up to 4% and shows promising results for assisting in compressing data that typically induce worst-case behavior in standard compression algorithms.

## Claims

### Claim 1

A method of file compression via cellular automata pre-processing of a file, the method comprising the steps of:
identifying an optimal binary mask for an original file by executing a plurality of cellular automata processes, each of the plurality of cellular automata processes having a set of instructions including a start state, a rule, and a number of iterations, and selecting one of the plurality of cellular automata processes;
via the optimal binary mask, transforming the original file into an intermediate file that is more compressible than the original file;
via a standard compression algorithm, transforming the intermediate file into a compressed intermediate file;
encoding the optimal binary mask as a set of instructions associated with the selected one of the plurality of cellular automata processes, such that the optimal binary mask includes the set of instructions including the start state, the rule, and the number of iterations; and
appending the encoded optimal binary mask to the compressed intermediate file to form a final compressed file,
wherein the selected one of the plurality of cellular automata processes is associated with a greatest degree of compression of the original file.

### Claim 2 (depends on 1)

The method of claim 1, wherein the optimal binary mask includes an associated length that is equal to a length of the original file.

### Claim 3 (depends on 1)

The method of claim 1, wherein the step of transforming the original file into the intermediate file further comprises the step of using a bitwise exclusive OR operation to subtract the optimal binary mask from the original file.

### Claim 4 (depends on 1)

The method of claim 1, wherein the step of transforming the compressed intermediate file into the final compressed file comprises the step of concatenating the set of instructions associated with the selected one of the plurality of cellular automata processes for the optimal binary mask with the compressed intermediate file.

### Claim 5 (depends on 1)

The method of claim 1, wherein the step of appending the encoded optimal binary mask to the compressed intermediate file includes the step of appending the encoded optimal binary mask to a beginning end of the compressed intermediate file.

### Claim 6 (depends on 1)

The method of claim 1, further comprising the step of performing a decompression step on the final compressed file to decompress the final compressed file into the compressed intermediate file and the encoded optimal binary mask.

### Claim 7 (depends on 6)

The method of claim 6, further comprising the step of recreating, via the set of instructions associated with the selected one of the plurality of cellular automata processes, the optimal binary mask from the encoded optimal binary mask.

### Claim 8 (depends on 7)

The method of claim 7, further comprising the step of transforming, via the standard compression algorithm, the compressed intermediate file into the intermediate file.

### Claim 9 (depends on 8)

The method of claim 8, further comprising the step of transforming, via the optimal binary mask, the intermediate file into the original file.

### Claim 10 (depends on 9)

The method of claim 9, further comprising the step of applying a bitwise exclusive OR operation on each corresponding bit of the optimal binary mask and the intermediate file to recover the original file.

### Claim 11

A method of compressing a file via cellular automata pre-processing and decompressing the file via cellular automata pre-processing, the method comprising the steps of:
identifying an optimal binary mask for an original file by executing a plurality of cellular automata processes, each of the plurality of cellular automata processes having a set of instructions including a start state, a rule, and a number of iterations, and selecting one of the plurality of cellular automata processes;
compressing the original file by:
via the optimal binary mask, transforming the original file into an intermediate file that is more compressible than the original file;
compressing the intermediate file;
encoding the optimal binary mask as a set of instructions associated with the selected one of the plurality of cellular automata processes, such that the optimal binary mask includes the set of instructions including the start state, the rule, and the number of iterations; and
appending the encoded optimal binary mask to the compressed intermediate file to form a final compressed file; and
decompressing the final compressed file by:
decompressing the final compressed file into the compressed intermediate file and the encoded optimal binary mask;
recreating, via the set of instructions associated with the selected one of the plurality of cellular automata processes, the optimal binary mask from the encoded optimal binary mask;
decompressing the compressed intermediate file into the intermediate file; and
transforming, via the optimal binary mask, the intermediate file into the original file,
wherein the selected one of the plurality of cellular automata processes is associated with a greatest degree of compression of the original file.

### Claim 12 (depends on 11)

The method of claim 11, wherein the optimal binary mask includes an associated length that is equal to a length of the original file.

### Claim 13 (depends on 11)

The method of claim 11, wherein the step of transforming the original file into the intermediate file further comprises the step of using a bitwise exclusive OR operation to subtract the optimal binary mask from the original file.

### Claim 14 (depends on 11)

The method of claim 11, wherein the step of transforming the compressed intermediate file into the final compressed file comprises the step of concatenating the set of instructions associated with the selected one of the plurality of cellular automata processes for the optimal binary mask with the compressed intermediate file.

### Claim 15 (depends on 11)

The method of claim 11, wherein the step of appending the encoded optimal binary mask to the compressed intermediate file includes the step of appending the encoded optimal binary mask to a beginning end of the compressed intermediate file.

### Claim 16 (depends on 11)

The method of claim 11, wherein the step of transforming the intermediate file into the original file further comprises the step of applying a bitwise exclusive OR operation on each corresponding bit of the optimal binary mask and the intermediate file to recover the original file.

### Claim 17

One or more non-transitory computer-readable media having computer-executable instructions for performing a method of running a software program on a computing device, the computing device operating under an operating system, the method including issuing instructions from the software program comprising:
identifying an optimal binary mask for an original file by executing a plurality of cellular automata processes, each of the plurality of cellular automata processes having a set of instructions including a start state, a rule, and a number of iterations, and selecting one of the plurality of cellular automata processes, the optimal binary mask including an associated length that is equal to a length of the original file;
via the optimal binary mask, transforming the original file into an intermediate file that is more compressible than the original file by using a bitwise exclusive OR operation to subtract the optimal binary mask from the original file;
via a standard compression algorithm, transforming the intermediate file into a compressed intermediate file;
encoding the optimal binary mask as a set of instructions associated with the selected one of the plurality of cellular automata processes, such that the optimal binary mask includes the set of instructions including the start state, the rule, and the number of iterations; and
appending the encoded optimal binary mask to the compressed intermediate file to form a final compressed file,
wherein the selected one of the plurality of cellular automata processes is associated with a greatest degree of compression of the original file.

### Claim 18 (depends on 17)

The media of claim 17, wherein the step of transforming the compressed intermediate file into the final compressed file comprises the step of concatenating the set of instructions associated with the selected one of the plurality of cellular automata processes for the optimal binary mask with the compressed intermediate file.

### Claim 19 (depends on 17)

The media of claim 17, wherein the step of appending the encoded optimal binary mask to the compressed intermediate file includes the step of appending the encoded optimal binary mask to a beginning end of the compressed intermediate file.

### Claim 20 (depends on 17)

The media of claim 17, further comprising decompressing the final compressed file to the original file by:
decompressing the final compressed file into the compressed intermediate file and the encoded optimal binary mask;
recreating, via the set of instructions associated with the selected one of the plurality of cellular automata processes, the optimal binary mask from the encoded optimal binary mask;
decompressing the compressed intermediate file into the intermediate file; and
transforming, via the optimal binary mask, the intermediate file into the original file.
