# US 2019/0379393 A1 · Dynamic dictionary-based data symbol encoding

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

- Number: US 2019/0379393 A1
- Document ID: US20190379393A1
- Status: Published application
- Kind: A1
- Application number: 16/247,357
- Filed: 2019-01-14
- Published: 2019-12-12
- Earliest claimed: 2018-06-06
- Inventors: Yingquan Wu
- Web page: https://patentgrep.com/patent/US20190379393A1

## CPC

- H03M 7/3088: {employing the use of a dictionary, e.g. LZ78}
- H03M 7/42: using table look-up for the coding or decoding process, e.g. using read-only memory {(H03M7/4006 takes precedence)}
- H03M 7/3086: {employing a sliding window, e.g. LZ77}
- 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 dynamic dictionary-based data symbol encoder. A dynamic dictionary data structure is populated with evictable dictionary entries. The evictable dictionary entries are encoded with a dictionary index that is shorter than an original representation of the input symbols. A reference count evicts dictionary indices when eligible for eviction. Through building a dynamic symbol dictionary which is much smaller than (global) alphabet size, locally repetitive symbols can be effectively compressed using dictionary. The dictionary is also dynamically built along with the compression/decompression process and therefore does not carry overhead. However, tables/trees might be appended to enable entropy decoding. The method is also readily combined with the popular LZ77 and its variant encoding methods into composite one-pass encoding algorithms to achieve superior performance.

## Claims

### Claim 1

An encoding method comprising:
populating a dynamic dictionary data structure with a plurality of evictable dictionary entries based on input symbols of an input data stream, said evictable dictionary entries including first and second evictable dictionary entries; and
encoding said evictable dictionary entries with a dictionary index that is shorter than an original representation of the of the input symbols.

### Claim 2 (depends on 1)

The encoding method of claim 1 further comprising
associating, with each one of said evictable dictionary entries, a reference count that is initialized to a predetermined minimum threshold wherein said reference count is increasable from the predetermined minimum threshold to the predetermined maximum threshold.

### Claim 3 (depends on 2)

The encoding method of claim 2 wherein said predetermined minimum threshold is zero and said predetermined maximum threshold is three.

### Claim 4 (depends on 2)

The encoding method of claim 2 wherein said reference count for the first evictable dictionary entry is increased by one whenever the first evictable dictionary entry is encoded with its dictionary index.

### Claim 5 (depends on 4)

The encoding method of claim 4 wherein said reference count for said first evictable dictionary is increased by one until the predetermined maximum threshold is reached.

### Claim 6 (depends on 2)

The encoding method of claim 2 further comprising using a cyclic pointer that rotates among said evictable dictionary entries to determine whether to replace a currently pointed dictionary entry.

### Claim 7 (depends on 6)

The encoding method of claim 6 wherein the reference count for the first evictable dictionary entry is reduced by one if: (1) an input symbol in the input data stream is distinct from all dictionary entries, (2) the cyclic pointer is at the first evictable dictionary entry, and (3) said reference count for the first evictable dictionary entry is greater than the predetermined minimum threshold.

### Claim 8 (depends on 2)

The encoding method of claim 2 wherein the first evictable dictionary entry is eligible for eviction when its reference count is reduced to the predetermined minimum threshold.

### Claim 9 (depends on 8)

The encoding method of claim 8 wherein the first evictable dictionary entry, upon eviction, is replaced by an input symbol from the input data stream that is distinct from the first and second evictable dictionary entries.

### Claim 10 (depends on 1)

The encoding method of claim 1 further comprising outputting an encoded data stream wherein the encoded data stream includes an indicator bit followed by an output data symbol.

### Claim 11 (depends on 10)

The encoding method of claim 10 wherein the indicator bit specifies that the output data symbol is unencoded.

### Claim 12 (depends on 10)

The encoding method of claim 10 wherein the indicator bit specifies that the output data symbol is encoded.

### Claim 13 (depends on 10)

The encoding method of claim 10 wherein the encoded data stream includes a first indicator bit and a second indicator bit wherein the first indicator bit specifies that the output data symbol is unencoded and the second indicator bit specifies that the output data symbol is encoded.

### Claim 14 (depends on 1)

The encoding method of claim 1 wherein the dictionary size is a power of 2.

### Claim 15 (depends on 1)

The encoding method of claim 1 wherein the dictionary is a 5-bit dictionary.

### Claim 16

A non-transitory machine-readable storage media having instructions for performing an encoding method which causes a computing device to:
register, in a dynamic dictionary data structure, a plurality of evictable dictionary entries that are input symbols from an input data stream with said evictable dictionary entries including first and second evictable dictionary entries; and
encode said evictable dictionary entries with a dictionary index that is shorter than an original representation of the input symbols.

### Claim 17 (depends on 16)

The non-transitory machine-readable storage media of claim 16 further comprising
associate, with each one of said evictable dictionary entries, a reference count that is initialized to a predetermined minimum threshold wherein said reference count is increasable from the predetermined minimum threshold to the predetermined maximum threshold.

### Claim 18 (depends on 16)

The non-transitory machine-readable storage media of claim 16 further comprising
use a cyclic pointer that rotates among said evictable dictionary entries to determine whether to replace a currently pointed dictionary entry.
