# US 2025/0219660 A1 · Method And Apparatus For LDPC Code Construction In Communications

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

- Number: US 2025/0219660 A1
- Document ID: US20250219660A1
- Status: Published application
- Kind: A1
- Application number: 18/398,186
- Filed: 2023-12-28
- Published: 2025-07-03
- Earliest claimed: 2023-12-28
- Assignees: Mediatek Inc.
- Applicants: MediaTek Inc.
- Inventors: Chiaming Lo; Linfang Wang
- Web page: https://patentgrep.com/patent/US20250219660A1

## CPC

- H03M 13/036: {Heuristic code construction methods, i.e. code construction or code search based on using trial-and-error}
- H03M 13/1177: {Regular LDPC codes with parity-check matrices wherein all rows and columns have the same row weight and column weight, respectively}
- H03M 13/116: {Quasi-cyclic LDPC [QC-LDPC] codes, i.e. the parity-check matrix being composed of permutation or circulant sub-matrices}
- H03M 13/1188: {wherein in the part with the double-diagonal at least one column has an odd column weight equal or greater than three}
- 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

Various solutions for improving LDPC with respect to an apparatus in mobile communications are described. The apparatus may determine a first base matrix corresponding to a parity-check matrix of LDPC. The apparatus may determine a plurality of second base matrices based on the first base matrix by shifting a plurality of elements of the first base matrix along at least one of column-direction and row-direction, wherein a value of each element is one. The apparatus may determine the parity-check matrix according to the first base matrix and the second base matrices.

## Claims

### Claim 1

A method, comprising:
determining, by a processor of an apparatus, a first base matrix corresponding to a parity-check matrix of Low-Density Parity-Check (LDPC) code;
determining, by the processor, a plurality of second base matrices based on the first base matrix by shifting a plurality of elements of the first base matrix along at least one of column-direction and row-direction, wherein a value of each element is one; and
determining, by the processor, the parity-check matrix according to the first base matrix and the second base matrices.

### Claim 2 (depends on 1)

The method of claim 1, wherein a size of the first base matrix and a size of each second base matrix are Z by Z, and a number of the second base matrices is (Z−2).

### Claim 3 (depends on 2)

The method of claim 2, wherein the first base matrix is U1, the second base matrices are U2 to Uz−1, and the step of determining the second base matrices based on the first base matrix by shifting the plurality of elements of the first base matrix along column-direction or row-direction further comprises:
determining, by the processor, the second base matrix U1 based on the first base matrix by:
shifting the element (0, y) of a first row of the first base matrix U1 to (0, ((y+i−2) % (Z−1))+1), i.e., shifting the element (0, y) to (0, y+1) repeatedly within (0, k), k=2: Z−1,
shifting the element (x, 0) of a first column of the first base matrix U1 to (((x+i−2) % (Z−1))+1, 0), i.e., shifting the element (x, 0) to (x+1, 0) repeatedly within (k, 0), k=2: Z−1, and
shifting the elements (x, y) of the first base matrix U1 outside the first row and the first column of the first base matrix to ((x+i−1) % (Z−1), (y+i−1) % (Z−1)).

### Claim 4 (depends on 3)

The method of claim 3, wherein the step of determining the parity-check matrix according to the first base matrix and the second base matrices further comprises:
determining, by the processor, an ordered index matrix by the second base matrices U2 to Uz−1, wherein the ordered index matrix includes a first parity matrix;
determining, by the processor, a mask matrix which has same size of the ordered index matrix, wherein the mask matrix includes a second parity matrix; and
determining, by the processor, the parity-check matrix according to the ordered index matrix, the mask matrix and a third parity matrix.

### Claim 5 (depends on 4)

The method of claim 4, wherein the sizes of the ordered index matrix and the mask matrix are Mb by (Kb+4), the sizes of the first parity matrix and the second parity matrix are 4 by 4, and the size of the third parity matrix is (Mb−4) by (Mb−4).

### Claim 6 (depends on 5)

