# US 2023/0058149 A1 · Encoding method and apparatus, decoding method and apparatus, and device

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

- Number: US 2023/0058149 A1
- Document ID: US20230058149A1
- Status: Published application
- Kind: A1
- Application number: 17/969,736
- Filed: 2022-10-20
- Published: 2023-02-23
- Earliest claimed: 2020-04-22
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Huazi ZHANG; Jiajie TONG; Xianbin WANG; Shengchen DAI; Rong LI; Jun WANG
- Web page: https://patentgrep.com/patent/US20230058149A1

## CPC

- H03M 13/118: {Parity check matrix structured for simplifying encoding, e.g. by having a triangular or an approximate triangular structure (H03M13/1165 takes precedence)}
- H03M 13/13: Linear codes
- H03M 13/033: {Theoretical methods to calculate these checking codes}
- H03M 13/1125: {using different domains for check node and bit node processing, wherein the different domains include probabilities, likelihood ratios, likelihood differences, log-likelihood ratios or log-likelihood difference pairs}
- H03M 13/1137: {Partly parallel processing, i.e. sub-blocks or sub-groups of nodes being processed in parallel}
- H03M 13/2906: {using block codes (H03M13/2957 takes precedence)}
- H03M 13/09: Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit
- 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

An encoding method and apparatus, a decoding method and apparatus, and a device are provided. The encoding method includes obtaining K to-be-encoded bits (S301), where K is a positive integer; determining a first generator matrix, where the first generator matrix includes at least two sub-blocks distributed based on a preset position relationship, and the sub-block includes a plurality of first generator matrix cores (S302); generating a second generator matrix based on the first generator matrix, where the second generator matrix includes T sub-blocks, and a position relationship between two adjacent sub-blocks of the T sub-blocks is determined based on the preset position relationship (S303), where T is a positive integer; and polar encoding the K to-be-encoded bits based on the second generator matrix (S304), to obtain encoded bits. This reduces encoding/decoding complexity.

## Claims

### Claim 1

An encoding method, comprising:
obtaining K to-be-encoded bits, wherein K is a positive integer;
determining a first generator matrix, wherein:
the first generator matrix includes at least two sub-blocks distributed based on a preset position relationship; and
a sub-block includes a plurality of first generator matrix cores;
generating a second generator matrix based on the first generator matrix, wherein:
the second generator matrix includes T sub-blocks;
a position relationship between two adjacent sub-blocks of the T sub-blocks is determined based on the preset position relationship; and
T is a positive integer; and
polar encoding the K to-be-encoded bits based on the second generator matrix, to obtain encoded bits.

### Claim 2 (depends on 1)

The method according to claim 1, wherein:
the position relationship between the two adjacent sub-blocks of the T sub-blocks is the same as the preset position relationship.

### Claim 3 (depends on 1)

The method according to claim 1, wherein an overlapping portion exists in the at least two sub-blocks.

### Claim 4 (depends on 1)

The method according to claim 1, wherein:
a first diagonal of the sub-block includes the plurality of first generator matrix cores.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the plurality of first generator matrix cores in the sub-block are distributed in a lower triangular form.

### Claim 6 (depends on 1)

The method according to claim 1, wherein:
distribution of the plurality of first generator matrix cores in the sub-block is the same as distribution of first elements in a second generator matrix core;
a quantity of elements included in the second generator matrix core is the same as a quantity of sub-matrices comprised in the sub-block; and
a sub-matrix included in the sub-block is a first generator matrix core or a zero matrix.

### Claim 7 (depends on 6)

The method according to claim 6, wherein:
the quantity of sub-matrices included in the sub-block is 2*2, and the sub-matrix included in the sub-block is the first generator matrix core or the zero matrix.

### Claim 8 (depends on 7)

