CN111490797B - Encoding method, device and equipment - Google Patents

Encoding method, device and equipment Download PDF

Info

Publication number
CN111490797B
CN111490797B CN201910087281.1A CN201910087281A CN111490797B CN 111490797 B CN111490797 B CN 111490797B CN 201910087281 A CN201910087281 A CN 201910087281A CN 111490797 B CN111490797 B CN 111490797B
Authority
CN
China
Prior art keywords
row
position set
bits
numbers
sequence number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910087281.1A
Other languages
Chinese (zh)
Other versions
CN111490797A (en
Inventor
张朝阳
郑灯
秦康剑
张韵梅
于天航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910087281.1A priority Critical patent/CN111490797B/en
Publication of CN111490797A publication Critical patent/CN111490797A/en
Application granted granted Critical
Publication of CN111490797B publication Critical patent/CN111490797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/13Linear codes

Landscapes

  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Error Detection And Correction (AREA)

Abstract

本申请实施例提供一种编码方法、装置及设备,该方法包括:获取N个待编码比特,所述N个待编码比特中包括K个信息比特和N‑K个固定比特,N为正整数,所述K为正整数,所述K小于或等于所述N;获取所述N个待编码比特的生成矩阵;根据所述生成矩阵中行向量之间的线性无关度量,确定所述信息比特的位置;根据所述信息比特的位置,对所述待编码比特进行编码。提高了编码的可靠性。

Figure 201910087281

Embodiments of the present application provide an encoding method, apparatus, and device. The method includes: acquiring N bits to be encoded, where the N bits to be encoded include K information bits and N-K fixed bits, where N is a positive integer , the K is a positive integer, and the K is less than or equal to the N; obtain the generator matrix of the N bits to be coded; according to the linear independence metric between the row vectors in the generator matrix, determine the position; encode the to-be-coded bit according to the position of the information bit. Improved reliability of encoding.

Figure 201910087281

Description

编码方法、装置及设备Coding method, device and equipment

技术领域technical field

本申请涉及通信技术领域,尤其涉及一种编码方法、装置及设备。The present application relates to the field of communication technologies, and in particular, to an encoding method, apparatus, and device.

背景技术Background technique

在通信技术领域,通信设备(例如终端设备、基站等)可以通过极化码(Polar码)的方式进行信道编码和译码。In the field of communication technology, communication devices (such as terminal devices, base stations, etc.) can perform channel coding and decoding by means of polar codes (Polar codes).

在现有技术中,通常采用基于子信道可靠性的方式构造极化码,基于子信道可靠性的构造方式包括高斯近似(Gaussian Approximation,GA)方式、极化重量(PolarizationWeight,PW)方式等。然而,上述构造极化码的方式可以使得串行抵消(SuccessiveCancellation,SC)译码下的性能最优,而无法使得串行抵消列表(SuccessiveCancellation List,SCL)译码和分阶统计译码(Ordered Statistics Decoding,OSD)译码的性能最优,导致现有的编码方式的性能较差。In the prior art, a method based on sub-channel reliability is generally used to construct polar codes, and the construction methods based on sub-channel reliability include a Gaussian Approximation (GA) method, a Polarization Weight (Polarization Weight, PW) method, and the like. However, the above-mentioned way of constructing polar codes can make the performance of the serial cancellation (Successive Cancellation, SC) decoding optimal, but cannot make the serial cancellation list (Successive Cancellation List, SCL) decoding and the ordered statistical decoding (Ordered Statistical decoding) Statistics Decoding, OSD) decoding performance is the best, resulting in poor performance of the existing encoding methods.

发明内容SUMMARY OF THE INVENTION

本申请提供一种编码方法、装置及设备,提高了编码的可靠性。The present application provides an encoding method, apparatus and device, which improve the reliability of encoding.

第一方面,本申请实施例提供一种编码方法,该方法包括:获取N个待编码比特,N个待编码比特中包括K个信息比特和N-K个固定比特,N为正整数,K为正整数,K小于或等于N;获取N个待编码比特的生成矩阵;根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置;根据信息比特的位置,对待编码比特进行编码。In a first aspect, an embodiment of the present application provides an encoding method, the method includes: obtaining N bits to be encoded, where the N bits to be encoded include K information bits and N-K fixed bits, N is a positive integer, and K is a positive Integer, K is less than or equal to N; obtain the generator matrix of N bits to be coded; determine the position of the information bit according to the linear independence measure between the row vectors in the generator matrix; according to the position of the information bit, encode the bit to be coded.

在上述过程中,根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置,可以使得信息比特的位置对应的生成矩阵中的行向量之间的线性无关的可能性较大,进而使得SCL译码错误的概率和OSD译码错误的概率较小,进而提高了编码的可靠性。In the above process, the position of the information bit is determined according to the linear independence measure between the row vectors in the generator matrix, so that the possibility of linear independence between the row vectors in the generator matrix corresponding to the position of the information bit is high, thereby making The probability of SCL decoding error and the probability of OSD decoding error are small, thereby improving the reliability of encoding.

在一种可能的实施方式中,线性无关度量为线性无关的可能性。In one possible implementation, the linearly independent measure is the likelihood of being linearly independent.

在一种可能的实施方式中,可以通过如下可行的实现方式根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置:初始化第一位置集合,初始化的第一位置集合中包括生成矩阵中行重量最大的行向量的行序号;初始化第二位置集合,初始化的第二位置集合中包括至少一个行序号;根据生成矩阵中第二位置集合中每个行序号对应的行向量,与生成矩阵中第一位置集合中的行序号对应的行向量之间的线性无关度量,确定信息比特的位置。In a possible implementation manner, the position of the information bit can be determined according to the linear independence metric between the row vectors in the generator matrix in the following feasible implementation manner: initialize a first position set, and the initialized first position set includes the generator matrix The row sequence number of the row vector with the largest row weight in the middle row; initialize the second position set, and the initialized second position set includes at least one row sequence number; according to the row vector corresponding to each row sequence number in the second position set in the generator matrix, and the generator matrix The linear independence metric between the row vectors corresponding to the row sequence numbers in the first position set in , determines the position of the information bit.

在上述过程中,初始化的第一位置集合中包括生成矩阵中行重量最大的行向量的行序号,且依次将第二位置集合中与第一位置集合中的行序号对应的行向量之间的线性无关的可能性最大的行向量对应的行序号移动至第一位置集合,这样,可以使得第一位置集合中的行序号对应的生成矩阵中的行向量的码重较大,且使得第一位置集合中的行序号对应的生成矩阵中的行向量之间的线性无关的可能性最大,即,使得生成矩阵中信息比特位对应的行向量之间的线性无关的可能性最大,进而可以使得在SCL译码错误概率较小以及使得OSD译码错误概率较小,进而提高了编码的可靠性。In the above process, the initialized first position set includes the row sequence number of the row vector with the largest row weight in the generator matrix, and the linear relationship between the row vectors corresponding to the row sequence numbers in the first position set in the second position set and the row sequence number in the first position set is sequentially calculated. The row number corresponding to the row vector with the greatest possibility of being irrelevant is moved to the first position set, so that the code weight of the row vector in the generator matrix corresponding to the row number in the first position set can be made larger, and the first position can be made larger. The possibility of linear independence between the row vectors in the generator matrix corresponding to the row numbers in the set is the largest, that is, the possibility of linear independence between the row vectors corresponding to the information bits in the generator matrix is the largest, so that the The SCL decoding error probability is small and the OSD decoding error probability is small, thereby improving the reliability of encoding.

在一种可能的实施方式中,初始化的第二位置集合中包括可靠度最高的K+L个子信道对应的行序号;其中,L为串行抵消列表SCL译码的保留路径数量,保留路径数量为SCL译码中每步译码保留的最大路径数量。In a possible implementation manner, the initialized second location set includes row numbers corresponding to the K+L sub-channels with the highest reliability; wherein, L is the number of reserved paths for serial cancellation list SCL decoding, and the number of reserved paths Maximum number of paths reserved for each decoding step in SCL decoding.

在上述过程中,由于第二位置集合中包括可靠度最高的K+L个子信道对应的行序号,且第一位置集合中的行序号是在初始化的第二位置集合中选择的,因此,可以使得第一位置集合中的行序号对应的子信道的可靠度较高,进而使得信息比特位对应的子信道的可靠度较高,使得编码的可靠性较高。In the above process, since the second location set includes the row numbers corresponding to the K+L sub-channels with the highest reliability, and the row numbers in the first location set are selected in the initialized second location set, therefore, it is possible to The reliability of the sub-channels corresponding to the row sequence numbers in the first position set is made high, and the reliability of the sub-channels corresponding to the information bits is made high, so that the reliability of coding is high.

在一种可能的实施方式中,K+L个子信道为N个子信道中可靠度最高的K+L个子信道。In a possible implementation manner, the K+L subchannels are the K+L subchannels with the highest reliability among the N subchannels.

在一种可能的实施方式中,K+L个子信道为N-X个子信道中可靠度最高的K+L个子信道,X为初始化的第一位置集合中包括的行序号的个数,N-X个子信道为N个子信道中除第一位置集合中行序号对应的子信道外的子信道。这样,可以使得初始化的第一位置集合和初始化的第二位置集合中包括的行序号不重复,进而避免执行不必要的操作。In a possible implementation, the K+L sub-channels are the K+L sub-channels with the highest reliability among the N-X sub-channels, X is the number of row sequence numbers included in the initialized first position set, and the N-X sub-channels are Subchannels in the N subchannels other than the subchannels corresponding to the row numbers in the first location set. In this way, the row sequence numbers included in the initialized first position set and the initialized second position set may not be repeated, thereby avoiding unnecessary operations.

在一种可能的实施方式中,生成矩阵为待编码比特的极化码矩阵,极化码矩阵包括N行和N列;初始化的第一位置集合包括生成矩阵中行重大于第一汉明距离的行的序号;其中,第一汉明距离为信息比特和固定比特按照不同方式排列时的最小汉明距离中的最大值,信息比特和固定比特按照一种方式排列对应一个最小汉明距离,信息比特和固定比特按照一种方式排列时的最小汉明距离为,信息比特和固定比特按照该方式排列时生成矩阵中信息比特位对应的行的最小行重。In a possible implementation manner, the generator matrix is a polar code matrix of bits to be coded, and the polar code matrix includes N rows and N columns; the initialized first position set includes the generator matrix whose row weight is greater than the first Hamming distance. The serial number of the row; wherein, the first Hamming distance is the maximum value of the minimum Hamming distances when the information bits and the fixed bits are arranged in different ways, and the information bits and the fixed bits are arranged in one way corresponding to a minimum Hamming distance, and the information The minimum Hamming distance when the bits and the fixed bits are arranged in one way is the minimum row weight of the row corresponding to the information bits in the generated matrix when the information bits and the fixed bits are arranged in this way.

在上述过程中,可以使得初始化的第一位置集合中包括的行序号对应的行的行重量较大,进而使得编码性能较高。In the above process, the row weight of the row corresponding to the row sequence number included in the initialized first position set can be made larger, thereby making the encoding performance higher.

在一种可能的实施方式中,初始化的第二位置集合中包括生成矩阵中行重等于第一汉明距离的行的序号。这样,可以使得初始化的第二位置集合中包括的行序号对应的行的行重量较大,使得选择到第一位置集合中的行序号对应的行的行重量也较高,进而使得编码性能较高。In a possible implementation manner, the initialized second position set includes the serial number of the row in the generator matrix whose row weight is equal to the first Hamming distance. In this way, the row weight of the row corresponding to the row sequence number included in the initialized second position set can be made larger, so that the row weight of the row corresponding to the row sequence number selected in the first position set is also higher, thereby making the coding performance better. high.

在一种可能的实施方式中,初始化的第二位置集合包括生成矩阵中的全部行序号;或者,初始化的第二位置集合包括生成矩阵中除初始化的第一位置集合中的行序号之外的行序号。In a possible implementation manner, the initialized second position set includes all row numbers in the generator matrix; or, the initialized second position set includes all row numbers in the generator matrix except for the row numbers in the initialized first position set line number.

在一种可能的实施方式中,根据生成矩阵中第二位置集合中每个行序号对应的行向量,与生成矩阵中第一位置集合中的行序号对应的行向量之间的线性无关度量,确定信息比特的位置,包括:In a possible implementation manner, according to the linear independence measure between the row vector corresponding to each row number in the second position set in the generator matrix and the row vector corresponding to the row number in the first position set in the generator matrix, Determine the location of information bits, including:

执行第一操作,第一操作包括:根据生成矩阵中当前第二位置集合中每个行序号对应的行向量,与生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关度量,在当前第二位置集合中确定目标行序号;在当前第二位置集合中,目标行序号对应生成矩阵中的行向量与生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关度量最大;Perform a first operation, the first operation includes: according to the row vector corresponding to each row sequence number in the current second position set in the generator matrix, and the row vector corresponding to the row sequence number in the current first position set in the generator matrix. Irrelevant metric, the target row number is determined in the current second position set; in the current second position set, the target row number corresponds to the row vector in the generator matrix and the row vector corresponding to the row number in the current first position set in the generator matrix The linearly independent measure between is the largest;

执行第二操作,第二操作包括:将目标行序号添加至当前第一位置集合,得到新的第一位置集合,并在当前第二位置集合中删除目标行序号,得到新的第二位置集合;Performing a second operation, the second operation includes: adding the target row sequence number to the current first position set to obtain a new first position set, and deleting the target row sequence number in the current second position set to obtain a new second position set ;

重复执行第一操作和第二操作,直至新的第一位置集合中包括K个行序号时,将当前第一位置集合中的行序号确定为信息比特的位置。The first operation and the second operation are repeatedly performed until the new first position set includes K row numbers, and the row number in the current first position set is determined as the position of the information bit.

在上述过程中,可以保证将第二位置集合中与第一位置集合中的行序号对应的行向量的线性无关度量最大的行序号添加至第一位置集合,使得第一位置集合中的行序号对应的行向量的线性无关度量最大,使得编码的可靠性较高。In the above process, it can be ensured that the row sequence number with the largest linear independence metric of the row vector corresponding to the row sequence number in the first position set in the second position set is added to the first position set, so that the row sequence number in the first position set is The linear independence measure of the corresponding row vector is the largest, which makes the coding reliability higher.

在一种可能的实施方式中,将目标行序号添加至当前第一位置集合,并在当前第二位置集合中删除目标行序号,包括:在Y大于Z时,在Y个目标行序号中确定Z个目标行序号,Y为目标行序号的个数,Z=K-T,T为当前第一位置集合中包括的行序号的个数,Y为大于1的整数,Z为小于或等于K的正整数;将Z个目标行序号添加至当前第一位置集合,并在当前第二位置集合中删除Z个目标行序号。In a possible implementation manner, adding the target row sequence number to the current first position set, and deleting the target row sequence number from the current second position set, includes: when Y is greater than Z, determining among the Y target row sequence numbers Z target row numbers, Y is the number of target row numbers, Z=K-T, T is the number of row numbers included in the current first position set, Y is an integer greater than 1, Z is a positive value less than or equal to K Integer; add Z target row numbers to the current first position set, and delete Z target row numbers from the current second position set.

在上述过程中,可以使得第一位置集合中包括的行序号的个数最大为K,避免第一位置集合中包括的行序号的个数大于K。In the above process, the maximum number of row sequence numbers included in the first location set can be K, so as to prevent the number of row sequence numbers included in the first location set from being larger than K.