The method of claim 5, wherein the Mb by (Kb+4) ordered index matrix is:
[
I
⁡
(
1
)
I
⁡
(
2
)
I
⁡
(
3
)
…
I
⁡
(
K
b
-
1
)
I
⁡
(
K
b
)
Z
-
1
1
0
0
I
⁡
(
1
)
+
1
I
⁡
(
2
)
+
1
I
⁡
(
3
)
+
1
…
I
⁡
(
K
b
-
1
)
+
1
I
⁡
(
K
b
)
+
1
1
1
1
0
I
⁡
(
1
)
+
2
I
⁡
(
2
)
+
2
I
⁡
(
3
)
+
2
…
I
⁡
(
K
b
-
1
)
+
2
I
⁡
(
K
b
)
+
2
0
0
1
1
I
⁡
(
1
)
+
3
I
⁡
(
2
)
+
3
I
⁡
(
3
)
+
3
…
I
⁡
(
K
b
-
1
)
+
3
I
⁡
(
K
b
)
+
3
Z
-
1
0
0
1
I
⁡
(
1
)
+
4
I
⁡
(
2
)
+
4
I
⁡
(
3
)
+
4
…
I
⁡
(
K
b
-
1
)
+
4
I
⁡
(
K
b
)
+
4
I
⁡
(
K
b
+
1
)
+
4
I
⁡
(
K
b
+
2
)
+
4
I
⁡
(
K
b
+
3
)
+
4
I
⁡
(
K
b
+
4
)
+
4
…
…
…
…
…
…
…
…
…
…
I
⁡
(
1
)
+
A
I
⁡
(
2
)
+
A
I
⁡
(
1
)
+
A
…
I
⁡
(
K
b
-
1
)
+
A
I
⁡
(
K
b
)
+
A
I
⁡
(
K
b
+
1
)
+
A
I
⁡
(
K
b
+
2
)
+
A
I
⁡
(
K
b
+
3
)
+
A
I
⁡
(
K
b
+
4
)
+
A
]
wherein A is (Mb−1), and I is an index matching function fulfilled the following conditions:
when i is not equal to j, then I (i) is not equal to I (j);
wherein each element m of the ordered index matrix represents corresponding second base matrix Um,
wherein the Mb by (Kb+4) mask matrix is:
[
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
…
…
…
…
…
…
…
…
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
]
wherein the (Mb−4) by (Mb−4) third parity matrix is an identity matrix.

### Claim 7 (depends on 6)

The method of claim 6, wherein the step of determining the parity-check matrix according to the ordered index matrix, the mask matrix and a third parity matrix further includes:
masking, by the processor, the ordered index matrix by the mask matrix; and
determining, by the processor, the parity-check matrix by combining the ordered index matrix with the third parity matrix.

### Claim 8 (depends on 7)

The method of claim 7, wherein an LDPC code length corresponding to the parity-check matrix is (Kb+Mb−p)×Z, an LDPC code rate corresponding to the parity-check matrix is Kb/(Kb+Mb−p) while p is a number of punctured Z.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
encoding, by the processor, a message by the parity-check matrix; and
transmitting, by the processor, the message to a network.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
receiving, by the processor, the message from a network; and
decoding, by the processor, a message by the parity-check matrix.

### Claim 11

