# US 2020/0007163 A1 · Polar code encoding method and apparatus

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

- Number: US 2020/0007163 A1
- Document ID: US20200007163A1
- Status: Published application
- Kind: A1
- Application number: 16/569,301
- Filed: 2019-09-12
- Published: 2020-01-02
- Earliest claimed: 2017-03-14
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yourui Huangfu; Gongzheng ZHANG; Chaolong ZHANG; Rong LI; Jun WANG
- Web page: https://patentgrep.com/patent/US20200007163A1

## CPC

- H03M 13/13: Linear codes
- H03M 13/09: Error detection only, e.g. using cyclic redundancy check [CRC] codes or single parity bit
- H03M 13/3944: {for block codes, especially trellis or lattice decoding thereof}
- H04L 1/00: Arrangements for detecting or preventing errors in the information received {(correcting synchronisation H04L7/00)}
- H04L 1/0061: {Error detection codes}
- H04L 69/324: in the data link layer [OSI layer 2], e.g. HDLC
- H03M 13/635: {Error control coding in combination with rate matching}
- H04L 1/0066: {Parallel concatenated 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)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A polar code encoding method and apparatus are provided. The method includes: obtaining a basic sequence, where the basic sequence is a sequence obtained by sorting sequence numbers of polarized channels in descending order or ascending order of reliability, and a length of the basic sequence is L1; determining, based on a maximum encoding length L2 supported by a receiving device, a quantity M of segments of an information bit sequence whose length is N after encoding, where a quantity of bits in the information bit sequence before the encoding is K; and performing polar code encoding on the M segments based on the basic sequence. According to the polar code encoding method, during polar code construction, an encoding device needs to know only a reliability order of min(N/M, L1) polarized channels. In this way, storage overheads of a nested sequence can be effectively reduced, and online computing complexity can be reduced.

## Claims

### Claim 1

A polar code encoding method, comprising:
obtaining a basic sequence, wherein the basic sequence is a sequence obtained by sorting sequence numbers of polarized channels in descending order or ascending order of reliability, and a length of the basic sequence is L1;
determining, based on the basic sequence and a maximum encoding length L2 supported, M segments of an information bit sequence, wherein the M segments of an information bit sequence comprises N bits, wherein the information bit sequence before encoding comprises K bits;
separately encoding the M segments by using a first encoding scheme, to obtain the M encoded segments; and
polar encoding on the M encoded segments.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining M segments of an information bit sequence comprises:
determining, based on the maximum encoding length L2 supported by the receiving device, a quantity M of segments of the information bit sequence whose length is N after the encoding, wherein the quantity of bits in the information bit sequence before the encoding is K;
obtaining to-be-sent information of each of the M segments, wherein the to-be-sent information comprises at least one information bits and at least one cyclic redundancy check (CRC) bits; and
setting a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the obtaining to-be-sent information of the M segments of the information bit sequence comprises:
dividing the information bit sequence level by level until the M segments are obtained;
determining two next-level segments of a present-level segment based on a bit rate of the present-level segment and information bits in the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment; and
in the M segments, separately adding a corresponding CRC code based on the information bits in each segment, to obtain the to-be-sent information of each of the M segments.

### Claim 4 (depends on 3)

The method according to claim 3, wherein when M is less than or equal to N/L1, the method further comprises:
dividing the M segments level by level until the N/L1 segments are obtained; and
determining two next-level segments of a present-level segment based on a bit rate of the present-level segment and information bits in the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, to set a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 5 (depends on 3)

The method according to claim 3, wherein before the dividing the information bit sequence level by level, the method further comprises:
obtaining a CRC code of the information bit sequence, wherein a length of the CRC code is J′; and
calculating a bit rate R of the information bit sequence based on an encoding length N, K, and J′ that are corresponding to the information bit sequence.

### Claim 6 (depends on 2)

The method according to claim 2, wherein the obtaining to-be-sent information of the M segments of the information bit sequence comprises:
dividing the information bit sequence level by level until the M segments are obtained;
determining information bits in two next-level segments of a present-level segment based on information bits in the present-level segment and an interleaving table of the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, the interleaving table of the present-level segment is a sequence obtained by sorting polarized channels of the next-level segments in descending order or ascending order of reliability, and a total quantity of polarized channels in the interleaving table of the present-level segment is equal to the encoding length corresponding to the present-level segment; and
in the M segments, separately adding a corresponding CRC code based on the information bits in each segment, to obtain the to-be-sent information of each of the M segments.

### Claim 7 (depends on 6)

The method according to claim 6, wherein when M is less than or equal to N/L1, the method further comprises:
dividing the M segments level by level in the following manner until N/L1 segments are obtained; and
determining information bits in two next-level segments of a present-level segment based on information bits in the present-level segment and an interleaving table of the present-level segment to the next-level segments, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, the interleaving table of the present-level segment is a sequence obtained by sorting polarized channels of the next-level segments in descending order or ascending order of reliability, and a total quantity of polarized channels in the interleaving table of the present-level segment is equal to the encoding length corresponding to the present-level segment, to set a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the determining information bits in two next-level segments of a present-level segment based on information bits in the present-level segment and an interleaving table of the present-level segment to the next-level segments comprises:
alternately allocating the information bit sequence to the two next-level segments of the present-level segment in descending order of reliability based on a sequence value in the present-level interleaving table.

