# US 2017/0373702 A1 · Data compression device and data decompression device

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

- Number: US 2017/0373702 A1
- Document ID: US20170373702A1
- Status: Published application
- Kind: A1
- Application number: 15/608,392
- Filed: 2017-05-30
- Published: 2017-12-28
- Earliest claimed: 2016-06-22
- Assignees: Fujitsu Limited
- Applicants: Fujitsu Limited
- Inventors: Takanori Nakao
- Web page: https://patentgrep.com/patent/US20170373702A1

## CPC

- H03M 7/3086: {employing a sliding window, e.g. LZ77}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/258: {Data format conversion from or to a database}
- 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)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data compression device includes a processor configured to extract delimiter characters and character strings from compression target data. The character strings each are sandwiched between two of the delimiter characters in the compression target data. The processor is configured to generate first data by arranging the delimiter characters to allow an order in which the delimiter characters occur in the compression target data to be identified. The processor is configured to generate second data by arranging the character strings for each type of combination of two of the delimiter characters, which sandwich each of the character strings in the compression target data, to allow an order in which the character strings occur in the compression target data to be identified. The processor is configured to perform compression on the first data and the second data. The processor is configured to output a result of the compression.

## Claims

### Claim 1

A non-transitory computer-readable recording medium having stored therein a program that causes a computer to execute a process, the process comprising:
extracting delimiter characters and character strings from compression target data, the character strings each being sandwiched between two of the delimiter characters in the compression target data;
generating first data by arranging the delimiter characters to allow an order in which the delimiter characters occur in the compression target data to be identified;
generating second data by arranging the character strings for each type of combination of two of the delimiter characters, which sandwich each of the character strings in the compression target data, to allow an order in which the character strings occur in the compression target data to be identified;
performing compression on the first data and the second data; and
outputting a result of the compression.

### Claim 2 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, the process further comprising:
receiving designation of the delimiter characters.

### Claim 3 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, the process further comprising:
dividing, in a case where a number of types of the delimiter characters that occur in the compression target data is greater than a predetermined threshold value, the compression target data into pieces of partial data, in each of which a number of types of the delimiter characters to occur is less than or equal to the predetermined threshold value; and
generating the first data and the second data for each of the pieces of partial data.

### Claim 4 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, the process further comprising:
generating the first data by alternately arranging the delimiter characters and predetermined characters in an order in which the delimiter characters occur in the compression target data; and
generating the second data by alternately arranging, for each type of combination of two of the delimiter characters, the character strings and predetermined characters in an order in which the character strings occur in the compression target data.

### Claim 5 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein
the compression is compression with a sliding dictionary method.

### Claim 6 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein
the compression is compression with a compression algorithm of Lempel-Ziv 77 (LZ77) or Lempel-Ziv-Markov chain-Algorithm (LZMA).

### Claim 7 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein
the delimiter characters include a character string including two or more characters.

### Claim 8 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein
each of the delimiter characters includes only one character.

### Claim 9 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, wherein
the delimiter characters include a control character indicating control of the compression target data.

### Claim 10 (depends on 1)

The non-transitory computer-readable recording medium according to claim 1, the process comprising:
generating the second data while handling under an assumption that a control character indicating a line feed occurs at a head of the compression target data.

### Claim 11

A data compression device, comprising:
a memory; and
a processor coupled to the memory and the processor configured to:
extract delimiter characters and character strings from compression target data, the character strings each being sandwiched between two of the delimiter characters in the compression target data;
generate first data by arranging the delimiter characters to allow an order in which the delimiter characters occur in the compression target data to be identified;
generate second data by arranging the character strings for each type of combination of two of the delimiter characters, which sandwich each of the character strings in the compression target data, to allow an order in which the character strings occur in the compression target data to be identified;
perform compression on the first data and the second data; and
output a result of the compression.

### Claim 12

A non-transitory computer-readable recording medium having stored therein a program that causes a computer to execute a process, the process comprising:
decompressing decompression target data into first data and second data, the first data including delimiter characters, the second data including character strings;
restoring original data by inserting a character string between two adjacent delimiter characters in the first data in accordance with an order of the character string arranged in a portion of the second data, the portion corresponding to a type of combination of the two adjacent delimiter characters; and
outputting the restored original data.

### Claim 13

A data decompression device, comprising:
a memory; and
a processor coupled to the memory and the processor configured to:
decompress decompression target data into first data and second data, the first data including delimiter characters, the second data including character strings;
restore original data by inserting a character string between two adjacent delimiter characters in the first data in accordance with an order of the character string arranged in a portion of the second data, the portion corresponding to a type of combination of the two adjacent delimiter characters; and
output the restored original data.
