摘要 |
A method and system for encoding the low density generator matrix code are disclosed. The encoding method includes the following steps: S102, constructing a generator matrix G ldgc with L rows and N+L-K columns, wherein a phalanx G ldgc (1:L, 1:L) which consists of L rows and the first L columns of the generator matrix G ldgc is an upper triangular matrix or a lower triangular matrix, the K, L and N being positive integers, and K<L<N; S104, adding L-K known bits to the K-length information bit sequence that needs to be encoded to generate an information bit sequence m which has a length of L; S106, according to I×G ldgc (1:L, 1:L)=m, using the phalanx G ldgc (1:L, 1:L) which consists of L rows and the first L columns of the generator matrix G ldgc and the information bit sequence m which has a length of L, to generate an intermediate variable I, and according to C = I×G ldgc , using the generator matrix G ldgc to encode an intermediate variable I, to generate an encoding sequence which has a length of N+L-K; and S108, deleting L-K known bits from the encoding sequence which has a length of N+L-K, to generate an encoding sequence which has a length of N. |