An apparatus, comprising:
a transceiver which, during operation, wirelessly communicates with a network node; and
a processor communicatively coupled to the transceiver such that, during operation, the processor performs operations comprising:
determining a first base matrix corresponding to a parity-check matrix of Low-Density Parity-Check (LDPC) code;
determining a plurality of second base matrices based on the first base matrix by shifting a plurality of elements of the first base matrix along at least one of column-direction and row-direction, wherein a value of each element is one; and
determining the parity-check matrix according to the first base matrix and the second base matrices.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein a size of the first base matrix and a size of each second base matrix are Z by Z, and a number of the second base matrices is (Z−2).

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the first base matrix is U1, the second base matrices are U2 to Uz−1, and the operation of determining the second base matrices based on the first base matrix by shifting the plurality of elements of the first base matrix along column-direction or row-direction further comprises:
determining the second base matrix U1 based on the first base matrix by:
shifting the element (0, y) of a first row of the first base matrix U1 to (0, ((y+i−2) % (Z−1))+1), i.e., shifting the element (0, y) to (0, y+1) repeatedly within (0, k), k=2: Z−1,
shifting the element (x, 0) of a first column of the first base matrix U1 to (((x+i−2) % (Z−1))+1, 0), i.e., shifting the element (x, 0) to (x+1, 0) repeatedly within (k, 0), k=2: Z−1, and
shifting the elements (x, y) of the first base matrix U1 outside the first row and the first column of the first base matrix to ((x+i−1) % (Z−1), (y+i−1) % (Z−1)).

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the operation of determining the parity-check matrix according to the first base matrix and the second base matrices further comprises:
determining an ordered index matrix by the second base matrices U2 to Uz−1, wherein the ordered index matrix includes a first parity matrix;
determining a mask matrix which has same size of the ordered index matrix, wherein the mask matrix includes a second parity matrix; and
determining the parity-check matrix according to the ordered index matrix, the mask matrix and a third parity matrix.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the sizes of the ordered index matrix and the mask matrix are Mb by (Kb+4), the sizes of the first parity matrix and the second parity matrix are 4 by 4, and the size of the third parity matrix is (Mb−4) by (Mb−4).

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the Mb by (Kb+4) ordered index matrix is:
[
I
⁡
(
1
)
I
⁡
(
2
)
I
⁡
(
3
)
…
I
⁡
(
K
b
-
1
)
I
⁡
(
K
b
)
Z
-
1
1
0
0
I
⁡
(
1
)
+
1
I
⁡
(
2
)
+
1
I
⁡
(
3
)
+
1
…
I
⁡
(
K
b
-
1
)
+
1
I
⁡
(
K
b
)
+
1
1
1
1
0
I
⁡
(
1
)
+
2
I
⁡
(
2
)
+
2
I
⁡
(
3
)
+
2
…
I
⁡
(
K
b
-
1
)
+
2
I
⁡
(
K
b
)
+
2
0
0
1
1
I
⁡
(
1
)
+
3
I
⁡
(
2
)
+
3
I
⁡
(
3
)
+
3
…
I
⁡
(
K
b
-
1
)
+
3
I
⁡
(
K
b
)
+
3
Z
-
1
0
0
1
I
⁡
(
1
)
+
4
I
⁡
(
2
)
+
4
I
⁡
(
3
)
+
4
…
I
⁡
(
K
b
-
1
)
+
4
I
⁡
(
K
b
)
+
4
I
⁡
(
K
b
+
1
)
+
4
I
⁡
(
K
b
+
2
)
+
4
I
⁡
(
K
b
+
3
)
+
4
I
⁡
(
K
b
+
4
)
+
4
…
…
…
…
…
…
…
…
…
…
I
⁡
(
1
)
+
A
I
⁡
(
2
)
+
A
I
⁡
(
1
)
+
A
…
I
⁡
(
K
b
-
1
)
+
A
I
⁡
(
K
b
)
+
A
I
⁡
(
K
b
+
1
)
+
A
I
⁡
(
K
b
+
2
)
+
A
I
⁡
(
K
b
+
3
)
+
A
I
⁡
(
K
b
+
4
)
+
A
]
wherein A is (Mb−1), and I is an index matching function fulfilled the following condition:
when i is not equal to j, then I (i) is not equal to I (j);
wherein each element m of the ordered index matrix represents corresponding second base matrix Um,
wherein the Mb by (Kb+4) mask matrix is:
[
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
0
0
0
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
…
…
…
…
…
…
…
…
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
…
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
1
⁢
or
⁢
0
]
wherein the (Mb−4) by (Mb−4) third parity matrix is an identity matrix.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the operation of determining the parity-check matrix according to the ordered index matrix, the mask matrix and a third parity matrix further includes:
masking the ordered index matrix by the mask matrix; and
determining the parity-check matrix by combining the ordered index matrix with the third parity matrix.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein an LDPC code length corresponding to the parity-check matrix is (Kb+Mb−p)×Z, an LDPC code rate corresponding to the parity-check matrix is Kb/(Kb+Mb−p) while p is a number of punctured Z.

### Claim 19 (depends on 11)

The apparatus of claim 11, wherein, during operation, the processor further performs operations comprising:
encoding a message by the parity-check matrix; and
transmitting, via the transceiver, the message to the network node.

### Claim 20 (depends on 11)

The apparatus of claim 11, wherein, during operation, the processor further performs operations comprising:
receiving, via the transceiver, a message from the network node; and
decoding the message by the parity-check matrix.