### Claim 9

A polar code encoding apparatus, comprising:
an obtaining unit, configured to obtain a basic sequence, wherein the basic sequence is a sequence obtained by sorting sequence numbers of polarized channels in descending order or ascending order of reliability, and a length of the basic sequence is L1; and
a processing unit, wherein the processing unit is configured to:
determine, based on the basic sequence and a maximum encoding length L2 supported by a receiving device, M segments of an information bit sequence, wherein the M segments of an information bit sequence comprises N bits, wherein the information bit sequence before encoding comprises K bits;
separately encode the M segments by using a first encoding scheme, to obtain the M encoded segments; and
perform polar code encoding on the M encoded segments.

### Claim 10 (depends on 9)

The apparatus according to claim 9, wherein the processing unit is further configured to:
determine, based on the maximum encoding length L2 supported by the receiving device, a quantity M of segments of the information bit sequence whose length is N after the encoding, wherein the quantity of bits in the information bit sequence before the encoding is K;
obtain to-be-sent information of each of the M segments, wherein the to-be-sent information comprises information bits and cyclic redundancy check (CRC) bits; and
set a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the processing unit is further configured to:
divide the information bit sequence level by level until the M segments are obtained;
determine two next-level segments of a present-level segment based on a bit rate of the present-level segment and information bits in the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment; and
in the M segments, separately add a corresponding CRC code based on the information bits in each segment, to obtain the to-be-sent information of the M segments.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein when M is less than or equal to N/L1, the processing unit is further configured to:
divide the M segments level by level until the N/L1 segments are obtained; and
determine two next-level segments of a present-level segment based on a bit rate of the present-level segment and information bits in the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, to set a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein before the processing unit divides the information bit sequence level by level, the obtaining unit is further configured to:
obtain a CRC code of the information bit sequence, wherein a length of the CRC code is J′; and
calculate a bit rate R of the information bit sequence based on an encoding length N, K, and J′ that are corresponding to the information bit sequence.

### Claim 14 (depends on 9)

The apparatus according to claim 9, wherein the processing unit is further configured to:
divide the information bit sequence level by level until the M segments are obtained;
determine information bits in two next-level segments of a present-level segment based on information bits in the present-level segment and an interleaving table of the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, the interleaving table of the present-level segment is a sequence obtained by sorting polarized channels of the next-level segments in descending order or ascending order of reliability, and a total quantity of polarized channels in the interleaving table of the present-level segment is equal to the encoding length corresponding to the present-level segment; and
in the M segments, separately add a corresponding CRC code based on the information bits in each segment, to obtain the to-be-sent information of the M segments.

### Claim 15 (depends on 14)

The apparatus according to claim 14, wherein when M is less than or equal to N/L1, the processing unit is further configured to:
divide the M segments level by level until the N/L1 segments are obtained; and
determine information bits in two next-level segments of a present-level segment based on information bits in the present-level segment and an interleaving table of the present-level segment to the next-level segments, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, the interleaving table of the present-level segment is a sequence obtained by sorting polarized channels of the next-level segments in descending order or ascending order of reliability, and a total quantity of polarized channels in the interleaving table of the present-level segment is equal to the encoding length corresponding to the present-level segment, to set a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 16 (depends on 5)

The apparatus according to claim 5, wherein the processing unit is further configured to:
alternately allocate the information bit sequence to the two next-level segments of the present-level segment in descending order of reliability based on a sequence value in the present-level interleaving table.

### Claim 17

A non-transitory computer-readable storage medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:
obtaining a basic sequence, wherein the basic sequence is a sequence obtained by sorting sequence numbers of polarized channels in descending order or ascending order of reliability, and a length of the basic sequence is L1;
determining, based on the basic sequence and a maximum encoding length L2 supported, M segments of an information bit sequence, wherein the M segments of an information bit sequence comprises N bits, wherein the information bit sequence before encoding comprises K bits;
separately encoding the M segments by using a first encoding scheme, to obtain the M encoded segments; and
polar encoding on the M encoded segments.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the determining M segments of an information bit sequence comprises:
determining, based on the maximum encoding length L2 supported by the receiving device, a quantity M of segments of the information bit sequence whose length is N after the encoding, wherein the quantity of bits in the information bit sequence before the encoding is K;
obtaining to-be-sent information of each of the M segments, wherein the to-be-sent information comprises at least one information bits and at least one cyclic redundancy check (CRC) bits; and
setting a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the obtaining to-be-sent information of the M segments of the information bit sequence comprises:
dividing the information bit sequence level by level until the M segments are obtained;
determining two next-level segments of a present-level segment based on a bit rate of the present-level segment and information bits in the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment; and
in the M segments, separately adding a corresponding CRC code based on the information bits in each segment, to obtain the to-be-sent information of each of the M segments.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein when M is less than or equal to N/L1, the method further comprises:
dividing the M segments level by level until the N/L1 segments are obtained; and
determining two next-level segments of a present-level segment based on a bit rate of the present-level segment and information bits in the present-level segment, wherein an encoding length corresponding to the next-level segment is half of an encoding length corresponding to the present-level segment, to set a value of a corresponding segment based on the basic sequence and the to-be-sent information of each segment.