在一种可能的实施方式中,Z个目标行序号为Y个目标行序号中可靠度最高的Z个子信道对应的行序号;或者,Z个目标行序号为Y个目标行序号中行序号最大的Z个行序号;或者,Z个目标行序号为Y个目标行序号中行序号最小的Z个行序号。In a possible implementation manner, the Z target row numbers are the row numbers corresponding to the Z sub-channels with the highest reliability among the Y target row numbers; or, the Z target row numbers are the row numbers with the largest row number among the Y target row numbers. Z line numbers; or, the Z target line numbers are the Z line numbers with the smallest line numbers among the Y target line numbers.

在一种可能的实施方式中,信息比特包括循环冗余校验CRC比特和/或奇偶校验PC比特。In a possible implementation, the information bits include cyclic redundancy check CRC bits and/or parity check PC bits.

第二方面,本申请实施例提供一种编码装置,包括:In a second aspect, an embodiment of the present application provides an encoding device, including:

第一获取模块,用于获取N个待编码比特,所述N个待编码比特中包括K个信息比特和N-K个固定比特,N为正整数,所述K为正整数,所述K小于或等于所述N;The first acquisition module is used to acquire N bits to be encoded, the N bits to be encoded include K information bits and N-K fixed bits, N is a positive integer, the K is a positive integer, and the K is less than or is equal to said N;

第二获取模块,用于获取所述N个待编码比特的生成矩阵;A second acquisition module, configured to acquire the generator matrix of the N bits to be encoded;

确定模块,用于根据所述生成矩阵中行向量之间的线性无关度量,确定所述信息比特的位置;a determining module, configured to determine the position of the information bit according to the linearly independent metric between the row vectors in the generator matrix;

编码模块,用于根据所述信息比特的位置,对所述待编码比特进行编码。An encoding module, configured to encode the bits to be encoded according to the positions of the information bits.

在一种可能的实施方式中,所述线性无关度量为线性无关的可能性。In a possible implementation, the linearly independent metric is the likelihood of being linearly independent.

在一种可能的实施方式中,所述确定模块具体用于:In a possible implementation manner, the determining module is specifically used for:

初始化第一位置集合,初始化的第一位置集合中包括所述生成矩阵中行重量最大的行向量的行序号;Initializing the first position set, the initialized first position set includes the row sequence number of the row vector with the largest row weight in the generator matrix;

初始化第二位置集合,初始化的第二位置集合中包括至少一个行序号;initializing a second location set, where the initialized second location set includes at least one row sequence number;

根据所述生成矩阵中所述第二位置集合中每个行序号对应的行向量,与所述生成矩阵中所述第一位置集合中的行序号对应的行向量之间的线性无关度量,确定所述信息比特的位置。According to the linear independence measure between the row vector corresponding to each row number in the second position set in the generator matrix and the row vector corresponding to the row number in the first position set in the generator matrix, determine the location of the information bits.

在一种可能的实施方式中,所述初始化的第二位置集合中包括可靠度最高的K+L个子信道对应的行序号;In a possible implementation manner, the initialized second location set includes row sequence numbers corresponding to the K+L sub-channels with the highest reliability;

其中,所述L为串行抵消列表SCL译码的保留路径数量,所述保留路径数量为所述SCL译码中每步译码保留的最大路径数量。Wherein, the L is the number of reserved paths for serial cancellation list SCL decoding, and the reserved path number is the maximum number of paths reserved for each step of decoding in the SCL decoding.

在一种可能的实施方式中,所述K+L个子信道为N个子信道中可靠度最高的K+L个子信道;或者,In a possible implementation manner, the K+L subchannels are the K+L subchannels with the highest reliability among the N subchannels; or,

所述K+L个子信道为N-X个子信道中可靠度最高的K+L个子信道,所述X为所述初始化的第一位置集合中包括的行序号的个数,所述N-X个子信道为所述N个子信道中除所述第一位置集合中行序号对应的子信道外的子信道。The K+L sub-channels are the K+L sub-channels with the highest reliability among the N-X sub-channels, the X is the number of row sequence numbers included in the initialized first position set, and the N-X sub-channels are all the sub-channels. Subchannels in the N subchannels except the subchannels corresponding to the row numbers in the first location set.

在一种可能的实施方式中,所述生成矩阵为所述待编码比特的极化码矩阵,所述极化码矩阵包括N行和N列;In a possible implementation manner, the generator matrix is a polar code matrix of the to-be-coded bits, and the polar code matrix includes N rows and N columns;

所述初始化的第一位置集合包括所述生成矩阵中行重大于第一汉明距离的行的序号;其中,所述第一汉明距离为所述信息比特和所述固定比特按照不同方式排列时的最小汉明距离中的最大值,所述信息比特和所述固定比特按照一种方式排列对应一个最小汉明距离,所述信息比特和所述固定比特按照一种方式排列时的最小汉明距离为,所述信息比特和所述固定比特按照该方式排列时所述生成矩阵中信息比特位对应的行的最小行重。The initialized first position set includes the serial number of the row whose row weight is greater than the first Hamming distance in the generator matrix; wherein, the first Hamming distance is when the information bits and the fixed bits are arranged in different ways. The maximum value of the minimum Hamming distances of The distance is the minimum row weight of the row corresponding to the information bit in the generator matrix when the information bits and the fixed bits are arranged in this manner.

在一种可能的实施方式中,所述初始化的第二位置集合中包括所述生成矩阵中行重等于所述第一汉明距离的行的序号。In a possible implementation manner, the initialized second position set includes a sequence number of a row in the generator matrix whose row weight is equal to the first Hamming distance.

在一种可能的实施方式中,所述初始化的第二位置集合包括所述生成矩阵中的全部行序号;或者,In a possible implementation manner, the initialized second position set includes all row numbers in the generator matrix; or,

所述初始化的第二位置集合包括所述生成矩阵中除所述初始化的第一位置集合中的行序号之外的行序号。The initialized second set of positions includes row numbers in the generator matrix other than row numbers in the initialized first set of positions.

在一种可能的实施方式中,所述确定模块用于:In a possible implementation manner, the determining module is used for:

执行第一操作,所述第一操作包括:根据所述生成矩阵中当前第二位置集合中每个行序号对应的行向量,与所述生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关度量,在当前第二位置集合中确定目标行序号;在当前第二位置集合中,所述目标行序号对应所述生成矩阵中的行向量与所述生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关度量最大;Performing a first operation, the first operation includes: according to the row vector corresponding to each row sequence number in the current second position set in the generator matrix, and the row sequence number corresponding to the row sequence number in the current first position set in the generator matrix The linear independence measure between row vectors, the target row number is determined in the current second position set; in the current second position set, the target row number corresponds to the row vector in the generator matrix and the current row vector in the generator matrix. The linear independence metric between the row vectors corresponding to the row numbers in the first position set is the largest;

执行第二操作,所述第二操作包括:将所述目标行序号添加至当前第一位置集合,得到新的第一位置集合,并在当前第二位置集合中删除所述目标行序号,得到新的第二位置集合;Performing a second operation, the second operation includes: adding the target row sequence number to the current first position set to obtain a new first position set, and deleting the target row sequence number in the current second position set to obtain a new set of second positions;

重复执行所述第一操作和所述第二操作,直至新的第一位置集合中包括K个行序号时,将当前第一位置集合中的行序号确定为所述信息比特的位置。The first operation and the second operation are repeatedly performed until the new first position set includes K row numbers, and the row number in the current first position set is determined as the position of the information bit.

在一种可能的实施方式中,所述确定模块用于:In a possible implementation manner, the determining module is used for:

在Y大于Z时,在所述Y个目标行序号中确定Z个目标行序号,所述Y为所述目标行序号的个数,所述Z=K-T,所述T为当前第一位置集合中包括的行序号的个数,所述Y为大于1的整数,所述Z为小于或等于所述K的正整数;When Y is greater than Z, Z target row numbers are determined among the Y target row numbers, where Y is the number of target row numbers, Z=K-T, and T is the current first position set The number of row numbers included in the Y, the Y is an integer greater than 1, and the Z is a positive integer less than or equal to the K;

将所述Z个目标行序号添加至当前第一位置集合,并在当前第二位置集合中删除所述Z个目标行序号。The Z target row sequence numbers are added to the current first position set, and the Z target row sequence numbers are deleted from the current second position set.

在一种可能的实施方式中,所述Z个目标行序号为所述Y个目标行序号中可靠度最高的Z个子信道对应的行序号;或者,In a possible implementation manner, the Z target row numbers are row numbers corresponding to the Z sub-channels with the highest reliability among the Y target row numbers; or,

所述Z个目标行序号为所述Y个目标行序号中行序号最大的Z个行序号;或者,The Z target row sequence numbers are the Z row sequence numbers with the largest row sequence numbers in the Y target row sequence numbers; or,

所述Z个目标行序号为所述Y个目标行序号中行序号最小的Z个行序号。The Z target row sequence numbers are the Z row sequence numbers with the smallest row sequence numbers among the Y target row sequence numbers.

在一种可能的实施方式中,所述信息比特包括循环冗余校验CRC比特和/或奇偶校验PC比特。In a possible implementation, the information bits include cyclic redundancy check CRC bits and/or parity check PC bits.

第三方面,本申请实施例提供一种编码装置,包括:存储器、处理器以及计算机程序,所述计算机程序存储在所述存储器中,所述处理器运行所述计算机程序执行如第一方面任一项所述的方法。In a third aspect, an embodiment of the present application provides an encoding apparatus, including: a memory, a processor, and a computer program, where the computer program is stored in the memory, and the processor runs the computer program to execute any of the methods described in the first aspect. one of the methods described.

第四方面,本申请实施例提供一种存储介质,其特征在于,所述存储介质包括计算机程序,所述计算机程序用于实现如第一方面任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium includes a computer program, and the computer program is used to implement the method according to any one of the first aspect.

本申请提供的编码方法、装置及设备,先获取N个待编码比特,N个待编码比特中包括K个信息比特和N-K个固定比特,N为正整数,K为正整数,K小于或等于N;获取N个待编码比特的生成矩阵;根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置;根据信息比特的位置,对待编码比特进行编码。在上述过程中,根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置,可以使得信息比特的位置对应的生成矩阵中的行向量之间的线性无关的可能性较大,进而使得SCL译码错误的概率和OSD译码错误的概率较小,进而提高了编码的可靠性。In the encoding method, device and device provided by the present application, N bits to be encoded are obtained first. The N bits to be encoded include K information bits and N-K fixed bits, where N is a positive integer, K is a positive integer, and K is less than or equal to N; obtain a generator matrix of N bits to be encoded; determine the position of the information bit according to the linear independence measure between row vectors in the generator matrix; encode the bit to be encoded according to the position of the information bit. In the above process, the position of the information bit is determined according to the linear independence measure between the row vectors in the generator matrix, so that the possibility of linear independence between the row vectors in the generator matrix corresponding to the position of the information bit is high, thereby making The probability of SCL decoding error and the probability of OSD decoding error are small, thereby improving the reliability of encoding.

附图说明Description of drawings

图1为本申请实施例提供的通信系统的架构图;FIG. 1 is an architectural diagram of a communication system provided by an embodiment of the present application;

图2为本申请实施例提供的信道传输流程图;2 is a flow chart of channel transmission provided by an embodiment of the present application;

图3为本申请提供的编码方法的流程示意图;Fig. 3 is the schematic flowchart of the encoding method provided by the application;

图4为本申请提供的一种确定信息比特的位置的流程示意图;4 is a schematic flowchart of determining the position of an information bit provided by the present application;

图5为本申请提供的一种仿真示意图;Fig. 5 is a kind of simulation schematic diagram that this application provides;

图6为本申请提供的一种仿真示意图;Fig. 6 is a kind of simulation schematic diagram that this application provides;

图7为本申请提供的一种仿真示意图;Fig. 7 is a kind of simulation schematic diagram that this application provides;

图8为本申请实施例提供的编码装置的结构示意图;8 is a schematic structural diagram of an encoding device provided by an embodiment of the present application;

图9为本申请实施例提供的编码装置的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of an encoding apparatus provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例可以应用于各种采用Polar编码的领域,例如:数据存储领域、光网络通信领域,无线通信领域等等。其中,本申请实施例提及的无线通信系统包括但不限于:窄带物联网系统(Narrow Band-Internet of Things,NB-IoT)、全球移动通信系统(GlobalSystem for Mobile Communications,GSM)、增强型数据速率GSM演进系统(Enhanced Datarate for GSM Evolution,EDGE)、宽带码分多址系统(Wideband Code Division MultipleAccess,WCDMA)、码分多址2000系统(Code Division Multiple Access,CDMA2000)、时分同步码分多址系统(Time Division-Synchronization Code Division Multiple Access,TD-SCDMA),长期演进系统(Long Term Evolution,LTE)以及下一代5G移动通信系统的三大应用场景增强型移动宽带(enhanced Mobile Broad Band,eMBB)、超高可靠与低延迟的通信(Ultra Reliable Low Latency Communication,URLLC)以及大规模机器通信(massiveMachine-Type Communications,mMTC)。当然,采用Polar编码的领域还可以为其它,本申请对此不作具体限定。The embodiments of the present application can be applied to various fields using Polar coding, for example, the field of data storage, the field of optical network communication, the field of wireless communication, and the like. The wireless communication systems mentioned in the embodiments of this application include, but are not limited to: Narrow Band-Internet of Things (NB-IoT), Global System for Mobile Communications (GSM), enhanced data Rate GSM Evolution (Enhanced Datarate for GSM Evolution, EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (Code Division Multiple Access, CDMA2000), Time Division Synchronous Code Division Multiple Access System (Time Division-Synchronization Code Division Multiple Access, TD-SCDMA), Long Term Evolution (Long Term Evolution, LTE) and three major application scenarios of the next generation 5G mobile communication system Enhanced Mobile Broad Band (eMBB) , Ultra Reliable Low Latency Communication (URLLC) and Massive Machine-Type Communications (mMTC). Of course, other fields may be used for Polar coding, which is not specifically limited in this application.

本申请涉及的通信装置主要包括网络设备或者终端设备。本申请中的发送设备可以为网络设备,则接收设备为终端设备。本申请中的发送设备为终端设备,则接收设备为网络设备。The communication device involved in this application mainly includes network equipment or terminal equipment. The sending device in this application may be a network device, and the receiving device is a terminal device. The sending device in this application is a terminal device, and the receiving device is a network device.

在本申请实施例中,终端设备(terminal device)包括但不限于移动台(MobileStation,MS)、移动终端(Mobile Terminal,MT)、移动电话(Mobile Telephone,MT)、手机(handset)及便携设备(portable equipment)等,该终端设备可以经无线接入网(RadioAccess Network,RAN)与一个或多个核心网进行通信。例如,终端设备可以是移动电话(或称为“蜂窝”电话)、具有无线通信功能的计算机等,终端设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置或设备。In the embodiments of the present application, terminal devices (terminal devices) include, but are not limited to, a mobile station (MobileStation, MS), a mobile terminal (Mobile Terminal, MT), a mobile phone (Mobile Telephone, MT), a mobile phone (handset), and a portable device (portable equipment), etc., the terminal equipment can communicate with one or more core networks via a radio access network (Radio Access Network, RAN). For example, the terminal device may be a mobile phone (or "cellular" phone), a computer with wireless communication function, etc. The terminal device may also be a portable, pocket-sized, hand-held, computer-built or vehicle-mounted mobile device or device.

在本申请实施例中,网络设备可以是LTE系统中的演进型基站(Evolutional NodeB,eNB或eNodeB),或者,网络设备可以是5G通信系统中的gNB或者传输和接收点(transmission reception point,TRP)、微基站等,或者网络设备可以为中继站、接入点、车载设备、可穿戴设备以及未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)中的网络设备,或者在其他多种技术融合的网络中,或者在其他各种演进网络中的基站等。In this embodiment of the present application, the network device may be an evolved base station (Evolutional NodeB, eNB or eNodeB) in an LTE system, or the network device may be a gNB or a transmission reception point (TRP) in a 5G communication system ), micro base station, etc., or the network equipment can be a relay station, an access point, a vehicle-mounted device, a wearable device, and a network device in the public land mobile network (Public Land Mobile Network, PLMN) evolved in the future, or in a variety of other technologies In a converged network, or a base station in other various evolved networks, etc.

