| CPC H04L 1/0052 (2013.01) | 20 Claims |

|
1. A method comprising:
obtaining to-be-encoded information and a mother code length N, wherein the to-be-encoded information comprises K information bits, and K and N are positive integers;
determining, based on K and N, a set I corresponding to subchannels of the K information bits, wherein information bits corresponding to subchannel sequence numbers in I are distributed in X outer-code subcodes, the X outer-code subcodes comprise X1 first-type outer-code subcodes, quantities of information bits in the X1 first-type outer-code subcodes are P1, P2, . . . , and PXi, respectively, Pi(i=1, 2, . . . , X1) is one of K1, K2, . . . , and Km, K1, K2, . . . , and Km are positive integers greater than a first threshold LB and less than a second threshold HB, m is an integer greater than or equal to 1 and less than (HB−LB−1), LB+1<HB, HB is less than or equal to a length B of an outer-code subcode, X, HB and B are positive integers, and LB is an integer greater than or equal to o; and
performing encoding on the to-be-encoded information based on the set I.
|