# US 2024/0048157 A1 · Encoding method, decoding method, electronic device and storage medium

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

- Number: US 2024/0048157 A1
- Document ID: US20240048157A1
- Status: Published application
- Kind: A1
- Application number: 18/251,659
- Filed: 2021-05-20
- Published: 2024-02-08
- Earliest claimed: 2020-11-24
- Assignees: Shenzhen Research Institute of Big Data
- Applicants: Shenzhen Research Institute of Big Data
- Inventors: Ximing FU; Shenghao YANG
- Web page: https://patentgrep.com/patent/US20240048157A1

## CPC

- H03M 13/1114: {Merged schedule message passing algorithm with storage of sums of check-to-bit node messages or sums of bit-to-check node messages, e.g. in order to increase the memory efficiency}
- H03M 13/616: {Matrix operations, especially for generator matrices or check matrices, e.g. column or row permutations}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- H03M 13/033: {Theoretical methods to calculate these checking codes}
- H03M 13/05: using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits {(H03M13/2906 takes precedence)}
- H03M 13/1174: {Parity-check or generator matrices built from sub-matrices representing known block codes such as, e.g. Hamming codes, e.g. generalized LDPC codes}
- H03M 13/373: {with erasure correction and erasure determination, e.g. for packet loss recovery or setting of erasures for the decoding of Reed-Solomon codes}
- 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

An encoding method, a decoding method, an electronic device and a storage medium are disclosed. The encoding method includes: acquiring stored data in a storage system, and acquiring nodes corresponding to the stored data to obtain a number of the nodes; dividing the acquired stored data into a sequence of information vectors, and generating an information matrix according to the number of the nodes and a number of the sequence of information vectors; and calculating an encoded block according to each information vector and the information matrix to obtain a sequence of encoded blocks.

## Claims

### Claim 1

An encoding method, comprising:
acquiring stored data in a storage system;
acquiring nodes corresponding to the stored data to obtain a number of the nodes;
dividing the stored data into a sequence of information vectors;
generating an information matrix according to the number of the nodes and a number of the information vectors; and
calculating an encoded block according to each information vector and the information matrix to obtain a sequence of encoded blocks.

### Claim 2 (depends on 1)

The encoding method according to claim 1, wherein the information matrix comprises a multi-order first matrix; and correspondingly, the generating an information matrix according to the number of the nodes and a number of the information vectors comprises:
generating the multi-order first matrix according to the number of the nodes and the number of the information vectors.

### Claim 3 (depends on 1)

The encoding method according to claim 1, wherein the information matrix comprises a multi-order first matrix; and correspondingly, the calculating an encoded block according to each information vector and the information matrix to obtain a sequence of encoded blocks comprises:
calculating an encoded block by multiplying each information vector with the first matrix to obtain the sequence of encoded blocks.

### Claim 4 (depends on 1)

The encoding method according to claim 1, wherein the information matrix comprises a multi-order second matrix; and correspondingly, the generating an information matrix according to the number of the nodes and a number of the information vectors comprises:
generating a multi-order identity matrix according to the number of the sequence of information vectors;
generating a multi-order third matrix according to the number of the nodes and the number of the information vectors; and
compounding the identity matrix and the third matrix to generate the multi-order second matrix.

### Claim 5 (depends on 1)

The encoding method according to claim 1, wherein the information matrix comprises a multi-order second matrix; and correspondingly, the calculating an encoded block according to each information vector and the information matrix to obtain a sequence of encoded blocks comprises:
calculating an encoded block by multiplying each information vector with the second matrix to obtain the sequence of encoded blocks.

### Claim 6 (depends on 1)

A decoding method, comprising:
acquiring a sequence of encoded blocks and a sequence of connection nodes, wherein the encoded blocks are the encoded blocks calculated by the encoding method according to claim 1,
acquiring an encoded block corresponding to each connection node to obtain the sequence of encoded blocks;
generating a decoding block according to each connection node and each encoded block to obtain a sequence of decoding blocks; and
performing bitonic decoding on each decoding block to generate the information vectors.

### Claim 7 (depends on 6)

The decoding method according to claim 6, wherein the connection nodes comprise node sequence numbers; and the generating a decoding block according to each connection node and each encoded block to obtain a sequence of decoding blocks comprises:
sorting the sequence of connection nodes according to the node sequence numbers to obtain a sequence of sorted nodes; and
generating decoding blocks according to the sequence numbers of the sequence of sorted nodes and the encoded blocks corresponding to the sorted nodes.

### Claim 8 (depends on 6)

The decoding method according to claim 6, wherein the generating a decoding block according to each connection node and each encoded block to obtain a sequence of decoding blocks comprises:
transmitting each encoded block corresponding to each connection node to a user side; and
acquiring a sequence of decoding blocks which are generated by the user side according to each encoded block corresponding to each connection node.

### Claim 9 (depends on 6)

The decoding method according to claim 6, wherein the connection nodes comprise node sequence numbers; each connection node comprises a message node and a check node; each decoding block comprises each encoded block corresponding to each message node and each check block corresponding to each check node; and correspondingly, the generating a decoding block according to each connection node and each encoded block to obtain a sequence of decoding blocks comprises:
sorting the sequence of connection nodes according to the node sequence numbers to obtain a sequence of sorted nodes;
acquiring each encoded block corresponding to each message node;
generating a check block from each encoded block corresponding to each check node according to the sequence numbers of the sequence of check nodes in the sequence of sorted nodes; and
transmitting each decoding block to the user side, and acquiring each new decoding block which is generated after the user side performs a local decoding operation according to each decoding block.

### Claim 10 (depends on 6)

The decoding method according to claim 6, wherein each connection node comprises a message node and a check node; each decoding block comprises each encoded block corresponding to each message node and each check block corresponding to each check node; and correspondingly, the generating a decoding block according to each connection node and each encoded block to obtain a sequence of decoding blocks comprises:
transmitting each encoded block corresponding to each connection node to the user side, and generating, by the user side, a decoding block from each encoded block corresponding to each check node according to each check node; and
acquiring each new decoding block which is generated after the user side performs a local decoding operation according to each decoding block.

### Claim 11 (depends on 9)

The decoding method according to claim 9, wherein each decoding block comprises each encoded block corresponding to each message node and each check block corresponding to each check node; and
correspondingly, the generating each new decoding block by the user side by performing a local decoding operation according to each decoding block comprises:
performing, according to each encoded block corresponding to each message node, an XOR operation on each check block and each encoding bit, corresponding to each message node, in each encoded block, to generate each new decoding block.

### Claim 12 (depends on 1)

An electronic device, comprising a memory, a processor, and a computer program that is stored in the memory and executable on the processor, wherein the processor is configured to implement the encoding method according to claim 1 when executing the computer program.

### Claim 13 (depends on 1)

A non-transitory computer-readable storage medium, which stores a computer-executable instruction, wherein the computer-executable instruction is used to enable a computer to perform the encoding method according to claim 1.

### Claim 14 (depends on 6)

An electronic device, comprising a memory, a processor, and a computer program that is stored in the memory and executable on the processor, wherein the processor is configured to implement the decoding method according to claim 6 when executing the computer program.

### Claim 15 (depends on 6)

A non-transitory computer-readable storage medium, which stores a computer-executable instruction, wherein the computer-executable instruction is used to enable a computer to perform the decoding method according to claim 6.