例如,网络设备可以为基站(Base Station,BS),基站可以向多个移动台(MobileStation,MS)提供通信服务,基站还可以连接到核心网设备。其中,基站包含基带单元(Baseband Unit,BBU)和远端射频单元(英文:Remote Radio Unit,RRU)。BBU和RRU可以放置在不同的地方,例如:RRU拉远,放置于高话务量的区域,BBU放置于中心机房。BBU和RRU也可以放置在同一机房。BBU和RRU也可以为一个机架下的不同部件。For example, the network equipment may be a base station (Base Station, BS), the base station may provide communication services to multiple mobile stations (MobileStation, MS), and the base station may also be connected to core network equipment. The base station includes a baseband unit (Baseband Unit, BBU) and a remote radio unit (English: Remote Radio Unit, RRU). The BBU and RRU can be placed in different places, for example, the RRU is far away and placed in an area with high traffic volume, and the BBU is placed in the central computer room. BBU and RRU can also be placed in the same computer room. The BBU and RRU can also be different components under one rack.

图1为本申请实施例提供的通信系统的架构图。请参见图1,包括发送设备101和接收设备102。FIG. 1 is an architectural diagram of a communication system provided by an embodiment of the present application. Please refer to FIG. 1 , including a sending device 101 and a receiving device 102 .

可选的,当发送设备101为终端设备时,则接收设备102为网络设备。当发送设备101为网络设备时,则接收设备为终端设备。Optionally, when the sending device 101 is a terminal device, the receiving device 102 is a network device. When the sending device 101 is a network device, the receiving device is a terminal device.

请参见图1,发送设备101中包括编码器,发送设备101可以通过编码器进行编码,并将编码后的序列通过信道传输至接收设备102。接收设备102中包括译码器,接收设备可以通过译码器对接收到的序列进行译码。Referring to FIG. 1 , the sending device 101 includes an encoder, and the sending device 101 can perform encoding through the encoder, and transmit the encoded sequence to the receiving device 102 through a channel. The receiving device 102 includes a decoder, and the receiving device can decode the received sequence through the decoder.

需要说明的是,图1只是以示例的形式示意一种通信系统的架构图,并非对通信系统的架构图的限定。It should be noted that, FIG. 1 merely illustrates an architecture diagram of a communication system in the form of an example, and is not intended to limit the architecture diagram of the communication system.

图2为本申请实施例提供的信道传输流程图。请参见图2,发送设备对发送的数据进行信源编码以及信道编码,编码后的序列经过映射调制之后在信道上传输至接收设备。接收设备可以对接收到的序列进行解映射解调处理、信道译码处理以及信源译码处理以恢复出发送设备发送的数据。FIG. 2 is a flow chart of channel transmission provided by an embodiment of the present application. Referring to FIG. 2 , the sending device performs source coding and channel coding on the data to be sent, and the coded sequence is transmitted to the receiving device on the channel after mapping and modulation. The receiving device can perform demapping and demodulation processing, channel decoding processing, and source decoding processing on the received sequence to recover the data sent by the sending device.

由于目前的编码方法无法使得SCL译码和OSD译码的性能最优,为此,本申请提出一种编码方法,可以提高SCL译码和OSD译码的性能。为了便于对本申请的理解,首先对OSD译码方法、OSD译码错误概率、SCL译码方法和SCL译码错误概率进行说明。Since the current encoding method cannot optimize the performance of SCL decoding and OSD decoding, this application proposes an encoding method, which can improve the performance of SCL decoding and OSD decoding. In order to facilitate the understanding of the present application, the OSD decoding method, the OSD decoding error probability, the SCL decoding method and the SCL decoding error probability are first described.

OSD译码过程可以包括如下步骤:The OSD decoding process may include the following steps:

步骤一、获取接收序列,根据接收序列中每个待译码比特的硬判值的可靠性对接收序列进行降序排序,得到第一序列y1,并确定接收序列到第一序列的第一转换操作矩阵(或者转换操作向量)λ1Step 1: Acquire the received sequence, sort the received sequence in descending order according to the reliability of the hard judgment value of each bit to be decoded in the received sequence, obtain the first sequence y 1 , and determine the first conversion from the received sequence to the first sequence Operation matrix (or transformation operation vector) λ 1 .

可选的,接收序列可以为一组对数似然比(Likelihood Rate,LLR),一个待译码比特可以为一个LLR。Optionally, the received sequence may be a set of log-likelihood ratios (Likelihood Rate, LLR), and one bit to be decoded may be one LLR.

可选的,待译码比特的硬判值为0或1。例如,若待译码比特(LLR)大于0,则该待译码比特的硬判值可以为0,若待译码比特(LLR)小于0,则待译码比特的硬判值为1。Optionally, the hard decision value of the bit to be decoded is 0 or 1. For example, if the bit to be decoded (LLR) is greater than 0, the hard decision value of the bit to be decoded may be 0; if the bit to be decoded (LLR) is less than 0, the hard decision value of the bit to be decoded is 1.

可选的,待译码比特的硬判值的可靠性可以为待译码比特(LLR)的绝对值。Optionally, the reliability of the hard decision value of the bit to be decoded may be the absolute value of the bit to be decoded (LLR).

例如,假设接收序列为L1(LLR1,LLR2,LLR3,LLR4),第一序列为L2(LLR4,LLR1,LLR2,LLR3),则第一转换操作矩阵可以为:

Figure BDA0001962181670000061
即,
Figure BDA0001962181670000062
第一转换操作矩阵还可以为(4,1,2,3),通过该第一转换操作矩阵中的元素指示对接收序列中的排序方式,由上述第一转换操作矩阵可知,将接收序列中的第4个元素排到了第1位,将接收序列中的第1个元素排到了第2位,将接收序列中的第2个元素排到了第3位,将接收序列中的第2个元素排到了第4位。For example, assuming that the received sequence is L1 (LLR1, LLR2, LLR3, LLR4) and the first sequence is L2 (LLR4, LLR1, LLR2, LLR3), the first conversion operation matrix can be:
Figure BDA0001962181670000061
which is,
Figure BDA0001962181670000062
The first conversion operation matrix can also be (4, 1, 2, 3). The elements in the first conversion operation matrix indicate the sorting method in the received sequence. It can be known from the above-mentioned first conversion operation matrix that the received sequence is sorted. The fourth element of the received sequence is ranked first, the first element in the received sequence is ranked second, the second element in the received sequence is ranked third, and the second element in the received sequence is ranked ranked 4th.

步骤二、根据第一转换操作矩阵对接收序列对应的生成矩阵进行列转换,得到第一矩阵G1。Step 2: Perform column conversion on the generator matrix corresponding to the received sequence according to the first conversion operation matrix to obtain a first matrix G1.

在OSD译码中,生成矩阵中包括的行的行数与信息比特的个数相同,该生成矩阵中的行为信息比特的位置对应的行。In OSD decoding, the number of rows included in the generator matrix is the same as the number of information bits, and the rows corresponding to the positions of the row information bits in the generator matrix are generated.

例如,假设待编码比特中包括K个信息比特和N-K个固定比特,则OSD译码中的生成矩阵中包括N*N矩阵(包括N行和N列)中、信息比特的位置对应的行,即,OSD译码中的生成矩阵为K*N矩阵(包括K行和N列)。For example, assuming that the bits to be encoded include K information bits and N-K fixed bits, the generator matrix in OSD decoding includes the rows corresponding to the positions of the information bits in the N*N matrix (including N rows and N columns), That is, the generator matrix in OSD decoding is a K*N matrix (including K rows and N columns).

例如,假设待编码比特中包括2个信息比特,2个冻结比特,则生成矩阵为

Figure BDA0001962181670000063
假设第一转换操作矩阵为(4,1,2,3),则将生成矩阵的第4列调换到第1列,将第1列调换到第2列,将第2列调换到第3列,将第3列调换到第4列,得到的第一矩阵为
Figure BDA0001962181670000071
For example, assuming that the bits to be encoded include 2 information bits and 2 frozen bits, the generating matrix is
Figure BDA0001962181670000063
Assuming that the first transformation operation matrix is (4,1,2,3), then the 4th column of the generator matrix is transposed to the 1st column, the 1st column is transposed to the 2nd column, and the 2nd column is transposed to the 3rd column , swap the 3rd column to the 4th column, and the resulting first matrix is
Figure BDA0001962181670000071

步骤三、对第一矩阵G1从左至右进行高斯消元,其中,相互独立的列将被前置生成一个新的第二矩阵G2,并确定第一矩阵G1到第二矩阵G2的第二转换操作矩阵(或者转换操作向量)λ2Step 3. Perform Gaussian elimination on the first matrix G1 from left to right, wherein the mutually independent columns will be pre-generated to generate a new second matrix G2, and determine the second matrix G2 from the first matrix G1 to the second matrix G2. The transformation operation matrix (or transformation operation vector) λ 2 .

通过该步骤,由于第一矩阵G1的前K列不一定相互独立(不相关),通过第二转换操作矩阵λ2对第一矩阵G1的列顺序进行微调后得到第二矩阵G2,第二矩阵G2的前K列相互独立(不相关)。Through this step, since the first K columns of the first matrix G1 are not necessarily mutually independent (irrelevant), the second matrix G2 is obtained after fine-tuning the column order of the first matrix G1 through the second transformation operation matrix λ 2 . The top K columns of G2 are independent of each other (uncorrelated).

需要说明的是,确定第二转换操作矩阵的过程可以参加确定第一转换操作矩阵的过程,此处不再进行赘述。It should be noted that the process of determining the second conversion operation matrix may participate in the process of determining the first conversion operation matrix, which will not be repeated here.

步骤四、通过第二转换操作矩阵λ2对第一序列y1进行转换操作,得到转换后的第二序列y2Step 4: Perform a conversion operation on the first sequence y 1 through the second conversion operation matrix λ 2 to obtain a converted second sequence y 2 .

例如,y2=λ2*y1For example, y 22 *y 1 .

步骤五、对于给定0≤l≤K,对K中所有小于或等于l个位置上第二序列y2的比特硬判决进行翻转。Step 5: For a given 0≤l≤K, invert all bit hard decisions of the second sequence y 2 at positions less than or equal to 1 in K.

步骤六、对于每一种错误模式,基于第二矩阵G2对K个比特重新进行编码,并计算对应的译码度量。Step 6: For each error mode, re-encode the K bits based on the second matrix G2, and calculate the corresponding decoding metric.

步骤七、在所有错误模式中选择具有最佳译码度量的码字确定为译码结果。Step 7: Select the codeword with the best decoding metric among all error modes and determine it as the decoding result.

在上述OSD译码的基础上,下面,对OSD译码错误概率进行说明。Based on the above OSD decoding, the following describes the OSD decoding error probability.

在上述OSD译码中,OSD译码错误概率包括最大释然(Maximum Likelihood,ML)译码错误概率和I阶译码错误概率,OSD译码错误概率

Figure BDA0001962181670000072
满足公式一所示的关系:In the above OSD decoding, the OSD decoding error probability includes the Maximum Likelihood (ML) decoding error probability and the first-order decoding error probability, and the OSD decoding error probability
Figure BDA0001962181670000072
Satisfy the relationship shown in Equation 1:

Figure BDA0001962181670000073
Figure BDA0001962181670000073

其中,

Figure BDA0001962181670000074
为ML译码错误概率,Pe(I)为I阶译码错误概率。in,
Figure BDA0001962181670000074
is the ML decoding error probability, and P e (I) is the I-order decoding error probability.

ML译码错误概率与码字的重量谱相关,其中,重量谱与生成矩阵中用于传输信息比特的行向量之间的线性无关的可能性相关,例如,生成矩阵中用于传输信息比特的行向量之间的线性无关的可能性越大,重量谱越好,

Figure BDA0001962181670000075
可以如公式二所示:The ML decoding error probability is related to the weight spectrum of the codeword, where the weight spectrum is related to the probability of being linearly independent between the row vectors used to transmit information bits in the generator matrix, e.g. The greater the likelihood of linear independence between row vectors, the better the weight spectrum,
Figure BDA0001962181670000075
It can be shown as formula 2:

Figure BDA0001962181670000076
Figure BDA0001962181670000076

其中,P(x1→x2)为将码字x1错译码成码字x2的概率,dh为码字间的汉明距离,

Figure BDA0001962181670000077
为与码字x1间的汉明距离为dh的码字的个数,f(dh)为将码字x1错译码成与码字x1的汉明距离为dh的其它码字的概率。码字x1与码字x2之间汉明距离越大,将码字x1错译码成码字x2的概率越小,即dh越大,f(dh)越小。Polar码的一个特性为,码字的最小汉明距离等于生成矩阵中信息位对应行的最小行重,行重为一行中包括的非0元素的个数。由此可知,码字的重量谱越好,码字的最小码重越大、具有较低码重的码字越少,可以使得ML译码性能最优(ML译码错误概率最小)。Among them, P(x 1 →x 2 ) is the probability of wrongly decoding the codeword x 1 into the code word x 2 , d h is the Hamming distance between the code words,
Figure BDA0001962181670000077
is the number of codewords whose Hamming distance from the codeword x1 is dh, and f (dh ) is the misdecoding of the codeword x1 into other codewords whose Hamming distance is dh from the codeword x1 Probability of codewords. The larger the Hamming distance between the codeword x1 and the codeword x2 , the smaller the probability of incorrectly decoding the codeword x1 into the codeword x2 , that is, the larger the d h , the smaller the f(d h ). One characteristic of the Polar code is that the minimum Hamming distance of the codeword is equal to the minimum row weight of the row corresponding to the information bit in the generator matrix, and the row weight is the number of non-zero elements included in a row. It can be seen that the better the weight spectrum of the codeword, the greater the minimum code weight of the codeword, and the fewer codewords with lower code weights, which can make the ML decoding performance optimal (ML decoding error probability is the smallest).

I阶译码错误概率与d的分布相关,其中,d为得到第K个线性无关的列之前、线性相关的列数目,即,构成K个不相关列所需要额外列的数目。例如,假设K-1列线性无关,第K列与前K-1列线性相关,需要将第K列与第K+3列进行交换,才能使得前K列线性无关,则d为3。The first-order decoding error probability is related to the distribution of d, where d is the number of linearly correlated columns before the Kth linearly independent column is obtained, that is, the number of additional columns required to form K uncorrelated columns. For example, assuming that the K-1 column is linearly independent and the K-th column is linearly related to the first K-1 column, it is necessary to exchange the K-th column with the K+3-th column to make the first K columns linearly independent, then d is 3.

