主权项 |
1. An apparatus for processing data in a communication system, comprising:
a processor and a memory; wherein the processor, by executing program instructions stored in the memory, is configured to: perform segmentation on a data block to obtain a plurality of first blocks, wherein a difference in bit length between any two first blocks is not more than one bit; for each first block, add one or more consecutive padding bits to obtain a second block of bit length K if the bit length of the first block is less than K, so as to obtain a plurality of second blocks corresponding to the first blocks, wherein K is a quantity of information bits of a polar code, and wherein a value of each padding bit is a preset value of 0 or 1; add N−K consecutive bits to each of the second blocks to obtain a plurality of third blocks, wherein the N−K consecutive bits have a fixed preset value of 0 or 1, and wherein N equals 2̂n, n is an integer larger than 0, and N−K≧0; and perform polar encoding on the third blocks. |