ENCODING METHOD, DECODING METHOD, APPARATUS AND DEVICE
FIG10 is a structural diagram of a physical device according to an embodiment of this application   FIG9 is a structural diagram of a virtual device according to an embodiment of this application
As shown in FIG10, this application further provides a communications device 1000. The communications device may be a base station or a terminal, or a DSP, an ASIC, or a chip that implements a related decoding function. The communications device 1000 further includes:  It should be noted that an device 900 shown in FIG9 may implement processes such as steps 210 to 230. A first determining unit 910 is configured to perform step 210, a second determining unit 920 is configured to perform step 220, an encoding unit 930 is configured to perform an encoding process in step 230, and a processing unit 940 is configured to perform a shortening or puncturing process in step 230. The device 900 may be a base station BS or a mobile station MS, and the device may alternatively be an application-specific integrated circuit (English: Application Specific Integrated Circuit, ASIC for short), a digital signal processor (English: Digital Signal Processor, DSP for short), a system-on-a-chip, or software that implements related functions. If the device 900 is the ASIC, the DSP, or the system-on-a-chip, the components 910 to 940 may be circuits or parts. If the device 900 is the software, the components 910 to 940 may be program code.
structural diagram
1002
memory
900
device
1004
bus
920
second determining unit
940
processing unit
10
andFIG.
1001
processor
1000
communications device
1003
part
930
encoding unit
910
components
['11. A rate matching device, applied to a wireless network, wherein the device comprises: a first determining unit, configured to determine a transmission code rate R, wherein R=K/M, K is an information bit length, M is a target code length, and K and M are positive integers; a second determining unit, configured to: when the transmission code rate R is greater than a first code rate threshold, use a shortening mode for a bit sequence whose length is N, or when the transmission code rate R is less than the first code rate threshold, use a puncturing mode for a bit sequence whose length is N, wherein N is a mother code length, and N is a positive integer; an encoding unit, configured to polar encode the bit sequence whose length is N, to obtain a first encoded sequence whose length is N; and a processing unit, configured to shorten or puncture the first encoded sequence, to obtain a second encoded sequence whose length is M.', '23. A communications device, comprising: a memory, a processor, and a computer program that is stored on the memory and run on the processor, wherein when executing the program, the processor executes the method according to any one of claims 1 to']