由上述OSD译码的过程可知,OSD译码是按照不相关的K个元素进行译码,但是,在实际应用过程中,无法保证前K列是线性无关的,因此,在估计Pe(I)时,需要考虑前K+d个位置上的错误情况,Pe(I)满足如下公式三所示的关系:It can be seen from the above OSD decoding process that the OSD decoding is decoded according to the K elements that are not related. However, in the actual application process, it cannot be guaranteed that the first K columns are linearly independent. Therefore, when estimating P e (I ), the error conditions at the first K+d positions need to be considered, and P e (I) satisfies the relationship shown in the following formula 3:

Figure BDA0001962181670000081
Figure BDA0001962181670000081

其中,P(d)为d的分布,

Figure BDA0001962181670000082
表示为了得到K个线性不相关的列,需要额外考虑的列的最大个数,
Figure BDA0001962181670000083
为该码字的最小汉明距离,P1为前K+d个元素中存在大于I个错误的概率。显然,当可靠度最高的比特(Most Reliable Bits,MRB)的可靠性越高,出现错误的可能性越低,即,前K+d个元素中出现多于I个错误的概率P1随着d的增大而增加,因此,在d越小时令P(d)越大,从而得到较小的Pe(I)。where P(d) is the distribution of d,
Figure BDA0001962181670000082
Indicates the maximum number of additional columns that need to be considered in order to obtain K linearly uncorrelated columns,
Figure BDA0001962181670000083
is the minimum Hamming distance of the codeword, and P 1 is the probability that there are more than 1 errors in the first K+d elements. Obviously, when the reliability of the most reliable bit (Most Reliable Bits, MRB) is higher, the probability of error occurrence is lower, that is, the probability of occurrence of more than 1 error in the first K+d elements P 1 As d increases, P(d) is made larger when d is smaller, so as to obtain smaller P e (I).

P(d)与重量谱的分布是一致的,即,重量谱越好,在d较小时P(d)越大。P(d)通常满足如下公式四所示的特征:P(d) is consistent with the distribution of the weight spectrum, ie, the better the weight spectrum, the greater the P(d) when d is smaller. P(d) usually satisfies the characteristics shown in Equation 4 below:

Figure BDA0001962181670000084
Figure BDA0001962181670000084

其中,

Figure BDA0001962181670000085
Figure BDA0001962181670000086
Figure BDA0001962181670000087
表示在码字中任取K位为全0的码字平均数目,N(dx)表示汉明重量为dx的码字数量,可以看出,dx越小,N(dx)前的系数越大,因此
Figure BDA0001962181670000088
的大小主要由重量小的码字数量决定,重量小的码字数量越少,
Figure BDA0001962181670000089
越小,而p越大d的分布越靠左(更优)。由上可知,因此I阶译码性能最优(I阶译码错误最小)和ML译码性能最优(ML译码性能最小)是一致的。in,
Figure BDA0001962181670000085
and
Figure BDA0001962181670000086
Figure BDA0001962181670000087
Represents the average number of code words with K bits as all 0s in the code word, N(d x ) represents the number of code words whose Hamming weight is d x , it can be seen that the smaller d x is , the more The larger the coefficient is, so
Figure BDA0001962181670000088
The size of the code is mainly determined by the number of code words with a small weight, and the smaller the number of code words with a small weight,
Figure BDA0001962181670000089
The smaller the value, and the larger p is, the more the distribution of d is to the left (better). From the above, it can be seen that the optimal performance of the I-order decoding (the smallest decoding error of the I-order) and the optimal ML decoding performance (the smallest ML decoding performance) are consistent.

生成矩阵中任取K列的线性无关的可能性越大,d的分布越优。由于生成矩阵中行之间的线性无关性,与任取K列的线性无关性是正相关的,因此,尽量选取生成矩阵中线性无关的行对应的位置作为信息位,可以使得任取K列的线性无关可能性最大,进而使得OSD译码性能最优(OSD译码错误概率最小)。The greater the possibility of linear independence of any K columns in the generator matrix, the better the distribution of d. Since the linear independence between the rows in the generator matrix is positively correlated with the linear independence of any K columns, therefore, try to select the position corresponding to the linearly independent rows in the generator matrix as the information bits, which can make the linear independence of any K columns selected. The possibility of irrelevance is the largest, so that the OSD decoding performance is optimal (the OSD decoding error probability is the smallest).

SCL译码过程可以包括如下步骤:The SCL decoding process may include the following steps:

步骤一、获取接收序列,接收序列中包括多个待译码比特。Step 1: Obtain a received sequence, where the received sequence includes a plurality of bits to be decoded.

可选的,接收序列可以为一组LLR,一个待译码比特为一个LLR。Optionally, the received sequence may be a group of LLRs, and one bit to be decoded is one LLR.

步骤二、将接收序列中的待译码比特分为P组待译码比特。Step 2: Divide the bits to be decoded in the received sequence into P groups of bits to be decoded.

例如,假设接收序列中包括2a个待译码比特,每组待译码比特包括m个比特,2a=P×m,P为大于1的正整数,m为大于或等于1的正整数。For example, assuming that the received sequence includes 2 a bits to be decoded, each group of bits to be decoded includes m bits, 2 a =P×m, P is a positive integer greater than 1, and m is a positive integer greater than or equal to 1 .

步骤三、以P组待译码比特为译码对象进行P步译码,直至获取得到译码结果。Step 3: Perform P-step decoding with P groups of bits to be decoded as decoding objects, until a decoding result is obtained.

其中,针对任意第i步译码,可以根据接收序列(一组LLR)计算第i组待译码比特中每个待译码信息比特的m+1级LLR。根据第i组待译码比特中每个信息比特的m+1级LLR,并行计算第i步译码的所有可能译码路径的路径度量值。根据所有可能译码路径的路径度量值,选择至少一个保留译码路径。Wherein, for any i-th step of decoding, the m+1-level LLR of each to-be-decoded information bit in the i-th group of to-be-decoded bits can be calculated according to the received sequence (a group of LLRs). According to the m+1-level LLR of each information bit in the i-th group of bits to be decoded, the path metrics of all possible decoding paths decoded in the i-th step are calculated in parallel. According to the path metrics of all possible decoding paths, at least one reserved decoding path is selected.

在上述SCL译码的基础上,下面,对SCL译码错误概率进行说明。Based on the above-mentioned SCL decoding, the following describes the SCL decoding error probability.

在上述SCL译码过程中,SCL译码错误包括两类错误,第一类错误是路径选择错误,即,选择的至少一个保留译码路径中不存在正确的译码路径;第二类错误是ML错误,即,正确译码路径的路径度量(Path Metric,PM)值不是最小的。第一类错误主要与信息位子信道的可靠性有关,信息位子信道可靠性越高,路径选择错误的概率越低。第二类错误与码字的重量谱相关,码字的重量谱越好,出现ML错误的概率越低。In the above SCL decoding process, SCL decoding errors include two types of errors. The first type of error is path selection error, that is, there is no correct decoding path in the selected at least one reserved decoding path; the second type of error is ML errors, ie, Path Metric (PM) values for correctly decoded paths are not minimal. The first type of error is mainly related to the reliability of the information bit sub-channel. The higher the reliability of the information bit sub-channel, the lower the probability of wrong path selection. The second type of error is related to the weight spectrum of the codeword. The better the weight spectrum of the codeword, the lower the probability of ML errors.

由上可知,信息位对应的子信道的可靠性越高,且重量谱越好(生成矩阵中用于传输信息比特的行向量之间的线性无关的可能性越大),可以使得SCL译码错误概率越小。It can be seen from the above that the higher the reliability of the subchannel corresponding to the information bit, and the better the weight spectrum (the greater the possibility of linear independence between the row vectors used to transmit the information bit in the generator matrix), the SCL decoding can be made. The lower the probability of error.

下面,通过具体实施例,对本申请所示的技术方案进行详细说明。需要说明的是,下面几个实施例可以相互结合,对于相同或者相似的内容,在不同的实施例中不再重复说明。Hereinafter, the technical solutions shown in the present application will be described in detail through specific embodiments. It should be noted that the following embodiments may be combined with each other, and the same or similar content will not be repeated in different embodiments.

图3为本申请提供的编码方法的流程示意图。请参见图3,该方法可以包括:FIG. 3 is a schematic flowchart of the encoding method provided by the present application. Referring to Figure 3, the method can include:

S301、获取N个待编码比特。S301. Obtain N bits to be encoded.

其中,N个待编码比特中包括K个信息比特和N-K个固定比特,N为正整数,K为正整数,K小于或等于N。The N bits to be encoded include K information bits and N-K fixed bits, N is a positive integer, K is a positive integer, and K is less than or equal to N.

可选的,信息比特为用于携带信息的比特。Optionally, the information bits are bits used to carry information.

可选的,信息比特可以包括循环冗余校验(Cyclic Redundancy Check,CRC)比特和/或奇偶校验(Parity Check,PC)比特。Optionally, the information bits may include cyclic redundancy check (Cyclic Redundancy Check, CRC) bits and/or parity check (Parity Check, PC) bits.

可选的,固定比特还可以称为填充比特、冻结比特等。固定比特可以为0。Optionally, the fixed bits may also be referred to as padding bits, frozen bits, or the like. Fixed bits can be 0.

可选的,N可以为2的正整数次幂。Optionally, N can be a positive integer power of 2.

S302、获取N个待编码比特的生成矩阵。S302. Obtain a generator matrix of N bits to be encoded.

可选的,生成矩阵可以为N*N矩阵,即,生成矩阵中包括N行和N列。Optionally, the generator matrix may be an N*N matrix, that is, the generator matrix includes N rows and N columns.

例如,生成矩阵可以为

Figure BDA0001962181670000091
Figure BDA0001962181670000092
为n次克罗内克(Kronecker)幂,即,生成矩阵可以为n个矩阵F连续做克罗内克积,n=log2N。For example, the generator matrix can be
Figure BDA0001962181670000091
Figure BDA0001962181670000092
It is a Kronecker power of n times, that is, the generator matrix can be continuously Kronecker product for n matrices F, n=log 2 N.

例如,当N等于4时,生成矩阵可以为:

Figure BDA0001962181670000093
For example, when N is equal to 4, the generator matrix can be:
Figure BDA0001962181670000093

当N等于8时,生成矩阵可以为:

Figure BDA0001962181670000094
When N is equal to 8, the generator matrix can be:
Figure BDA0001962181670000094

S303、根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置。S303. Determine the position of the information bit according to the linear independence metric between the row vectors in the generator matrix.

可选的,线性无关度量可以为线性无关的可能性,或者,线性无关度量还可以称为线性无关性,或者,线性无关度量还可以称为独立的可能性。Optionally, the linearly independent metric may be linearly independent likelihood, or the linearly independent metric may also be referred to as linearly independent, or the linearly independent metric may also be referred to as independent likelihood.

可选的,信息比特的位置为K个。Optionally, the positions of the information bits are K.

可选的,信息比特的位置可以为生成矩阵中线性无关的可能性较大(例如最大)的行向量的行序号。Optionally, the position of the information bit may be the row sequence number of the row vector with a higher possibility (eg, the largest) of linear independence in the generator matrix.

需要说明的是,在本申请中,行向量还可以称为行,行向量的行序号还可以称为行的行序号,行向量的行重还可以称为行的行重。It should be noted that, in this application, a row vector may also be referred to as a row, a row sequence number of a row vector may also be referred to as a row sequence number of a row, and a row weight of a row vector may also be referred to as a row weight of a row.

例如,假设N为8,K为4,假设生成矩阵中第1,2,5,8行之间的线性无关度量最大,则可以确定信息比特的位置为{1,2,5,8}。For example, assuming that N is 8 and K is 4, and assuming that the linear independence metric between the 1st, 2nd, 5th, and 8th rows in the generator matrix is the largest, the position of the information bit can be determined to be {1, 2, 5, 8}.

可选的,对于一个长度为N的行向量x,该行向量x与前面K1个行向量的线性无关度量可以如公式五所示:Optionally, for a row vector x of length N, the linear independence measure of the row vector x and the previous K 1 row vectors can be as shown in formula 5:

Figure BDA0001962181670000101
Figure BDA0001962181670000101

其中,i为向量x中元素1所在列的列序号,例如,若向量x中第1、3、4、5列中的元素为1,则i依次取1、3、4、5。qi为前K1行所构成的维度为K1×N的矩阵中第i列中包括的1的比例,例如,若第i列中包括m个1,则qi=m/K1Among them, i is the column number of the column where the element 1 in the vector x is located. For example, if the element in the 1st, 3rd, 4th, and 5th columns of the vector x is 1, then i takes 1, 3, 4, and 5 in turn. q i is the proportion of 1s included in the i-th column of the matrix formed by the first K 1 rows and the dimension is K 1 ×N. For example, if the i-th column includes m 1s, then q i =m/K 1 .

S304、根据信息比特的位置,对待编码比特进行编码。S304: Encode the bits to be encoded according to the positions of the information bits.

可选的,可以根据信息比特的位置,对信息比特和固定比特进行排序,并根据生成矩阵对排序后的信息比特和固定比特进行编码。Optionally, the information bits and the fixed bits may be sorted according to the positions of the information bits, and the sorted information bits and the fixed bits are encoded according to the generator matrix.

例如,假设N为8,K为4,信息比特为i1、i2、i3和i4,信息比特的位置为{4,6,7,8},固定比特为0,因此,按照信息比特的位置对信息比特和固定比特进行排序之后,得到序列

Figure BDA0001962181670000102
可以将序列
Figure BDA0001962181670000103
乘以生成矩阵、以及比特反序重排等处理,以实现对待编码比特进行编码。For example, suppose that N is 8, K is 4, the information bits are i 1 , i 2 , i 3 and i 4 , the positions of the information bits are {4, 6, 7, 8}, and the fixed bits are 0. Therefore, according to the information Bit position After sorting the information bits and fixed bits, the sequence is obtained
Figure BDA0001962181670000102
sequence can be
Figure BDA0001962181670000103
Multiply by the generator matrix, and rearrange the bits in reverse order to realize the encoding of the to-be-coded bits.

本申请提供的编码方法,根据生成矩阵中行向量之间的线性无关度量,确定信息比特的位置,可以使得信息比特的位置对应的生成矩阵中的行向量之间的线性无关的可能性较大,进而使得SCL译码错误的概率和OSD译码错误的概率较小,进而提高了编码的可靠性。The coding method provided by the present application determines the position of the information bits according to the linear independence metric between the row vectors in the generator matrix, so that the possibility of linear independence between the row vectors in the generator matrix corresponding to the position of the information bits is high, Further, the probability of SCL decoding error and the probability of OSD decoding error are smaller, thereby improving the reliability of encoding.

在上述任意一个实施例的基础上,可选的,可以通过如下可行的实现方式确定信息比特的位置。具体的,请参见图4所示的实施例。On the basis of any one of the foregoing embodiments, optionally, the position of the information bit may be determined through the following feasible implementation manners. Specifically, please refer to the embodiment shown in FIG. 4 .

图4为本申请提供的一种确定信息比特的位置的流程示意图。请参见图4,该方法可以包括:FIG. 4 is a schematic flowchart of determining the position of an information bit according to the present application. Referring to Figure 4, the method can include:

S401、初始化第一位置集合。S401. Initialize a first location set.

其中,初始化的第一位置集合中包括生成矩阵中行重量最大的行向量的行序号。The initialized first position set includes the row sequence number of the row vector with the largest row weight in the generated matrix.

可选的,行向量的行重量是指行向量中包括非零元素的个数。例如,生成矩阵中的行向量的行重量是指行向量中包括的1的个数。Optionally, the row weight of the row vector refers to the number of non-zero elements included in the row vector. For example, the row weight of a row vector in a generator matrix refers to the number of 1's included in the row vector.

生成矩阵中最后一行中的元素通常全部为1,因此,生成矩阵中最后一个行向量的行重量最大。The elements in the last row of the spanning matrix are usually all 1s, so the last row vector in the spanning matrix has the largest row weight.

可选的,初始化的第一位置集合可以包括至少如下两种情况:Optionally, the initialized first location set may include at least the following two situations:

一种可能的情况:A possible situation:

初始化的第一位置集合中仅包括生成矩阵中最后一行的行序号。The initialized first position set includes only the row number of the last row in the generator matrix.

在该种可能的情况下,初始化的第一位置集合中包括的行序号的个数为1。In this possible situation, the number of row sequence numbers included in the initialized first location set is 1.

例如,假设生成矩阵包括8行,则第一位置集合中仅包括行序号8。For example, assuming that the generator matrix includes 8 rows, only row number 8 is included in the first position set.

可选的,在译码算法为SCL译码算法时,初始化的第一位置集合可以为该种可能的情况。Optionally, when the decoding algorithm is the SCL decoding algorithm, the initialized first location set may be this possible situation.

另一种可能的情况:Another possible situation:

当生成矩阵为待编码比特的极化码矩阵,极化码矩阵包括N行和N列时,初始化的第一位置集合包括生成矩阵中行重大于第一汉明距离的行的序号。When the generator matrix is a polar code matrix of bits to be encoded, and the polar code matrix includes N rows and N columns, the initialized first position set includes the serial numbers of the rows in the generator matrix whose row weight is greater than the first Hamming distance.

其中,第一汉明距离为信息比特和固定比特按照不同方式排列时的最小汉明距离中的最大值,信息比特和固定比特按照一种方式排列对应一个最小汉明距离,信息比特和固定比特按照一种方式排列时的最小汉明距离为,信息比特和固定比特按照该方式排列时生成矩阵中信息比特位对应的行的最小行重。Among them, the first Hamming distance is the maximum value of the minimum Hamming distances when the information bits and the fixed bits are arranged in different ways, and the information bits and the fixed bits are arranged in one way corresponding to a minimum Hamming distance, and the information bits and the fixed bits are arranged in one way. The minimum Hamming distance when arranged in one manner is the minimum row weight of the row corresponding to the information bits in the generation matrix when the information bits and the fixed bits are arranged in this manner.

在该种可能的情况下,初始化的第一位置集合中包括的行序号的个数为1个或者多个。In this possible situation, the number of row sequence numbers included in the initialized first location set is one or more.

可选的,可以通过如下方式确定信息比特和固定比特按照一种方式排列时的最小汉明距离:在信息比特和固定比特按照一种方式排列时,可以根据该排列方式确定信息比特位(信息比特的位置),将生成矩阵中信息比特位对应的行的最小行重确定为该种排列时的最小汉明距离。Optionally, the minimum Hamming distance when the information bits and the fixed bits are arranged in one way can be determined in the following manner: when the information bits and the fixed bits are arranged in one way, the information bits (information bits) can be determined according to the arrangement. bit position), and the minimum row weight of the row corresponding to the information bit in the generator matrix is determined as the minimum Hamming distance in this arrangement.

例如,假设信息比特为i1、I2、I3和i4,信息比特和固定比特(0)的排列方式如下:(0,0,0,i1,0,i2,i3,i4),则可以确定信息比特位(信息比特的位置)为4、6、7、8,信息比特位对应生成矩阵中的第4、6、7、8行,因此,可以将生成矩阵中第4行的行重量、第6行的行重量、第7行的行重量、第8行的行重量行中行重量最小的行重量确定为该种排列方式下的最小汉明距离。For example, assuming the information bits are i 1 , I 2 , I 3 and i 4 , the information bits and the fixed bit (0) are arranged as follows: (0,0,0, i1,0 , i2 , i3 ,i 4 ), it can be determined that the information bits (positions of the information bits) are 4, 6, 7, and 8, and the information bits correspond to the 4th, 6th, 7th, and 8th rows in the generator matrix. The row weight of the 4th row, the row weight of the 6th row, the row weight of the 7th row, and the row weight of the 8th row is determined as the minimum Hamming distance in this arrangement.

可选的,信息比特和固定比特可以按照多种方式排列,且一种排列方式可以对应一个最小汉明距离,将信息比特和固定比特的所有排列方式对应的最小汉明距离中的最大值确定为第一汉明距离。Optionally, the information bits and the fixed bits can be arranged in multiple ways, and one arrangement can correspond to a minimum Hamming distance, and the maximum value of the minimum Hamming distances corresponding to all the arrangements of the information bits and the fixed bits is determined. is the first Hamming distance.

例如,假设信息比特和固定比特可以有Q种排列方式,则可以确定得到Q个最小汉明距离,将该Q个最小汉明距离中的最大值确定为第一汉明距离。For example, assuming that the information bits and the fixed bits can be arranged in Q ways, then Q minimum Hamming distances can be determined, and the maximum value among the Q minimum Hamming distances is determined as the first Hamming distance.

可选的,在译码算法为OSD译码算法时,初始化的第一位置集合可以为该种可能的情况。Optionally, when the decoding algorithm is the OSD decoding algorithm, the initialized first location set may be this possible situation.

需要说明的是,初始化的第一位置集合可以为预先配置好的。It should be noted that the initialized first location set may be pre-configured.

S402、初始化第二位置集合。S402. Initialize the second location set.

其中,初始化的第二位置集合中包括至少一个行序号。Wherein, the initialized second location set includes at least one row sequence number.

可选的,初始化的第二位置集合可以包括至少如下三种情况:Optionally, the initialized second location set may include at least the following three situations:

一种可能的情况:A possible situation:

初始化的第二位置集合中包括可靠度最高的K+L个子信道对应的行序号;其中,L为串行抵消列表SCL译码的保留路径数量,保留路径数量为SCL译码中每步译码保留的最大路径数量。The initialized second position set includes the row numbers corresponding to the K+L sub-channels with the highest reliability; wherein, L is the number of reserved paths in the SCL decoding of the serial cancellation list, and the number of reserved paths is the decoding of each step in the SCL decoding. Maximum number of paths to keep.

可选的,K+L个子信道为N个子信道中可靠度最高的K+L个子信道。Optionally, the K+L subchannels are the K+L subchannels with the highest reliability among the N subchannels.

可选的,K+L个子信道为N-X个子信道中可靠度最高的K+L个子信道,X为初始化的第一位置集合中包括的行序号的个数,N-X个子信道为N个子信道中除第一位置集合中行序号对应的子信道外的子信道。即。初始化的第二位置集合中不包括初始化的第一位置集合中的行序号。Optionally, the K+L sub-channels are the K+L sub-channels with the highest reliability among the N-X sub-channels, X is the number of row sequence numbers included in the initialized first position set, and the N-X sub-channels are divided by the N sub-channels. Subchannels other than the subchannels corresponding to the row numbers in the first location set. which is. The row number in the initialized first position set is not included in the initialized second position set.

可选的,L可以为4、8、16等,在实际应用过程中,可以根据实际需要设置L的大小。Optionally, L can be 4, 8, 16, etc. In the actual application process, the size of L can be set according to actual needs.

可选的,子信道对应的行序号可以为子信道的标识。例如,假设可靠度最高的K+L个子信道为第1、4、6、7个子信道,则可靠度最高的K+L个子信道对应的行序号为1、4、6、7。Optionally, the row sequence number corresponding to the subchannel may be an identifier of the subchannel. For example, assuming that the K+L subchannels with the highest reliability are the 1st, 4th, 6th, and 7th subchannels, the row numbers corresponding to the K+L subchannels with the highest reliability are 1, 4, 6, and 7.

可选的,在译码算法为SCL译码算法时,初始化的第二位置集合可以为该种可能的情况。Optionally, when the decoding algorithm is the SCL decoding algorithm, the initialized second location set may be this possible situation.