The method according to claim 7, wherein:
the first generator matrix includes a first sub-block and a second sub-block, and a first sub-matrix in the first sub-block overlaps a second sub-matrix in the second sub-block; and
coordinates of the first sub-matrix in the first sub-block are (2, 2), and coordinates of the second sub-matrix in the second sub-block are (1, 1).

### Claim 9 (depends on 6)

The method according to claim 6, wherein:
the quantity of sub-matrices included in the sub-block is 4*4, and the sub-matrix included in the sub-block is the first generator matrix core or the zero matrix.

### Claim 10 (depends on 9)

The method according to claim 9, wherein:
the first generator matrix includes a first sub-block and a second sub-block, and four first sub-matrices in the first sub-block overlap four second sub-matrices in the second sub-block, wherein:
coordinates of the four first sub-matrices in the first sub-block are (3, 3), (3, 4), (4, 3), and (4, 4); and
coordinates of the four second sub-matrices in the second sub-block are (1, 1), (1, 2), (2, 1), and (2, 2).

### Claim 11

A decoding method, comprising:
receiving polar encoded bit information; and
polar decoding the polar encoded bit information based on a second generator matrix, to obtain polar decoded bits, wherein:
the second generator matrix is generated based on a first generator matrix;
the first generator matrix includes at least two sub-blocks distributed based on a preset position relationship;
a sub-block includes a plurality of first generator matrix cores;
the second generator matrix includes T sub-blocks;
a position relationship between two adjacent sub-blocks of the T sub-blocks is determined based on the preset position relationship; and
T is a positive integer.

### Claim 12 (depends on 11)

The method according to claim 11, wherein:
the position relationship between the two adjacent sub-blocks of the T sub-blocks is the same as the preset position relationship.

### Claim 13 (depends on 11)

The method according to claim 11, wherein:
the polar encoded bit information includes N first log-likelihood ratio (LLR) sequences, and N′ is a positive integer.

### Claim 14 (depends on 13)

The method according to claim 13, wherein:
the N′ first LLRs include T first LLR sequences, and the first LLR sequence includes at least two first LLRs; and
polar decoding comprises:
determining T second LLR sequences corresponding to the T first LLR sequences, wherein one of the first LLR sequences corresponds to one or more groups of unencoded bits, and one of the second LLR sequences corresponds to one group of unencoded bits; and
performing polar decoding based on the T second LLR sequences.

### Claim 15

An encoding apparatus, comprising
at least one processor;
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor, to:
obtain K to-be-encoded bits, wherein K is a positive integer;
determine a first generator matrix, wherein the first generator matrix includes at least two sub-blocks distributed based on a preset position relationship, and a sub-block includes a plurality of first generator matrix cores;
generate a second generator matrix based on the first generator matrix, wherein the second generator matrix includes T sub-blocks, and a position relationship between two adjacent sub-blocks of the T sub-blocks is determined based on the preset position relationship, and T is a positive integer; and
polar encode the K to-be-encoded bits based on the second generator matrix, to obtain encoded bits.

### Claim 16 (depends on 15)

The encoding apparatus according to claim 15, wherein the position relationship between the two adjacent sub-blocks of the T sub-blocks is the same as the preset position relationship.

### Claim 17 (depends on 15)

The encoding apparatus according to claim 15, wherein an overlapping portion exists in the at least two sub-blocks.

### Claim 18 (depends on 15)

The encoding apparatus according to claim 15, wherein:
a first diagonal of the sub-block includes the plurality of first generator matrix cores.

### Claim 19 (depends on 15)

The encoding apparatus according to claim 15, wherein the plurality of first generator matrix cores in the sub-block are distributed in a lower triangular form.

### Claim 20 (depends on 15)

The encoding apparatus according to claim 15, wherein:
distribution of the plurality of first generator matrix cores in the sub-block is the same as distribution of first elements in a second generator matrix core;
a quantity of elements included in the second generator matrix core is the same as a quantity of sub-matrices included in the sub-block; and
a sub-matrix included in the sub-block is a first generator matrix core or a zero matrix.