该种可能的初始化的第二位置集合非常适合于短码场景(N较小和/或K较小的场景),因此,还可以设定一个N的门限NT(或者K的门限,原理一致,不再赘述),小于或者等于NT的时候用如上实施例所述的构造方法确定信息比特位置,大于或者等于NT的时候用传统的按可靠度原则或者现有的其他原则选取信息比特位置的方法,注意这里等于N等于门限值NT的时候,两种方法都可以。This possible initialized second location set is very suitable for short code scenarios (scenarios where N is small and/or K is small), therefore, a threshold NT of N (or a threshold of K can also be set, the principle is the same, (No more details), when less than or equal to NT, use the construction method as described in the above embodiment to determine the information bit position, when greater than or equal to NT, use the traditional method for selecting the information bit position according to the reliability principle or other existing principles , note that when N is equal to the threshold value NT, both methods can be used.

另一种可能的情况:Another possible situation:

初始化的第二位置集合中包括生成矩阵中行重等于第一汉明距离的行的序号。The initialized second position set includes the serial number of the row in the generator matrix whose row weight is equal to the first Hamming distance.

需要说明的是,第一汉明距离可以参见S401,此处不再进行赘述。It should be noted that, for the first Hamming distance, reference may be made to S401, which will not be repeated here.

可选的,在译码算法为OSD译码算法时,初始化的第二位置集合可以为该种可能的情况。Optionally, when the decoding algorithm is the OSD decoding algorithm, the initialized second position set may be this possible situation.

再一种可能的情况:Another possible situation:

初始化的第二位置集合包括生成矩阵中的全部行序号;或者,初始化的第二位置集合包括生成矩阵中除初始化的第一位置集合中的行序号之外的行序号。The initialized second position set includes all row numbers in the generator matrix; or, the initialized second position set includes row numbers in the generator matrix except the row numbers in the initialized first position set.

需要说明的是,初始化的第二位置集合可以为预先配置好的。It should be noted that the initialized second location set may be pre-configured.

S403、根据生成矩阵中当前第二位置集合中每个行序号对应的行向量,与生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关的可能性,在当前第二位置集合中确定目标行序号。S403. According to the possibility of linear independence between the row vector corresponding to each row sequence number in the current second position set in the generator matrix and the row vector corresponding to the row sequence number in the current first position set in the generator matrix, in the current first position set The sequence number of the target row is determined in the two-position set.

其中,在当前第二位置集合中,目标行序号对应生成矩阵中的行向量与所述生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关的可能性最大。Wherein, in the current second position set, the possibility of linear independence between the row vector in the generator matrix corresponding to the target row number and the row vector corresponding to the row number in the current first position set in the generator matrix is the greatest.

需要说明的是,在本申请中,通过执行S404,可以使得第一位置集合中包括的行序号发生变化,通过执行S405,可以使得第二位置集合中包括的行序号发生变化。即,本申请中的第一位置集合和第二位置集合是在不断发生变化的,不同时刻的第一位置集合中包括的行序号可能不同,不同时刻的第二位置集合中包括的行序号可能不同。It should be noted that, in this application, by executing S404, the row sequence numbers included in the first location set can be changed, and by executing S405, the row sequence numbers included in the second location set can be changed. That is, the first position set and the second position set in this application are constantly changing, the row sequence numbers included in the first position set at different times may be different, and the row sequence numbers included in the second position set at different times may be different. different.

本申请所示的当前第一位置集合是指当前时刻的第一位置集合,其中,若还未执行过S404,则当前第一位置集合为初始化的第一位置集合,若执行过S404,则当前位置集合为最后一次执行S404之后得到的新的第一位置集合。The current first position set shown in this application refers to the first position set at the current moment, wherein, if S404 has not been executed, the current first position set is the initialized first position set, and if S404 has been executed, the current first position set The location set is the new first location set obtained after S404 is executed for the last time.

本申请所示的当前第二位置集合是指当前时刻的第二位置集合,其中,若还未执行过S405,则当前第二位置集合为初始化的第二位置集合,若执行过S405,则当前位置集合为最后一次执行S405之后得到的新的第二位置集合。The current second position set shown in this application refers to the second position set at the current moment, wherein, if S405 has not been executed, the current second position set is the initialized second position set, and if S405 has been executed, the current second position set The location set is a new second location set obtained after the last execution of S405.

可选的,生成矩阵中当前第二位置集合中一个行序号对应的第一行向量,与生成矩阵中当前第一位置集合中的行序号对应的第二行向量之间的线性无关的可能性可以为:第一行向量与每个第二行向量之间的线性无关的可能性之和,或者,第一行向量与所有第二行向量之间的线性无关的可能性的平均值。Optionally, the possibility of linear independence between the first row vector corresponding to a row number in the current second position set in the generator matrix and the second row vector corresponding to the row number in the current first position set in the generator matrix Can be: the sum of the likelihoods of linear independence between the first row vector and each of the second row vectors, or the average of the likelihoods of linear independence between the first row vector and all second row vectors.

需要说明的是,可以通过上述公式五,确定生成矩阵中当前第二位置集合中每个行序号对应的行向量,与生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关的可能性。It should be noted that the above formula 5 can be used to determine the row vector corresponding to each row number in the current second position set in the generator matrix and the row vector corresponding to the row number in the current first position set in the generator matrix. Linearly independent possibilities.

可选的,针对当前第二位置集合中的行序号,可以分别计算每个行序号对应的行向量与生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关的可能性,并将当前第二位置集合中与当前第一位置集合中的行序号对应的行向量之间的线性无关的可能性最大的行序号确定为目标行序号。Optionally, for the row sequence numbers in the current second position set, the possibility of linear independence between the row vector corresponding to each row sequence number and the row vector corresponding to the row sequence number in the current first position set in the generator matrix may be calculated separately. and determine the row sequence number with the greatest possibility of being linearly independent between the row vectors corresponding to the row sequence numbers in the current first position set in the current second position set as the target row sequence number.

例如,假设第二位置集合中包括行序号2,3,4,第一位置集合中包括行序号1,8,则可以计算生成矩阵中第2行与第1行和第8行之间的线性无关的可能性(记为可能性1),计算生成矩阵中第3行与第1行和第8行之间的线性无关的可能性(记为可能性2),计算生成矩阵中第4行与第1行和第8行之间的线性无关的可能性(记为可能性3),若在可能性1、可能性2和可能性3中,可能性2的值最大,则可以将行序号3确定为目标行序号。For example, assuming that the second set of positions includes row numbers 2, 3, and 4, and the first set of positions includes row numbers 1, 8, the linearity between row 2 and row 1 and row 8 in the generator matrix can be calculated. Irrelevant possibility (denoted as possibility 1), calculate the linearly independent possibility (denoted as possibility 2) between the 3rd row and the 1st row and the 8th row in the generator matrix, calculate the 4th row in the generator matrix The possibility that is independent of the linearity between the first row and the eighth row (denoted as possibility 3), if the value of possibility 2 is the largest among possibility 1, possibility 2 and possibility 3, the row Sequence number 3 is determined as the target row sequence number.

S404、将目标行序号添加至当前第一位置集合,得到新的第一位置集合。S404. Add the sequence number of the target row to the current first location set to obtain a new first location set.

可选的,若目标行序号的个数为1,则直接将目标行序号添加至当前第一位置集合即可。Optionally, if the number of target row serial numbers is 1, the target row serial number can be directly added to the current first position set.

可选的,若目标行序号的个数大于1,则根据目标行序号的个数和当前第一位置集合中包括的行序号的个数,在当前第一位置集合中添加目标行序号。Optionally, if the number of target row serial numbers is greater than 1, the target row serial number is added to the current first position set according to the number of target row serial numbers and the number of row serial numbers included in the current first position set.

可选的,假设目标行序号的个数为Y,当前第一位置集合中包括的行序号的个数为T,K-T=Z;在Y大于Z时,在Y个目标行序号中确定Z个目标行序号,并将Z个目标行序号添加至当前第一位置集合。Y为大于1的整数,Z为小于或等于K的正整数。这样,可以使得第一位置集合中最多包括K个行序号,以避免第一位置中包括的行序号的个数大于K。Optionally, it is assumed that the number of target row numbers is Y, the number of row numbers included in the current first position set is T, and K-T=Z; when Y is greater than Z, determine Z among the Y target row numbers. target row sequence numbers, and add the Z target row sequence numbers to the current first position set. Y is an integer greater than 1, and Z is a positive integer less than or equal to K. In this way, the first location set can include at most K row numbers, so as to avoid that the number of row numbers included in the first location is greater than K.

在Y大于Z时,可以通过规则在Y个目标行序号中选择Z个目标行序号,规则可以包括但不限于如下任意一个规则:Z个目标行序号为Y个目标行序号中可靠度最高的Z个子信道对应的行序号;或者,Z个目标行序号为Y个目标行序号中行序号最大的Z个行序号;或者,Z个目标行序号为Y个目标行序号中行序号最小的Z个行序号。When Y is greater than Z, Z target row numbers can be selected from the Y target row numbers through a rule, and the rules may include but are not limited to any of the following rules: The Z target row numbers are the most reliable among the Y target row numbers. Line numbers corresponding to the Z sub-channels; or, the Z target line numbers are the Z line numbers with the largest line number among the Y target line numbers; or the Z target line numbers are the Z line numbers with the smallest line number among the Y target line numbers serial number.

当然,在实际应用过程中,可以根据实际需要设置在Y个目标行序号中选择Z个目标行序号的规则,本申请对此不作具体限定。Of course, in the actual application process, a rule for selecting Z target row serial numbers among the Y target row serial numbers may be set according to actual needs, which is not specifically limited in this application.

S405、在当前第二位置集合中删除目标行序号,得到新的第二位置集合。S405. Delete the sequence number of the target row in the current second position set to obtain a new second position set.

需要说明的是,在当前第一位置集合中添加的目标行序号与在当前第二位置集合中删除的目标行序号相同。It should be noted that the sequence number of the target row added in the current first position set is the same as the sequence number of the target row deleted in the current second position set.

例如,若在当前第一位置集合中添加Z个目标行序号,则在当前第二位置集合中删除Z个目标行序号,且在当前第一位置集合中添加的Z个目标行序号与在当前第二位置集合中删除的Z个目标行序号相同。For example, if Z target row numbers are added to the current first location set, then Z target row numbers are deleted from the current second location set, and the Z target row numbers added to the current first location set are the same as those in the current first location set. The sequence numbers of the Z target rows deleted in the second position set are the same.

S406、判断新的第一位置集合中包括的行序号的个数是否为K。S406. Determine whether the number of row sequence numbers included in the new first location set is K.

若是,则执行S407。If yes, execute S407.

若否,则执行S403。If not, execute S403.

S407、将当前第一位置集合中的行序号确定为信息比特的位置。S407: Determine the row sequence number in the current first position set as the position of the information bit.

在图4所示的实施例中,初始化的第一位置集合中包括生成矩阵中行重量最大的行向量的行序号,且依次将第二位置集合中与第一位置集合中的行序号对应的行向量之间的线性无关的可能性最大的行向量对应的行序号移动至第一位置集合,这样,可以使得第一位置集合中的行序号对应的生成矩阵中的行向量的码重较大,且使得第一位置集合中的行序号对应的生成矩阵中的行向量之间的线性无关的可能性最大,即,使得生成矩阵中信息比特位对应的行向量之间的线性无关的可能性最大,进而可以使得在SCL译码错误概率较小以及使得OSD译码错误概率较小,进而提高了编码的可靠性。In the embodiment shown in FIG. 4 , the initialized first position set includes the row sequence number of the row vector with the largest row weight in the generator matrix, and the rows corresponding to the row sequence numbers in the first position set in the second position set are sequentially The row sequence number corresponding to the row vector with the greatest possibility of being linearly independent between vectors is moved to the first position set, so that the code weight of the row vector in the generator matrix corresponding to the row sequence number in the first position set can be made larger, And make the possibility of linear independence between the row vectors in the generator matrix corresponding to the row numbers in the first position set maximum, that is, make the possibility of linear independence between the row vectors corresponding to the information bits in the generator matrix maximum , thereby making the SCL decoding error probability smaller and the OSD decoding error probability smaller, thereby improving the reliability of encoding.

下面,通过具体示例,对图4实施例所示的方法进行说明。Next, the method shown in the embodiment of FIG. 4 will be described with specific examples.

示例1,假设译码算法为SCL译码算法,N为16,K为4,L为4。Example 1, assuming that the decoding algorithm is the SCL decoding algorithm, N is 16, K is 4, and L is 4.

初始化第一位置集合:确定初始化的第一位置集合中包括生成矩阵最后一行的行序号(16),即,初始化的第一位置集合为{16}。Initialize the first position set: It is determined that the initialized first position set includes the row number (16) of the last row of the generator matrix, that is, the initialized first position set is {16}.

初始化第二位置集合:确定初始化的第二位置集合中包括16个信道中子信道可靠性最高的K+L(8)个子信道对应的行序号,假设初始化的第二位置集合为{1,3,4,5,8,9,12,15}。Initialize the second location set: determine that the initialized second location set includes the row numbers corresponding to the K+L(8) sub-channels with the highest sub-channel reliability among the 16 channels, assuming that the initialized second location set is {1,3 ,4,5,8,9,12,15}.

分别获取生成矩阵中第1,3,4,5,8,9,12,15行中每一行与第16行的线性无关的可能性,假设生成矩阵中第3行与第16行的线性无关的可能性最大,则将行序号3添加至当前第一位置集合,得到新的第一位置集合,在当前第二位置集合中删除行序号3,得到新的第二位置集合。新的第一位置集合为{16,3},新的第二位置集合为{1,4,5,8,9,12,15}。Obtain the probability that each row in the 1, 3, 4, 5, 8, 9, 12, and 15 rows in the generator matrix is linearly independent of the 16th row, assuming that the 3rd row in the generator matrix is linearly independent from the 16th row. is most likely, then add row number 3 to the current first position set to obtain a new first position set, and delete row number 3 from the current second position set to obtain a new second position set. The new first position set is {16,3}, and the new second position set is {1,4,5,8,9,12,15}.

分别获取生成矩阵中第1,4,5,8,9,12,15行中每一行与第16和3行的线性无关的可能性,假设生成矩阵中第9行与第16和3行的线性无关的可能性最大,则将行序号9添加至当前第一位置集合,得到新的第一位置集合,在第二位置集合中删除行序号9,得到新的第二位置集合。新的第一位置集合为{16,3,9},新的第二位置集合为{1,4,5,8,12,15}。Obtain the probability that each of rows 1, 4, 5, 8, 9, 12, and 15 in the generator matrix is linearly independent of rows 16 and 3, assuming that rows 9 and 16 and 3 in the generator matrix are The possibility of linear independence is the greatest, then the row number 9 is added to the current first position set to obtain a new first position set, and the row number 9 is deleted from the second position set to obtain a new second position set. The new set of first positions is {16,3,9}, and the new set of second positions is {1,4,5,8,12,15}.

重复上述过程,直至当前第一位置集合中包括K=4个行序号。假设当前第一位置集合中为{16,3,9,8},则确定信息比特的位置为3,8,9,16。The above process is repeated until the current first location set includes K=4 row numbers. Assuming that the current first position set is {16, 3, 9, 8}, the positions of the information bits are determined to be 3, 8, 9, and 16.

示例2,假设译码算法为OSD译码算法,N为16,K为8。Example 2, it is assumed that the decoding algorithm is an OSD decoding algorithm, N is 16, and K is 8.

先计算第一汉明距离,第一汉明距离的计算过程可以参见S401,此处不再进行赘述。First, the first Hamming distance is calculated. For the calculation process of the first Hamming distance, reference may be made to S401, which will not be repeated here.

初始化第一位置集合:确定初始化的第一位置集合中包括行重量大于第一汉明距离的行的行序号。假设初始化的第一位置集合为{2,3,8,10,16}。Initializing the first position set: It is determined that the initialized first position set includes the row number of the row whose row weight is greater than the first Hamming distance. Suppose the initial set of first positions is {2, 3, 8, 10, 16}.

初始化第二位置集合:确定初始化的第二位置集合中包括行重量等于第一汉明距离的行的行序号。假设初始化的第二位置集合为{4,7,9,13,15}。Initialize the second position set: determine the row number of the row whose row weight is equal to the first Hamming distance in the initialized second position set. Assume that the initialized second position set is {4, 7, 9, 13, 15}.

分别获取生成矩阵中第4,7,9,13,15行中每一行与第一位置集合中所有行(2,3,8,10,16)的线性无关的可能性,假设生成矩阵中第7行与第一位置集合中所有行(2,3,8,10,16)的线性无关的可能性最大,则将行序号7添加至当前第一位置集合,得到新的第一位置集合,在当前第二位置集合中删除行序号7,得到新的第二位置集合。新的第一位置集合为{2,3,8,10,16,7},新的第二位置集合为{4,9,13,15}。Obtain the probability that each row in the 4th, 7th, 9th, 13th, and 15th rows in the generator matrix is linearly independent of all rows (2, 3, 8, 10, 16) in the first position set, assuming that the th row in the generator matrix is 7 rows are most likely to be linearly independent of all rows (2, 3, 8, 10, 16) in the first position set, then add row number 7 to the current first position set to obtain a new first position set, Delete row number 7 in the current second position set to obtain a new second position set. The new first position set is {2, 3, 8, 10, 16, 7}, and the new second position set is {4, 9, 13, 15}.

重复上述过程,直至当前第一位置集合中包括K=8个行序号。假设当前第一位置集合中为{2,3,8,10,16,7,4,9},则确定信息比特的位置为2,3,4,7,8,9,10,16。The above process is repeated until the current first location set includes K=8 row numbers. Assuming that the current first position set is {2, 3, 8, 10, 16, 7, 4, 9}, the positions of the information bits are determined to be 2, 3, 4, 7, 8, 9, 10, 16.

在上述任意一个实施例的基础上,下面,结合图5-图6所示仿真数据对基于本申请所示的编码方法的译码效率进行说明。On the basis of any one of the above embodiments, the decoding efficiency based on the encoding method shown in the present application will be described below with reference to the simulation data shown in FIG. 5 to FIG. 6 .

当本申请编码对应的仿真参数和现有编码对应的仿真参数如表1所示时,通过本申请所示的编码方式与通过现有的编码方式的仿真结果可以如图5所示。When the simulation parameters corresponding to the coding of the present application and the simulation parameters corresponding to the existing coding are shown in Table 1, the simulation results using the coding method shown in the present application and the existing coding method may be as shown in FIG. 5 .

表1Table 1

// 本申请编码对应的仿真参数The simulation parameters corresponding to the coding in this application 现有编码对应的仿真参数Simulation parameters corresponding to existing codes 信道channel AWGNAWGN AWGNAWGN 调制方式Modulation BPSKBPSK BPSKBPSK 构造方式Construction method New CodeNew Code GAGA 级联码concatenated code NO CRCNO CRC NO CRCNO CRC 译码算法Decoding algorithm SCL(L=8)SCL(L=8) SCL(L=8)SCL(L=8) 信息位长度KInformation bit length K 6464 6464 码字长度NCodeword length N 128128 128128

请参见表1,本申请编码和现有编码对应的仿真参数中,信道均为加性白高斯噪声(Additive White Gaussian Noise,AWGN)信道,调制方式均为二进制相移键控(BinaryPhase Shift Keying,BPSK),本申请的码字构造方式成为New Code方式,现有的码字构造方式为高斯近似(Gaussian Approximation,GA),均不采用CRC码,译码算法均为SCL译码算法(保留译码路径L均为8),信息位长度K均为64,码字长度N均为128。Please refer to Table 1. Among the simulation parameters corresponding to the coding of the present application and the existing coding, the channels are all additive white Gaussian Noise (AWGN) channels, and the modulation methods are all binary phase shift keying (Binary Phase Shift Keying, BPSK), the codeword construction method of the present application becomes the New Code method, and the existing codeword construction method is Gaussian Approximation (GA), does not use CRC code, and the decoding algorithm is the SCL decoding algorithm (reserved decoding). The code paths L are all 8), the information bit lengths K are all 64, and the codeword lengths N are all 128.

图5为本申请提供的一种仿真示意图。请参见图5,横轴表示信噪比(signal tonoise ratio,SNR),纵轴表示误块率(Block Error Rate,BLER)。FIG. 5 is a schematic diagram of a simulation provided by the present application. Referring to FIG. 5 , the horizontal axis represents a signal tonoise ratio (SNR), and the vertical axis represents a block error rate (Block Error Rate, BLER).

请参见图5,虚线表示采用现有编码方式进行编码时对应的译码的误块率,实线表示采用本申请的编码方式进行编码时对应的译码的误块率。由图5可知,在均不采用CRC时,采用本申请的编码方式,可以明显的降低译码过程中的误块率,使得译码性能更高。Referring to FIG. 5 , the dotted line represents the corresponding decoding block error rate when using the existing encoding method for encoding, and the solid line represents the corresponding decoding block error rate when using the encoding method of the present application for encoding. It can be seen from FIG. 5 that when CRC is not used, the coding method of the present application can significantly reduce the block error rate in the decoding process, so that the decoding performance is higher.

当本申请编码对应的仿真参数和现有编码对应的仿真参数如表2所示时,通过本申请所示的编码方式与通过现有的编码方式的仿真结果可以如图6所示。When the simulation parameters corresponding to the coding of the present application and the simulation parameters corresponding to the existing coding are shown in Table 2, the simulation results using the coding method shown in the present application and the existing coding method may be as shown in FIG. 6 .

表2Table 2

// 本申请编码对应的仿真参数The simulation parameters corresponding to the coding in this application 现有编码对应的仿真参数Simulation parameters corresponding to existing codes 信道channel AWGNAWGN AWGNAWGN 调制方式Modulation BPSKBPSK BPSKBPSK 构造方式Construction method New CodeNew Code GAGA 级联码concatenated code NO CRCNO CRC CRC-4CRC-4 译码算法Decoding algorithm SCL(L=8)SCL(L=8) SCL(L=8)SCL(L=8) 信息位长度KInformation bit length K 6464 6464 码字长度NCodeword length N 128128 128128

请参见表2,本申请编码和现有编码对应的仿真参数中,信道均为AWGN信道,调制方式均为BPSK,本申请的码字构造方式成为New Code方式,现有的码字构造方式为GA,本申请不采用CRC码,现有编码采用4为CRC码,译码算法均为SCL译码算法(保留译码路径L均为8),信息位长度K均为64,码字长度N均为128。Please refer to Table 2. In the simulation parameters corresponding to the coding of the present application and the existing coding, the channels are all AWGN channels, and the modulation methods are all BPSK. The codeword construction method of the present application is the New Code method, and the existing codeword construction method is GA, this application does not use CRC code, the existing code adopts 4 as CRC code, the decoding algorithm is SCL decoding algorithm (the reserved decoding path L is 8), the information bit length K is 64, and the code word length N is Both are 128.

图6为本申请提供的一种仿真示意图。请参见图6,横轴表示SNR,纵轴表示BLER。FIG. 6 is a schematic diagram of simulation provided by the present application. Referring to Figure 6, the horizontal axis represents SNR and the vertical axis represents BLER.

请参见图6,虚线表示采用现有编码方式进行编码时对应的译码的误块率,实线表示采用本申请的编码方式进行编码时对应的译码的误块率。由图6可知,在本申请不采用CRC,现有编码采用4比特CRC码时,采用本申请的编码方式,可以明显的降低译码过程中的误块率,使得译码性能更高,且可以减小CRC校验带来的复杂度。Referring to FIG. 6 , the dotted line represents the corresponding decoding block error rate when using the existing encoding method for encoding, and the solid line represents the corresponding decoding block error rate when using the encoding method of the present application for encoding. It can be seen from FIG. 6 that when the present application does not use CRC, and the existing encoding adopts a 4-bit CRC code, the encoding method of the present application can significantly reduce the block error rate in the decoding process, so that the decoding performance is higher, and The complexity brought by the CRC check can be reduced.

当本申请编码对应的仿真参数和现有编码对应的仿真参数如表3所示时,通过本申请所示的编码方式与通过现有的编码方式的仿真结果可以如图7所示。When the simulation parameters corresponding to the coding of the present application and the simulation parameters corresponding to the existing coding are shown in Table 3, the simulation results of the coding methods shown in the present application and the existing coding methods can be as shown in FIG. 7 .

表3table 3

// 本申请编码对应的仿真参数The simulation parameters corresponding to the coding in this application 现有编码对应的仿真参数Simulation parameters corresponding to existing codes 信道channel AWGNAWGN AWGNAWGN 调制方式Modulation BPSKBPSK BPSKBPSK 构造方式Construction method New CodeNew Code GAGA 级联码concatenated code NO CRCNO CRC NO CRCNO CRC 译码算法Decoding algorithm OSD-3OSD-3 OSD-3OSD-3 信息位长度KInformation bit length K 3232 3232 码字长度NCodeword length N 6464 6464

请参见表3,本申请编码和现有编码对应的仿真参数中,信道均为AWGN信道,调制方式均为BPSK,本申请的码字构造方式成为New Code方式,现有的码字构造方式为GA,均不采用CRC码,译码算法均为OSD译码算法,信息位长度K均为32,码字长度N均为64。Please refer to Table 3. In the simulation parameters corresponding to the coding of the present application and the existing coding, the channels are all AWGN channels, and the modulation methods are all BPSK. The codeword construction method of the present application is the New Code method, and the existing codeword construction method is GA does not use CRC code, the decoding algorithm is OSD decoding algorithm, the information bit length K is 32, and the code word length N is 64.

图7为本申请提供的一种仿真示意图。请参见图7,横轴表示SNR,纵轴表示误块率(Block Error Rate,BLER)。FIG. 7 is a schematic diagram of a simulation provided by the present application. Referring to FIG. 7 , the horizontal axis represents the SNR, and the vertical axis represents the Block Error Rate (BLER).

请参见图7,虚线表示采用现有编码方式进行编码时对应的译码的误块率,实线表示采用本申请的编码方式进行编码时对应的译码的误块率。由图7可知,在均不采用CRC时,采用本申请的编码方式,可以明显的降低译码过程中的误块率,使得译码性能更高。Referring to FIG. 7 , the dotted line represents the corresponding decoding block error rate when using the existing encoding method for encoding, and the solid line represents the corresponding decoding block error rate when using the encoding method of the present application for encoding. It can be seen from FIG. 7 that, when CRC is not used, the coding method of the present application can significantly reduce the block error rate in the decoding process, so that the decoding performance is higher.

图8为本申请实施例提供的编码装置的结构示意图。请参见图8,该编码装置10可以包括:FIG. 8 is a schematic structural diagram of an encoding apparatus provided by an embodiment of the present application. Referring to FIG. 8, the encoding device 10 may include:

第一获取模块11,用于获取N个待编码比特,所述N个待编码比特中包括K个信息比特和N-K个固定比特,N为正整数,所述K为正整数,所述K小于或等于所述N;The first acquisition module 11 is used to acquire N bits to be encoded, the N bits to be encoded include K information bits and N-K fixed bits, N is a positive integer, the K is a positive integer, and the K is less than or equal to said N;

第二获取模块12,用于获取所述N个待编码比特的生成矩阵;The second obtaining module 12 is used to obtain the generator matrix of the N bits to be encoded;

确定模块13,用于根据所述生成矩阵中行向量之间的线性无关度量,确定所述信息比特的位置;A determination module 13, configured to determine the position of the information bit according to the linearly independent metric between the row vectors in the generator matrix;

编码模块14,用于根据所述信息比特的位置,对所述待编码比特进行编码。The encoding module 14 is configured to encode the bits to be encoded according to the positions of the information bits.

可选的,第一获取模块11可以执行图3实施例中的S301。Optionally, the first obtaining module 11 may execute S301 in the embodiment of FIG. 3 .

可选的,第二获取模块12可以执行图3实施例中的S302。Optionally, the second obtaining module 12 may execute S302 in the embodiment of FIG. 3 .

可选的,确定模块13可以执行图3实施例中的S303和图4所示的实施例。Optionally, the determining module 13 may execute S303 in the embodiment of FIG. 3 and the embodiment shown in FIG. 4 .

可选的,编码模块14可以执行图3实施例中的S304。Optionally, the encoding module 14 may perform S304 in the embodiment of FIG. 3 .

可选的,编码装置10还可以包括发送模块,用于发送编码后的信息。Optionally, the encoding apparatus 10 may further include a sending module for sending the encoded information.

需要说明的是,本申请实施例所示的编码装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。It should be noted that the encoding apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, which will not be repeated here.

在一种可能的实施方式中,所述线性无关度量为线性无关的可能性。In a possible implementation, the linearly independent metric is the likelihood of being linearly independent.

在一种可能的实施方式中,所述确定模块13具体用于:In a possible implementation manner, the determining module 13 is specifically configured to:

初始化第一位置集合,初始化的第一位置集合中包括所述生成矩阵中行重量最大的行向量的行序号;Initializing the first position set, the initialized first position set includes the row sequence number of the row vector with the largest row weight in the generator matrix;

初始化第二位置集合,初始化的第二位置集合中包括至少一个行序号;initializing a second location set, where the initialized second location set includes at least one row sequence number;

根据所述生成矩阵中所述第二位置集合中每个行序号对应的行向量,与所述生成矩阵中所述第一位置集合中的行序号对应的行向量之间的线性无关度量,确定所述信息比特的位置。According to the linear independence measure between the row vector corresponding to each row number in the second position set in the generator matrix and the row vector corresponding to the row number in the first position set in the generator matrix, determine the location of the information bits.

在一种可能的实施方式中,所述初始化的第二位置集合中包括可靠度最高的K+L个子信道对应的行序号;In a possible implementation manner, the initialized second location set includes row sequence numbers corresponding to the K+L sub-channels with the highest reliability;

其中,所述L为串行抵消列表SCL译码的保留路径数量,所述保留路径数量为所述SCL译码中每步译码保留的最大路径数量。Wherein, the L is the number of reserved paths for serial cancellation list SCL decoding, and the reserved path number is the maximum number of paths reserved for each step of decoding in the SCL decoding.

在一种可能的实施方式中,所述K+L个子信道为N个子信道中可靠度最高的K+L个子信道;或者,In a possible implementation manner, the K+L subchannels are the K+L subchannels with the highest reliability among the N subchannels; or,

所述K+L个子信道为N-X个子信道中可靠度最高的K+L个子信道,所述X为所述初始化的第一位置集合中包括的行序号的个数,所述N-X个子信道为所述N个子信道中除所述第一位置集合中行序号对应的子信道外的子信道。The K+L sub-channels are the K+L sub-channels with the highest reliability among the N-X sub-channels, the X is the number of row sequence numbers included in the initialized first position set, and the N-X sub-channels are all the sub-channels. Subchannels in the N subchannels except the subchannels corresponding to the row numbers in the first location set.

在一种可能的实施方式中,所述生成矩阵为所述待编码比特的极化码矩阵,所述极化码矩阵包括N行和N列;In a possible implementation manner, the generator matrix is a polar code matrix of the to-be-coded bits, and the polar code matrix includes N rows and N columns;

所述初始化的第一位置集合包括所述生成矩阵中行重大于第一汉明距离的行的序号;其中,所述第一汉明距离为所述信息比特和所述固定比特按照不同方式排列时的最小汉明距离中的最大值,所述信息比特和所述固定比特按照一种方式排列对应一个最小汉明距离,所述信息比特和所述固定比特按照一种方式排列时的最小汉明距离为,所述信息比特和所述固定比特按照该方式排列时所述生成矩阵中信息比特位对应的行的最小行重。The initialized first position set includes the serial number of the row whose row weight is greater than the first Hamming distance in the generator matrix; wherein, the first Hamming distance is when the information bits and the fixed bits are arranged in different ways. The maximum value of the minimum Hamming distances of The distance is the minimum row weight of the row corresponding to the information bit in the generator matrix when the information bits and the fixed bits are arranged in this manner.

在一种可能的实施方式中,所述初始化的第二位置集合中包括所述生成矩阵中行重等于所述第一汉明距离的行的序号。In a possible implementation manner, the initialized second position set includes a sequence number of a row in the generator matrix whose row weight is equal to the first Hamming distance.

在一种可能的实施方式中,所述初始化的第二位置集合包括所述生成矩阵中的全部行序号;或者,In a possible implementation manner, the initialized second position set includes all row numbers in the generator matrix; or,

所述初始化的第二位置集合包括所述生成矩阵中除所述初始化的第一位置集合中的行序号之外的行序号。The initialized second set of positions includes row numbers in the generator matrix other than row numbers in the initialized first set of positions.

在一种可能的实施方式中,所述确定模块13用于:In a possible implementation manner, the determining module 13 is used for:

执行第一操作,所述第一操作包括:根据所述生成矩阵中当前第二位置集合中每个行序号对应的行向量,与所述生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关度量,在当前第二位置集合中确定目标行序号;在当前第二位置集合中,所述目标行序号对应所述生成矩阵中的行向量与所述生成矩阵中当前第一位置集合中的行序号对应的行向量之间的线性无关度量最大;Performing a first operation, the first operation includes: according to the row vector corresponding to each row sequence number in the current second position set in the generator matrix, and the row sequence number corresponding to the row sequence number in the current first position set in the generator matrix The linear independence measure between row vectors, the target row number is determined in the current second position set; in the current second position set, the target row number corresponds to the row vector in the generator matrix and the current row vector in the generator matrix. The linear independence metric between the row vectors corresponding to the row numbers in the first position set is the largest;

执行第二操作,所述第二操作包括:将所述目标行序号添加至当前第一位置集合,得到新的第一位置集合,并在当前第二位置集合中删除所述目标行序号,得到新的第二位置集合;Performing a second operation, the second operation includes: adding the target row sequence number to the current first position set to obtain a new first position set, and deleting the target row sequence number in the current second position set to obtain a new set of second positions;

重复执行所述第一操作和所述第二操作,直至新的第一位置集合中包括K个行序号时,将当前第一位置集合中的行序号确定为所述信息比特的位置。The first operation and the second operation are repeatedly performed until the new first position set includes K row numbers, and the row number in the current first position set is determined as the position of the information bit.

在一种可能的实施方式中,所述确定模块13用于:In a possible implementation manner, the determining module 13 is used for:

在Y大于Z时,在所述Y个目标行序号中确定Z个目标行序号,所述Y为所述目标行序号的个数,所述Z=K-T,所述T为当前第一位置集合中包括的行序号的个数,所述Y为大于1的整数,所述Z为小于或等于所述K的正整数;When Y is greater than Z, Z target row numbers are determined among the Y target row numbers, where Y is the number of target row numbers, Z=K-T, and T is the current first position set The number of row numbers included in the Y, the Y is an integer greater than 1, and the Z is a positive integer less than or equal to the K;

将所述Z个目标行序号添加至当前第一位置集合,并在当前第二位置集合中删除所述Z个目标行序号。The Z target row sequence numbers are added to the current first position set, and the Z target row sequence numbers are deleted from the current second position set.

在一种可能的实施方式中,所述Z个目标行序号为所述Y个目标行序号中可靠度最高的Z个子信道对应的行序号;或者,In a possible implementation manner, the Z target row numbers are row numbers corresponding to the Z sub-channels with the highest reliability among the Y target row numbers; or,

所述Z个目标行序号为所述Y个目标行序号中行序号最大的Z个行序号;或者,The Z target row sequence numbers are the Z row sequence numbers with the largest row sequence numbers in the Y target row sequence numbers; or,

所述Z个目标行序号为所述Y个目标行序号中行序号最小的Z个行序号。The Z target row sequence numbers are the Z row sequence numbers with the smallest row sequence numbers among the Y target row sequence numbers.

在一种可能的实施方式中,所述信息比特包括循环冗余校验CRC比特和/或奇偶校验PC比特。In a possible implementation, the information bits include cyclic redundancy check CRC bits and/or parity check PC bits.

图9为本申请实施例提供的编码装置的硬件结构示意图。请参见图9,该编码装置20可以包括:处理器21以及存储器22;其中,FIG. 9 is a schematic diagram of a hardware structure of an encoding apparatus provided by an embodiment of the present application. Referring to FIG. 9, the encoding apparatus 20 may include: a processor 21 and a memory 22; wherein,

存储器22,用于存储计算机程序,有时还用于存储中间数据;memory 22, for storing computer programs, and sometimes for storing intermediate data;

处理器21,用于执行存储器存储的计算机程序,以实现上述编码方法中的各个步骤。具体可以参见前面方法实施例中的相关描述。The processor 21 is configured to execute the computer program stored in the memory, so as to realize each step in the above encoding method. For details, refer to the relevant descriptions in the foregoing method embodiments.

可选地,存储器22既可以是独立的,也可以跟处理器21集成在一起。在有些实施方式中,存储器甚至还可以位于装置之外。Optionally, the memory 22 may be independent or integrated with the processor 21 . In some embodiments, the memory may even be located outside the device.

当所述存储器22是独立于处理器21之外的器件时,所述接收设备20还可以包括总线23,用于连接所述存储器22和处理器21。When the memory 22 is a device independent of the processor 21 , the receiving device 20 may further include a bus 23 for connecting the memory 22 and the processor 21 .

图9的编码装置还可以进一步包括发送器,用于发送编码后的信息。The encoding apparatus of FIG. 9 may further include a transmitter for transmitting the encoded information.

本实施例提供的编码设备可以为终端设备,或者也以为网络设备,可用于执行上述的编码方法,其实现方式和技术效果类似,本实施例此处不再赘述。The encoding device provided in this embodiment may be a terminal device, or may also be a network device, and may be used to execute the foregoing encoding method. The implementation manner and technical effect thereof are similar, and details are not described herein again in this embodiment.

本申请实施例还提供一种存储介质,所述存储介质包括计算机程序,所述计算机程序用于实现如上所述的编码方法。An embodiment of the present application further provides a storage medium, where the storage medium includes a computer program, and the computer program is used to implement the encoding method as described above.

本申请实施例还提供一种芯片或者集成电路,包括:存储器和处理器;Embodiments of the present application further provide a chip or integrated circuit, including: a memory and a processor;

所述存储器,用于存储程序指令,有时还用于存储中间数据;The memory is used to store program instructions and sometimes intermediate data;

所述处理器,用于调用所述存储器中存储的所述程序指令以实现如上所述的编码方法。The processor is configured to invoke the program instructions stored in the memory to implement the encoding method described above.

可选的,存储器可以是独立的,也可以跟处理器集成在一起。在有些实施方式中,存储器还可以位于所述芯片或者集成电路之外。Optionally, the memory can be independent or integrated with the processor. In some embodiments, the memory may also be located outside the chip or integrated circuit.

本申请实施例还提供一种程序产品,所述程序产品包括计算机程序,所述计算机程序存储在存储介质中,所述计算机程序用于实现上述的编码方法。An embodiment of the present application further provides a program product, where the program product includes a computer program, and the computer program is stored in a storage medium, and the computer program is used to implement the above encoding method.

结合本发明实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于基站或终端中。当然,处理器和存储介质也可以作为分立组件存在于接收设备中。The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, read only memory (Read Only Memory, ROM), erasable programmable read only memory ( Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), registers, hard disks, removable hard disks, compact disks (CD-ROMs) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Alternatively, the ASIC may be located in the base station or in the terminal. Of course, the processor and storage medium may also exist in the receiving device as discrete components.

应理解,上述处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that the above-mentioned processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC) and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one magnetic disk memory, and may also be a U disk, a removable hard disk, a read-only memory, a magnetic disk or an optical disk, and the like.

总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(ExtendedIndustry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component (Peripheral Component, PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For convenience of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.

上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one item (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .

本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that, in one or more of the above examples, the functions described in the embodiments of the present invention may be implemented by hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

在本发明所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically alone, or two or more modules may be integrated into one unit. The units formed by the above modules can be implemented in the form of hardware, or can be implemented in the form of hardware plus software functional units.

Claims (26)

1. A method of encoding, comprising:
acquiring N bits to be coded, wherein the N bits to be coded comprise K information bits and N-K fixed bits, N is a positive integer, K is a positive integer, and K is less than or equal to N;
acquiring a generating matrix of the N bits to be coded;
determining the position of the information bit according to the linear irrelevance measurement between the row vectors in the generating matrix;
and coding the bit to be coded according to the position of the information bit.
2. The method of claim 1, wherein the linearly independent metric is a linearly independent likelihood.
3. The method of claim 1 or 2, wherein determining the position of the information bit according to a linear independence metric between row vectors in the generator matrix comprises:
initializing a first position set, wherein the initialized first position set comprises a row sequence number of a row vector with the maximum row weight in the generating matrix;
initializing a second position set, wherein the initialized second position set comprises at least one row sequence number;
and determining the position of the information bit according to the linear independence measurement between the row vector corresponding to each row sequence number in the second position set in the generating matrix and the row vector corresponding to the row sequence number in the first position set in the generating matrix.
4. The method according to claim 3, wherein the initialized second location set comprises a row sequence number corresponding to the K + L subchannels with the highest reliability;
and L is the reserved path number of the serial cancellation list SCL decoding, and the reserved path number is the maximum path number reserved for each step of decoding in the SCL decoding.
5. The method of claim 4,
the K + L sub-channels are K + L sub-channels with the highest reliability in the N sub-channels; or,
the K + L sub-channels are K + L sub-channels with the highest reliability in N-X sub-channels, where X is the number of row sequence numbers included in the initialized first location set, and the N-X sub-channels are sub-channels of the N sub-channels except sub-channels corresponding to the row sequence numbers in the first location set.
6. The method of claim 3, wherein the generator matrix is a polar code matrix of the bits to be encoded, and the polar code matrix comprises N rows and N columns;
the initialized first position set comprises sequence numbers of rows with row weights larger than a first Hamming distance in the generator matrix; the first hamming distance is a maximum value of minimum hamming distances when the information bits and the fixed bits are arranged in different manners, the information bits and the fixed bits are arranged in a manner corresponding to one minimum hamming distance, the minimum hamming distance when the information bits and the fixed bits are arranged in a manner is a minimum line repetition of a line corresponding to an information bit in the generator matrix when the information bits and the fixed bits are arranged in the manner.
7. The method of claim 6, wherein the initialized second set of locations comprises sequence numbers of rows in the generator matrix with row weights equal to the first Hamming distance.
8. The method of claim 3,
the initialized second location set comprises all row sequence numbers in the generator matrix; or,
the initialized second set of locations comprises a row sequence number in the generator matrix except for a row sequence number in the initialized first set of locations.
9. The method according to any of claims 4-8, wherein said determining the position of the information bit according to a linear independence metric between the row vector corresponding to each row sequence number in the second set of positions in the generator matrix and the row vector corresponding to the row sequence number in the first set of positions in the generator matrix comprises:
performing a first operation, the first operation comprising: determining a target row sequence number in the current second position set according to a linear independence measure between a row vector corresponding to each row sequence number in the current second position set in the generated matrix and a row vector corresponding to a row sequence number in the current first position set in the generated matrix; in the current second position set, the linear independence metric between the row vector corresponding to the target row sequence number in the generating matrix and the row vector corresponding to the row sequence number in the current first position set in the generating matrix is the largest;
performing a second operation, the second operation comprising: adding the target row sequence number to the current first position set to obtain a new first position set, and deleting the target row sequence number in the current second position set to obtain a new second position set;
and repeatedly executing the first operation and the second operation until the new first position set comprises K row serial numbers, and determining the row serial number in the current first position set as the position of the information bit.
10. The method of claim 9, wherein adding the target row sequence number to a current first location set and deleting the target row sequence number from a current second location set comprises:
when Y is larger than Z, Z target row sequence numbers are determined in the Y target row sequence numbers, Y is the number of the target row sequence numbers, Z is K-T, T is the number of the row sequence numbers included in the current first position set, Y is an integer larger than 1, and Z is a positive integer smaller than or equal to K;
and adding the Z target row serial numbers to the current first position set, and deleting the Z target row serial numbers in the current second position set.
11. The method of claim 10,
the Z target row serial numbers are row serial numbers corresponding to Z sub-channels with highest reliability in the Y target row serial numbers; or,
the Z target row serial numbers are the Z row serial numbers with the largest row serial number in the Y target row serial numbers; or,
and the Z target row serial numbers are the Z row serial numbers with the minimum row serial number in the Y target row serial numbers.
12. The method according to any of claims 1-2, 4-8, 10-11, characterized in that the information bits comprise cyclic redundancy check, CRC, bits and/or parity check, PC, bits.
13. An encoding apparatus, comprising:
a first obtaining module, configured to obtain N bits to be encoded, where the N bits to be encoded include K information bits and N-K fixed bits, N is a positive integer, K is a positive integer, and K is less than or equal to N;
a second obtaining module, configured to obtain a generator matrix of the N bits to be encoded;
a determining module, configured to determine a position of the information bit according to a linear independence metric between row vectors in the generator matrix;
and the coding module is used for coding the bits to be coded according to the positions of the information bits.
14. The apparatus of claim 13, wherein the linearly independent metric is a linearly independent likelihood.
15. The apparatus according to claim 13 or 14, wherein the determining module is specifically configured to:
initializing a first position set, wherein the initialized first position set comprises a row sequence number of a row vector with the maximum row weight in the generating matrix;
initializing a second position set, wherein the initialized second position set comprises at least one row sequence number;
and determining the position of the information bit according to a linear independence measure between a row vector corresponding to each row sequence number in the second position set in the generated matrix and a row vector corresponding to a row sequence number in the first position set in the generated matrix.
16. The apparatus according to claim 15, wherein the initialized second location set includes a row sequence number corresponding to K + L subchannels with highest reliability;
and L is the reserved path number of the serial cancellation list SCL decoding, wherein the reserved path number is the maximum path number reserved in each step of decoding in the SCL decoding.
17. The apparatus of claim 16,
the K + L sub-channels are K + L sub-channels with the highest reliability in the N sub-channels; or,
the K + L sub-channels are K + L sub-channels with the highest reliability in N-X sub-channels, where X is the number of row sequence numbers included in the initialized first location set, and the N-X sub-channels are sub-channels of the N sub-channels except sub-channels corresponding to the row sequence numbers in the first location set.
18. The apparatus of claim 15, wherein the generator matrix is a polar code matrix of the bits to be encoded, and wherein the polar code matrix comprises N rows and N columns;
the initialized first position set comprises sequence numbers of rows with row weights larger than a first Hamming distance in the generator matrix; the first hamming distance is the maximum value of the minimum hamming distances when the information bits and the fixed bits are arranged in different ways, the information bits and the fixed bits are arranged in a way corresponding to one minimum hamming distance, the minimum hamming distance when the information bits and the fixed bits are arranged in a way is the minimum line weight of the lines corresponding to the information bits in the generating matrix when the information bits and the fixed bits are arranged in the way.
19. The apparatus of claim 18, wherein the initialized second set of locations comprises sequence numbers of rows in the generator matrix with row weights equal to the first hamming distance.
20. The apparatus of claim 15,
the initialized second location set comprises all row sequence numbers in the generator matrix; or,
the initialized second set of locations comprises a row sequence number in the generator matrix except for a row sequence number in the initialized first set of locations.
21. The apparatus according to any of claims 16-20, wherein the determining module is configured to:
performing a first operation, the first operation comprising: determining a target row sequence number in the current second position set according to a linear independence measure between a row vector corresponding to each row sequence number in the current second position set in the generated matrix and a row vector corresponding to a row sequence number in the current first position set in the generated matrix; in the current second position set, the linear independence metric between the row vector corresponding to the target row sequence number in the generating matrix and the row vector corresponding to the row sequence number in the current first position set in the generating matrix is the largest;
performing a second operation, the second operation comprising: adding the target row sequence number to the current first position set to obtain a new first position set, and deleting the target row sequence number in the current second position set to obtain a new second position set;
and repeatedly executing the first operation and the second operation until the new first position set comprises K line sequence numbers, and determining the line sequence number in the current first position set as the position of the information bit.
22. The apparatus of claim 21, wherein the determining module is configured to:
when Y is larger than Z, Z target row sequence numbers are determined in the Y target row sequence numbers, Y is the number of the target row sequence numbers, Z is K-T, T is the number of the row sequence numbers included in the current first position set, Y is an integer larger than 1, and Z is a positive integer smaller than or equal to K;
and adding the Z target row sequence numbers to the current first position set, and deleting the Z target row sequence numbers in the current second position set.
23. The apparatus of claim 22,
the Z target row serial numbers are row serial numbers corresponding to Z sub-channels with highest reliability in the Y target row serial numbers; or,
the Z target row serial numbers are the Z row serial numbers with the largest row serial number in the Y target row serial numbers; or,
and the Z target row serial numbers are the Z row serial numbers with the minimum row serial number in the Y target row serial numbers.
24. The apparatus according to any of claims 13-14, 16-20, 22-23, wherein the information bits comprise cyclic redundancy check, CRC, bits and/or parity check, PC, bits.
25. An encoding apparatus, comprising: memory, a processor and a computer program, the computer program being stored in the memory, the processor running the computer program to perform the method of any of claims 1 to 12.
26. A storage medium, characterized in that the storage medium comprises a computer program for implementing the method according to any one of claims 1 to 12.
CN201910087281.1A 2019-01-29 2019-01-29 Encoding method, device and equipment Active CN111490797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910087281.1A CN111490797B (en) 2019-01-29 2019-01-29 Encoding method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910087281.1A CN111490797B (en) 2019-01-29 2019-01-29 Encoding method, device and equipment

Publications (2)

Publication Number Publication Date
CN111490797A CN111490797A (en) 2020-08-04
CN111490797B true CN111490797B (en) 2022-07-22

Family

ID=71797164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910087281.1A Active CN111490797B (en) 2019-01-29 2019-01-29 Encoding method, device and equipment

Country Status (1)

Country Link
CN (1) CN111490797B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102077470A (en) * 2009-05-25 2011-05-25 华为技术有限公司 Encoding method and device using linear block code and method and device for generating linear block code
CN108429553A (en) * 2017-02-15 2018-08-21 中兴通讯股份有限公司 Coding method, code device and the equipment of polarization code
CN108631942A (en) * 2017-03-24 2018-10-09 华为技术有限公司 Encoding method, decoding method, device and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7831895B2 (en) * 2006-07-25 2010-11-09 Communications Coding Corporation Universal error control coding system for digital communication and data storage systems
CN101414833B (en) * 2007-10-19 2010-08-04 中兴通讯股份有限公司 Coding method and device for low-density generator matrix code
CN101488761B (en) * 2009-02-27 2011-01-19 北京交通大学 LDPC constructing method with short ring or low duplicate code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102077470A (en) * 2009-05-25 2011-05-25 华为技术有限公司 Encoding method and device using linear block code and method and device for generating linear block code
CN108429553A (en) * 2017-02-15 2018-08-21 中兴通讯股份有限公司 Coding method, code device and the equipment of polarization code
CN108631942A (en) * 2017-03-24 2018-10-09 华为技术有限公司 Encoding method, decoding method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
系统极化码的置信传播译码性能分析;陈国泰 等;《电讯技术》;20160828;第56卷(第8期);第839-843页 *

Also Published As

Publication number Publication date
CN111490797A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
US11374682B2 (en) Method and apparatus for encoding data using a polar code
US20240031058A1 (en) Encoding and modulation method, demodulation and decoding method, and apparatus
US20220123766A1 (en) Method And Device For Interleaving Data
JP6481913B2 (en) Polar code generation method and apparatus
US20240039777A1 (en) Modulation method, demodulation method, and communication apparatus
CN111385059B (en) Method and apparatus for polar coding modulation
CN112019298B (en) Coding modulation method, demodulation decoding method, device and equipment
US12074713B2 (en) Polar code encoding method, polar code decoding method, and apparatuses thereof
CN110430010A (en) Information processing method, apparatus and communication system
WO2016106728A1 (en) Data transmission method and device
US12463746B2 (en) Encoding and decoding method and apparatus
US12136932B2 (en) Encoding method and apparatus, decoding method and apparatus, and device
WO2022188710A1 (en) Polarization encoding and modulation method and apparatus, and demodulation and decoding method and apparatus
CN107733439B (en) LDPC (Low Density parity check) coding method, coding device and communication equipment
US11509334B2 (en) Decoding apparatus and decoding method for decoding operation in channel coding
CN111106897A (en) Decoding method and device
CN114915297A (en) Coding and decoding method and related device
CN111490797B (en) Encoding method, device and equipment
CN109088698B (en) A coding method and communication device
CN118473427A (en) Decoding method, decoding device, decoding equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant