Pruning matrix decoding method, device, equipment and readable storage medium
By dividing the rows of the pruning matrix into multiple layers and determining the layer update sequence based on the average row re-determination, the problem of increased complexity and storage space for complete matrix decoding in underwater acoustic communications is solved, achieving more efficient decoding performance and space. save.
Patent Information
- Application Number
- CN202410921408.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In existing underwater acoustic communications, the use of complete matrix decoding will increase the decoding complexity and require more storage space.
By dividing the rows of the pruning matrix into multiple layers, and determining the layer update order based on the average row weight of the layers in the pruning matrix, a hierarchical decoding method is used to reduce decoding complexity and save storage space.
It effectively reduces the decoding complexity, improves the decoding accuracy and speed, and saves storage space.
Smart Images

Figure CN118473426B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of underwater acoustic communication technology, and in particular to a deletion matrix decoding method, device, equipment and readable storage medium. Background Art
[0002] Channel coding technology is one of the key technologies to improve the reliability of underwater acoustic communication. LDPC (Low-density Parity-check) codes are gradually used in underwater acoustic communication because of their performance close to the Shannon capacity limit. In order to adapt to the complex and changeable underwater acoustic channels, LDPC codes are required to achieve more refined code rates and information bit lengths. The existing scheme fills the shortened bits and punctured bits as known bits, and then uses a complete matrix for decoding. However, using a complete matrix for decoding will increase the decoding complexity and require more storage space compared to deleting the matrix. Summary of the invention
[0003] The present application provides a truncated matrix decoding method, apparatus, device and readable storage medium, which can solve the technical problem in the prior art that using a complete matrix decoding will increase the decoding complexity and require more storage space compared to truncated matrix.
[0004] In a first aspect, an embodiment of the present application provides a puncture matrix decoding method, the puncture matrix decoding method comprising:
[0005] Divide the rows of the pruning matrix into multiple layers, wherein the pruning matrix deletes some rows and columns relative to the expansion matrix, and if multiple rows in the expansion matrix obtained by expanding a row of the base matrix are completely or partially retained in the pruning matrix, then the retained rows in the pruning matrix constitute a layer;
[0006] determining a layer update order, wherein the layer update order is ordered based on an average row weight of the layers in the pruning matrix;
[0007] The received vectors are layer-decoded according to the puncturing matrix and the layer update order.
[0008] Furthermore, in one embodiment, the step of determining the layer update order includes:
[0009] The layers in the deletion matrix are sorted from small to large according to the average row weight to obtain the layer update order.
[0010] Furthermore, in one embodiment, before the step of determining the layer update order, the step further includes:
[0011] Dividing the columns of the punctured matrix into a plurality of bundles, wherein if a plurality of columns in the expanded matrix obtained by expanding a column of the base matrix are completely or partially retained in the punctured matrix, the retained columns in the punctured matrix form a bundle;
[0012] Determine a target matrix and a first reference value for each row and a second reference value for each column of the target matrix, wherein if a row of the base matrix has a corresponding layer in the pruning matrix, the target matrix retains the row relative to the base matrix, and the first reference value of the row is the average row weight of the corresponding layer; otherwise, the target matrix deletes the row relative to the base matrix; if a column of the base matrix has a corresponding bundle in the pruning matrix, the target matrix retains the column relative to the base matrix, and the second reference value of the column is the average column weight of the corresponding bundle; otherwise, the target matrix deletes the column relative to the base matrix;
[0013] The step of determining the layer update order comprises:
[0014] The target sequence is obtained by sorting the rows of the target matrix according to the preset sorting rules, and the sorting of the rows in the target sequence is determined as the sorting of the corresponding layers in the layer update order, wherein when an element shared by a row and a column in the target matrix is a non-zero element, the row is the associated row of the column, and the column is the associated column of the row, and the preset sorting rules include: for multiple columns of the target matrix, the larger the second reference value, the higher the ranking of the associated rows of the column; for a single column of the target matrix, when the ranking of the associated rows of the column is not determined by the column with a larger second reference value, the smaller the first reference value of the associated rows, the higher the ranking.
[0015] Furthermore, in one embodiment, the step of sorting the rows of the target matrix according to a preset sorting rule to obtain a target sequence includes:
[0016] Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence;
[0017] Determine the first column of the first sequence as the current column;
[0018] Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty;
[0019] If the to-be-sorted set is not empty, the next column of the first sequence is determined as the current column, and the process returns to the step of performing the preset operation on the current column;
[0020] If the set to be sorted is empty, the second sequence is determined as the target sequence.
[0021] Furthermore, in one embodiment, the step of sorting the rows of the target matrix according to a preset sorting rule to obtain a target sequence includes:
[0022] Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence;
[0023] Determine the first column of the first sequence as the current column;
[0024] Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty;
[0025] If there are multiple rows in the set to be sorted, the next column of the first sequence is determined as the current column, and the step of performing the preset operation on the current column is returned to execute. If there is a row in the set to be sorted, the row is taken out and added to the end of the second sequence;
[0026] If the set to be sorted is empty, the second sequence is determined as the target sequence.
[0027] Furthermore, in one embodiment, in the step of sorting the columns of the target matrix from large to small according to the second reference value to obtain the first sequence, for multiple columns with equal second reference values, they are sorted from small to large according to the column number;
[0028] In the step of sorting the related rows from small to large according to the first reference value and then adding them to the end of the second sequence, for multiple rows with equal first reference values, they are sorted from small to large according to the row numbers.
[0029] Furthermore, in one embodiment, the step of sorting the rows of the target matrix according to a preset sorting rule to obtain a target sequence includes:
[0030] For each row of the target matrix, obtain the second reference value of each relevant column of the row, and record the maximum value of the second reference value as the third reference value of the row;
[0031] The rows of the target matrix are sorted from large to small according to the third reference value, and for multiple rows with equal third reference values, they are sorted from small to large according to the first reference value to obtain a target sequence.
[0032] In a second aspect, an embodiment of the present application further provides a puncture matrix decoding device, the puncture matrix decoding device comprising:
[0033] A layering module is used to divide the rows of the pruning matrix into multiple layers, wherein the pruning matrix deletes some rows and columns relative to the extended matrix, and if multiple rows in the extended matrix obtained by expanding one row of the base matrix are completely or partially retained in the pruning matrix, then the retained rows in the pruning matrix constitute a layer;
[0034] a reordering module, configured to determine a layer update order, wherein the layer update order is ordered based on an average row weight of the layers in the deletion matrix;
[0035] A decoding module is used to perform hierarchical decoding on the received vector according to the puncture matrix and the layer update order.
[0036] In a third aspect, an embodiment of the present application further provides a puncture matrix decoding device, the puncture matrix decoding device comprising a processor, a memory, and a puncture matrix decoding program stored in the memory and executable by the processor, wherein when the puncture matrix decoding program is executed by the processor, the steps of the above-mentioned puncture matrix decoding method are implemented.
[0037] In a fourth aspect, an embodiment of the present application further provides a readable storage medium, on which a puncture matrix decoding program is stored, wherein when the puncture matrix decoding program is executed by a processor, the steps of the above-mentioned puncture matrix decoding method are implemented.
[0038] In the present application, a pruning matrix is formed by deleting some rows and columns from an extended matrix to adapt to the code rate and information bit length of a channel, and the rows of the pruning matrix are divided into multiple layers, so that the pruning matrix can adopt a layered decoding method, and the average row weight of the layers in the pruning matrix is used as the basis for sorting the layer update order to obtain a layer update order that is adapted to the pruning matrix, thereby avoiding performance loss caused by a top-down layer update order. Through the present application, decoding complexity can be reduced and storage space can be saved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 Schematic diagram of a process flow of a deletion matrix decoding method in an embodiment of the present application;
[0040] Figure 2 is a schematic diagram of a base matrix in one embodiment of the present application;
[0041] Figure 3 for Figure 2 Schematic diagram of the expansion matrix and the deletion matrix corresponding to the basis matrix;
[0042] Figure 4 for Figure 3 Schematic diagram of the target matrix corresponding to the deleted matrix;
[0043] Figure 5 This is a schematic diagram of the process of constructing a target sequence in one embodiment of the present application;
[0044] Figure 6 This is a schematic diagram of a process for constructing a target sequence in another embodiment of the present application;
[0045] Figure 7 Schematic diagram of the hardware structure of the deletion matrix decoding device involved in the embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0048] In a first aspect, embodiments of the present application provide a punctured matrix decoding method.
[0049] Figure 1 A schematic flow chart of a puncture matrix decoding method in an embodiment of the present application is shown.
[0050] Reference Figure 1 In one embodiment, the puncture matrix decoding method comprises the following steps:
[0051] S11. Divide the rows of the pruning matrix into multiple layers, wherein the pruning matrix deletes some rows and columns relative to the expansion matrix, and if multiple rows in the expansion matrix obtained by expanding one row of the base matrix are completely or partially retained in the pruning matrix, then the retained rows in the pruning matrix constitute a layer.
[0052] In this embodiment, the extended matrix is obtained by extending the base matrix, and the punctured matrix deletes some rows and columns relative to the extended matrix to adapt to the code rate and information bit length of the channel.
[0053] Figure 2 A schematic diagram of a base matrix in an embodiment of the present application is shown; Figure 3 Shows Figure 2 Schematic diagram of the expansion matrix and the pruning matrix corresponding to the basis matrix.
[0054] For example, using Figure 2 The basis matrix shown is expanded with a factor of Z = 2, using or Remove the "1" in the basis matrix and replace the "0" in the basis matrix with a matrix of all 0s to obtain Figure 3 The extended matrix shown in the figure has an information bit length of 12 and a code rate of 0.5. Assuming that a code with an information bit length of 9 and a code rate of 0.5 needs to be constructed, Figure 3 Delete 3 rows and 6 columns from the extended matrix, and use the obtained punctured matrix as the final check matrix.
[0055] It should be noted that Figure 3 The 10th, 11th, 12th rows and the 10th, 11th, 12th, 22nd, 23rd, 24th columns of the extended matrix are deleted for illustrative purposes only. In actual processing, the rows and columns to be deleted can be determined from the extended matrix as needed. This application does not limit this. The focus of this application is on how to decode the determined deleted matrix.
[0056] Reference Figure 2 and Figure 3 , the 2i-1th and 2ith rows in the extended matrix are obtained by expanding the i-th row of the base matrix, i=1, 2, …, 6, and the 10th, 11th, and 12th rows are deleted from the pruned matrix relative to the extended matrix. The 1st and 2nd rows in the extended matrix, which are expanded from the 1st row of the base matrix, are completely retained in the pruned matrix. These two rows constitute the 1st layer in the pruned matrix. Similarly, the 3rd and 4th rows of the extended matrix constitute the 2nd layer, the 5th and 6th rows constitute the 3rd layer, and the 7th and 8th rows constitute the 4th layer. The 9th and 10th rows in the extended matrix, which are expanded from the 5th row of the base matrix, are partially retained in the pruned matrix (only the 9th row is retained), and this row constitutes the 5th layer in the pruned matrix. Therefore, Figure 3 The rows of the puncture matrix shown can be divided into the above five levels.
[0057] S12. Determine a layer update sequence, wherein the order of the layer update sequence includes an average row weight of the layers in the deletion matrix.
[0058] The traditional layered decoding method is limited by the top-down layer update order, and the decoding will lose a certain performance. In the related technology, a certain strategy is used to optimize the layer update order to improve the decoding performance. When the related technology uses a complete extended matrix for layered decoding, the sorting basis usually considered includes the row weight of the base matrix, because each layer in the extended matrix corresponds to a row of the base matrix, and the row weight remains unchanged. However, when the pruned matrix is used for layered decoding, not only the layering situation is different, but the row weight of some layers will also change. In this embodiment, the average row weight of the layer in the pruned matrix is used as the sorting basis for the layer update order to obtain a layer update order that is adapted to the pruned matrix.
[0059] S13. Perform layered decoding on the received vector according to the puncture matrix and the layer update order.
[0060] Specifically, the operation of layered decoding is as follows:
[0061] Step 1: Parameter initialization, the number of iterations l = 1, and the initial value of m is the first layer in the layer update sequence;
[0062] Step 2: perform intra-layer decoding according to the layer update order;
[0063] Step 3: Form the decoded output vector , if the companion , then stop the iteration and as the decoding output, otherwise, m takes the next layer number in the layer update order, and then goes to step 4;
[0064] Step 4: If all the layers in the layer update sequence have been updated, then l=l+1, and m is re-taken as the first layer in the layer update sequence. If l is less than the maximum number of iterations, jump to step 2 to continue, otherwise the decoding fails and the decoding is terminated.
[0065] Therefore, in this embodiment, a pruning matrix is formed by deleting some rows and columns from the extended matrix, and the rows of the pruning matrix are divided into multiple layers, so that the pruning matrix can adopt a layered decoding method, and the average row weight of the layers in the pruning matrix is used as the basis for sorting the layer update order to obtain a layer update order that is adapted to the pruning matrix, thereby avoiding performance loss caused by a top-down layer update order. Through this embodiment, decoding complexity can be reduced and storage space can be saved.
[0066] Furthermore, in one embodiment, the step of determining the layer update order includes:
[0067] The layers in the deletion matrix are sorted from small to large according to the average row weight to obtain the layer update order.
[0068] The simulation results show that performing layered decoding by using the layer update sequence optimized by this embodiment can help to further improve the decoding accuracy and decoding speed.
[0069] Furthermore, in one embodiment, in the step of sorting the layers in the pruning matrix from small to large according to the average row weight to obtain the layer update order, for multiple layers with equal average row weight, they are sorted from small to large according to the layer number.
[0070] In this embodiment, multiple layers with equal average row weights are sorted from small to large according to the layer numbers, which helps to simplify the algorithm. Of course, in other embodiments, multiple layers with equal average row weights can also be sorted randomly.
[0071] Furthermore, in one embodiment, before the step of determining the layer update order, the step further includes:
[0072] Dividing the columns of the punctured matrix into a plurality of bundles, wherein if a plurality of columns in the expanded matrix obtained by expanding a column of the base matrix are completely or partially retained in the punctured matrix, the retained columns in the punctured matrix form a bundle;
[0073] Determine a target matrix and a first reference value for each row and a second reference value for each column of the target matrix, wherein if a row of the base matrix has a corresponding layer in the pruning matrix, the target matrix retains the row relative to the base matrix, and the first reference value of the row is the average row weight of the corresponding layer; otherwise, the target matrix deletes the row relative to the base matrix; if a column of the base matrix has a corresponding bundle in the pruning matrix, the target matrix retains the column relative to the base matrix, and the second reference value of the column is the average column weight of the corresponding bundle; otherwise, the target matrix deletes the column relative to the base matrix;
[0074] The step of determining the layer update order comprises:
[0075] The target sequence is obtained by sorting the rows of the target matrix according to the preset sorting rules, and the sorting of the rows in the target sequence is determined as the sorting of the corresponding layers in the layer update order, wherein when an element shared by a row and a column in the target matrix is a non-zero element, the row is the associated row of the column, and the column is the associated column of the row, and the preset sorting rules include: for multiple columns of the target matrix, the larger the second reference value, the higher the ranking of the associated rows of the column; for a single column of the target matrix, when the ranking of the associated rows of the column is not determined by the column with a larger second reference value, the smaller the first reference value of the associated rows, the higher the ranking.
[0076] Continue to refer to Figure 2 and Figure 3 , the 2j-1th and 2jth columns in the extended matrix are obtained by expanding the jth column of the base matrix, j=1, 2, …, 12, and the 10th, 11th, 12th, 22nd, 23rd, and 24th rows are deleted from the punctured matrix relative to the extended matrix. The 1st and 2nd columns in the extended matrix, which are obtained by expanding the 1st column of the base matrix, are completely retained in the punctured matrix, and these two columns constitute the 1st bundle in the punctured matrix. Similarly, the 3rd and 4th columns of the extended matrix constitute the 2nd bundle, the 5th and 6th columns constitute the 3rd bundle, and the 7th and 8th columns constitute the 4th bundle. The 9th and 10th columns in the extended matrix, which are obtained by expanding the 5th column of the base matrix, are partially retained in the punctured matrix (only the 9th column is retained), and this column constitutes the 5th bundle in the punctured matrix. The 13th and 14th columns of the extended matrix constitute the 6th bundle, the 15th and 16th columns constitute the 7th bundle, the 17th and 18th columns constitute the 8th bundle, the 19th and 20th columns constitute the 9th bundle, and the 21st column constitutes the 10th bundle. Therefore, Figure 3 The columns of the puncture matrix shown can be divided into the 10 bundles described above.
[0077] Figure 4 Shows Figure 3 Schematic diagram of the target matrix corresponding to the deleted matrix.
[0078] Reference Figures 2 to 4, the 1st to 5th rows of the basis matrix correspond to the 1st to 5th layers in the pruning matrix, respectively, then the target matrix retains the 1st to 5th rows of the basis matrix and deletes the 6th row of the basis matrix. The 1st to 5th columns and the 7th to 11th columns of the basis matrix correspond to the 1st to 10th bundles in the pruning matrix, respectively, then the target matrix retains the 1st to 5th columns and the 7th to 11th columns of the basis matrix and deletes the 6th and 12th columns of the basis matrix. Therefore, the target matrix has 5 rows and 10 columns, and the first reference values of the 1st to 5th rows are the average row weights of the 1st to 5th layers of the pruning matrix, 3, 3.5, 4, 3, 3, respectively, and the second reference values of the 1st to 10th columns are the average column weights of the 1st to 10th bundles of the pruning matrix, 1.5, 2.5, 3, 3, 1, 1, 1, 1, 1, 1, respectively.
[0079] When the elements shared by a row and a column in the target matrix are non-zero elements, the row is the associated row of the column, and the column is the associated column of the row. Figure 4 , the element shared by the 3rd row and the 1st column in the target matrix is 1, then the 3rd row is the related row of the 1st column. Similarly, the related rows of the 1st column also include the 5th row, and the 1st column is the related column of the 3rd row. Similarly, the related columns of the 3rd row also include the 3rd, 4th, and 8th columns.
[0080] For multiple columns of the target matrix, the larger the second reference value, the higher the ranking of the relevant rows of the column. For example, assuming that the second reference value of the first column in the target matrix is the largest, and the relevant rows of the first column include the first, second, third, and fourth rows, then the first, second, third, and fourth rows are ranked in the top four in the target sequence.
[0081] For a single column of the target matrix, when the order of the relevant rows of the column is not determined by the column with a larger second reference value, the smaller the first reference value of the relevant row, the higher the order. For example, assuming that the second reference value of column 1 in the target matrix is the largest, the relevant rows of column 1 include rows 1, 2, 3, and 4, which are arranged from small to large as rows 2, 3, 1, and 4 according to the first reference value, then the first 4 digits of the target sequence are rows 2, 3, 1, and 4, respectively. Assuming that the second reference value of column 2 in the target matrix is the second largest, the relevant rows of column 2 include rows 1, 5, and 6, which are arranged from small to large as rows 5, 6, and 1 according to the first reference value, wherein the order of row 1 has been determined by column 1 with a larger second reference value, so rows 5 and 6 are ranked 5 and 6 in the target sequence.
[0082] The order of the rows in the target sequence is determined as the order of the corresponding layers in the layer update sequence. For example, assuming that the 3rd row of the target matrix is ranked first in the target sequence, the 3rd layer of the pruning matrix is also ranked first in the layer update sequence.
[0083] The simulation results show that performing layered decoding according to the optimized layer update sequence of this embodiment is helpful to accelerate the decoding convergence speed, effectively reduce the number of iterations, and reduce the decoding delay.
[0084] Figure 5 A schematic diagram of the process of constructing a target sequence in an embodiment of the present application is shown.
[0085] Reference Figure 5 Further, in one embodiment, the step of sorting the rows of the target matrix according to a preset sorting rule to obtain a target sequence includes:
[0086] Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence;
[0087] Determine the first column of the first sequence as the current column;
[0088] Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty;
[0089] If the to-be-sorted set is not empty, the next column of the first sequence is determined as the current column, and the process returns to the step of performing the preset operation on the current column;
[0090] If the set to be sorted is empty, the second sequence is determined as the target sequence.
[0091] In this embodiment, a sorting operation process that follows a preset sorting rule is provided. The processing order of the columns is first determined by the first sequence. As the columns are processed, the rows in the to-be-sorted set are gradually taken out and put into the second sequence. When the to-be-sorted set is empty, all rows are added to the second sequence to obtain the target sequence. This operation process has low complexity and small amount of calculation, and is convenient for quickly determining the layer update order.
[0092] Figure 6 A schematic diagram of the process of constructing a target sequence in another embodiment of the present application is shown.
[0093] Reference Figure 6 Further, in one embodiment, the step of sorting the rows of the target matrix according to a preset sorting rule to obtain a target sequence includes:
[0094] Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence;
[0095] Determine the first column of the first sequence as the current column;
[0096] Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty;
[0097] If there are multiple rows in the set to be sorted, the next column of the first sequence is determined as the current column, and the step of performing the preset operation on the current column is returned to execute. If there is a row in the set to be sorted, the row is taken out and added to the end of the second sequence;
[0098] If the set to be sorted is empty, the second sequence is determined as the target sequence.
[0099] In this embodiment, a sorting operation process that follows a preset sorting rule is provided. The processing order of the columns is first determined by the first sequence. As the columns are processed, the rows in the to-be-sorted set are gradually taken out and put into the second sequence. When the to-be-sorted set is empty, all rows are added to the second sequence to obtain the target sequence. This operation process has low complexity and small amount of calculation, and is convenient for quickly determining the layer update order.
[0100] Figure 5 and Figure 6 Most of the operations in the sorting operation flow shown are the same, except that Figure 5 The operation flow shown in the figure determines the next column of the first sequence as the current column when the to-be-sorted set is not empty. Figure 6 The operation flow shown is further divided into two operations when the set to be sorted is not empty. One is that when there are multiple rows in the set to be sorted, the next column of the first sequence is determined as the current column. The other is that when there is one row in the set to be sorted, the row is taken out and added to the end of the second sequence. Because when there is only one row, sorting does not require the help of columns, which helps to further speed up the processing speed.
[0101] Furthermore, in one embodiment, in the step of sorting the columns of the target matrix from large to small according to the second reference value to obtain the first sequence, for multiple columns with equal second reference values, they are sorted from small to large according to the column number;
[0102] In the step of sorting the related rows from small to large according to the first reference value and then adding them to the end of the second sequence, for multiple rows with equal first reference values, they are sorted from small to large according to the row numbers.
[0103] In this embodiment, multiple columns with equal second reference values are sorted from small to large according to column numbers, and multiple rows with equal first reference values are sorted from small to large according to row numbers, which helps to simplify the algorithm. Of course, in other embodiments, multiple columns with equal second reference values and multiple rows with equal first reference values can also be sorted randomly.
[0104] by Figure 4 Take the target matrix shown in the figure as an example, and explain it in detail. Figure 5 , Figure 6 The operation flow shown.
[0105] Figure 4 In the target matrix shown, the first reference values of the 1st to 5th rows (denoted as rows 1 to 5) are 3, 3.5, 4, 3, 3, respectively, and the second reference values of the 1st to 10th columns (denoted as columns 1 to 10) are 1.5, 2.5, 3, 3, 1, 1, 1, 1, 1, 1, respectively. After arranging the columns from large to small according to the second reference values and from small to large according to the column numbers, the first sequence is columns 3, 4, 2, 1, 5, 6, 7, 8, 9, 10. In the initial state, the set to be sorted is rows 1, 2, 3, 4, 5, and the second sequence is empty.
[0106] The first column (column 3) of the first sequence is determined as the current column. The related rows of column 3 include rows 2, 3, and 4, which are all in the set to be sorted. Rows 2, 3, and 4 are taken out from the set to be sorted, and the first reference values are 3.5, 4, and 3 respectively. They are sorted from small to large according to the first reference values as rows 4, 2, and 3, and then added to the end of the second sequence. After the operation, the set to be sorted is rows 1 and 5, and the second sequence is rows 4, 2, and 3.
[0107] There are multiple rows in the set to be sorted. The second column (column 4) of the first sequence is determined as the current column. The related rows of column 4 include rows 1, 2, and 3. Row 1 is in the set to be sorted. Row 1 is taken from the set to be sorted and added to the end of the second sequence. After the operation, the set to be sorted is row 5, and the second sequence is rows 4, 2, 3, and 1.
[0108] according to Figure 5 Operation steps: There is one row in the set to be sorted, the third column (column 2) of the first sequence is determined as the current column, the relevant rows of column 2 include rows 1, 4, and 5, and row 5 is in the set to be sorted. Take row 5 from the set to be sorted and add it to the end of the second sequence. After the operation, the set to be sorted is empty, and the second sequence is rows 4, 2, 3, 1, and 5. The target sequence is determined to be rows 4, 2, 3, 1, and 5.
[0109] according to Figure 6 Operation steps: There is a row in the set to be sorted, take out row 5 and add it to the end of the second sequence. After the operation, the set to be sorted is empty, and the second sequence is rows 4, 2, 3, 1, 5. The target sequence is determined to be rows 4, 2, 3, 1, 5.
[0110] Furthermore, in one embodiment, the step of sorting the rows of the target matrix according to a preset sorting rule to obtain a target sequence includes:
[0111] For each row of the target matrix, obtain the second reference value of each relevant column of the row, and record the maximum value of the second reference value as the third reference value of the row;
[0112] The rows of the target matrix are sorted from large to small according to the third reference value, and for multiple rows with equal third reference values, they are sorted from small to large according to the first reference value to obtain a target sequence.
[0113] In this embodiment, a sorting operation process that follows a preset sorting rule is provided. Figure 5 and Figure 6 The operation process shown is not limited to comparing the first reference value sizes of related rows of a single column. When the second reference values of multiple columns are equal, the related rows of these columns will be compared and sorted together to obtain a better layer update order. However, relatively speaking, this operation process is more complex and requires more computation.
[0114] Furthermore, in one embodiment, in the step of sorting from small to large according to the first reference value, for multiple rows with equal first reference values, they are sorted from small to large according to row numbers.
[0115] In this embodiment, multiple rows with equal first reference values are sorted from small to large according to row numbers, which helps to simplify the algorithm. Of course, in other embodiments, multiple rows with equal first reference values can also be sorted randomly.
[0116] by Figure 4 Taking the target matrix shown in FIG. 1 as an example, this operation process is specifically described.
[0117] Figure 4 In the target matrix shown, the relevant columns of row 1 include columns 2, 4, and 6, and the second reference values are 2.5, 3, and 1 respectively, and the third reference value of row 1 is 3; the relevant columns of row 2 include columns 3, 4, 5, and 7, and the second reference values are 3, 3, 1, and 1 respectively, and the third reference value of row 2 is 3; the relevant columns of row 3 include columns 1, 3, 4, and 8, and the second reference values are 1.5, 3, 3, and 1 respectively, and the third reference value of row 3 is 3; the relevant columns of row 4 include columns 2, 3, and 9, and the second reference values are 2.5, 3, and 1 respectively, and the third reference value of row 4 is 3; the relevant columns of row 5 include columns 1, 2, and 10, and the second reference values are 1.5, 2.5, and 1 respectively, and the third reference value of row 5 is 2.5.
[0118] The third reference value of rows 1, 2, 3, and 4 is 3, and the first reference values are 3, 3.5, 4, and 3 respectively. After arranging the first reference value and row number from small to large, the first 4 digits of the target sequence are rows 1, 4, 2, and 3 respectively. The third reference value of row 5 is 2.5, and it is arranged at the 5th position of the target sequence. The target sequence is determined to be 1, 4, 2, 3, and 5.
[0119] In a second aspect, an embodiment of the present application further provides a punctured matrix decoding device.
[0120] In one embodiment, the puncture matrix decoding apparatus comprises:
[0121] A layering module is used to divide the rows of the pruning matrix into multiple layers, wherein the pruning matrix deletes some rows and columns relative to the extended matrix, and if multiple rows in the extended matrix obtained by expanding one row of the base matrix are completely or partially retained in the pruning matrix, then the retained rows in the pruning matrix constitute a layer;
[0122] a reordering module, configured to determine a layer update order, wherein the layer update order is ordered based on an average row weight of the layers in the deletion matrix;
[0123] A decoding module is used to perform hierarchical decoding on the received vector according to the puncture matrix and the layer update order.
[0124] Furthermore, in one embodiment, the reordering module is used to:
[0125] The layers in the deletion matrix are sorted from small to large according to the average row weight to obtain the layer update order.
[0126] Furthermore, in one embodiment, the puncture matrix decoding apparatus further includes:
[0127] A beam splitting module is used to split the columns of the pruning matrix into a plurality of beams, wherein if a plurality of columns in the extended matrix obtained by expanding a column of the base matrix are completely or partially retained in the pruning matrix, the retained columns in the pruning matrix constitute a beam;
[0128] The inverse extension module is used to determine the target matrix and the first reference value of each row and the second reference value of each column of the target matrix, wherein if a row of the base matrix has a corresponding layer in the pruning matrix, the target matrix retains the row relative to the base matrix, and the first reference value of the row is the average row weight of the corresponding layer; otherwise, the target matrix deletes the row relative to the base matrix; if a column of the base matrix has a corresponding bundle in the pruning matrix, the target matrix retains the column relative to the base matrix, and the second reference value of the column is the average column weight of the corresponding bundle; otherwise, the target matrix deletes the column relative to the base matrix;
[0129] The reordering module is used to:
[0130] The target sequence is obtained by sorting the rows of the target matrix according to the preset sorting rules, and the sorting of the rows in the target sequence is determined as the sorting of the corresponding layers in the layer update order, wherein when an element shared by a row and a column in the target matrix is a non-zero element, the row is the associated row of the column, and the column is the associated column of the row, and the preset sorting rules include: for multiple columns of the target matrix, the larger the second reference value, the higher the ranking of the associated rows of the column; for a single column of the target matrix, when the ranking of the associated rows of the column is not determined by the column with a larger second reference value, the smaller the first reference value of the associated rows, the higher the ranking.
[0131] Furthermore, in one embodiment, the reordering module is used to:
[0132] Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence;
[0133] Determine the first column of the first sequence as the current column;
[0134] Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty;
[0135] If the to-be-sorted set is not empty, the next column of the first sequence is determined as the current column, and the process returns to the step of performing the preset operation on the current column;
[0136] If the set to be sorted is empty, the second sequence is determined as the target sequence.
[0137] Furthermore, in one embodiment, the reordering module is used to:
[0138] Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence;
[0139] Determine the first column of the first sequence as the current column;
[0140] Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty;
[0141] If there are multiple rows in the set to be sorted, the next column of the first sequence is determined as the current column, and the step of performing the preset operation on the current column is returned to execute. If there is a row in the set to be sorted, the row is taken out and added to the end of the second sequence;
[0142] If the set to be sorted is empty, the second sequence is determined as the target sequence.
[0143] Furthermore, in one embodiment, the reordering module is used to:
[0144] For multiple columns with the same second reference value, sort them in ascending order of column number;
[0145] For multiple rows with the same first reference value, they are sorted from smallest to largest according to row number.
[0146] Furthermore, in one embodiment, the reordering module is used to:
[0147] For each row of the target matrix, obtain the second reference value of each relevant column of the row, and record the maximum value of the second reference value as the third reference value of the row;
[0148] The rows of the target matrix are sorted from large to small according to the third reference value, and for multiple rows with equal third reference values, they are sorted from small to large according to the first reference value to obtain a target sequence.
[0149] Among them, the functional implementation of each module in the above-mentioned puncture matrix decoding device corresponds to each step in the above-mentioned puncture matrix decoding method embodiment, and its functions and implementation processes are no longer repeated here.
[0150] In a third aspect, an embodiment of the present application provides a puncture matrix decoding device, which may be a device having a data processing function, such as a personal computer (PC), a laptop computer, or a server.
[0151] Figure 7 A schematic diagram of the hardware structure of a deletion matrix decoding device involved in an embodiment of the present application is shown.
[0152] Reference Figure 7 In an embodiment of the present application, a deletion matrix decoding device may include a processor, a memory, a communication interface, and a communication bus.
[0153] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.
[0154] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the deletion matrix decoding device, and the interface used to realize the interconnection between the deletion matrix decoding device and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.
[0155] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0156] The processor may be a general-purpose processor, and the general-purpose processor may call the pruning matrix decoding program stored in the memory and execute the pruning matrix decoding method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the pruning matrix decoding program is called may refer to the various embodiments of the pruning matrix decoding method of the present application, and will not be repeated here.
[0157] Those skilled in the art will understand that Figure 7 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0158] In a fourth aspect, an embodiment of the present application also provides a readable storage medium.
[0159] The readable storage medium of the present application stores a puncture matrix decoding program, wherein when the puncture matrix decoding program is executed by a processor, the steps of the puncture matrix decoding method described above are implemented.
[0160] Among them, the method implemented when the pruning matrix decoding program is executed can refer to the various embodiments of the pruning matrix decoding method of the present application, and will not be repeated here.
[0161] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0162] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0163] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0164] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0165] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0167] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A puncture matrix decoding method, characterized in that: The puncture matrix decoding method comprises: Divide the rows of the pruning matrix into multiple layers, wherein the pruning matrix deletes some rows and columns relative to the expansion matrix, and if multiple rows in the expansion matrix obtained by expanding a row of the base matrix are completely or partially retained in the pruning matrix, then the retained rows in the pruning matrix constitute a layer; Dividing the columns of the punctured matrix into a plurality of bundles, wherein if a plurality of columns in the expanded matrix obtained by expanding a column of the base matrix are completely or partially retained in the punctured matrix, the retained columns in the punctured matrix form a bundle; Determine a target matrix and a first reference value for each row and a second reference value for each column of the target matrix, wherein if a row of the base matrix has a corresponding layer in the pruning matrix, the target matrix retains the row relative to the base matrix, and the first reference value of the row is the average row weight of the corresponding layer; otherwise, the target matrix deletes the row relative to the base matrix; if a column of the base matrix has a corresponding bundle in the pruning matrix, the target matrix retains the column relative to the base matrix, and the second reference value of the column is the average column weight of the corresponding bundle; otherwise, the target matrix deletes the column relative to the base matrix; The target matrix rows are sorted according to a preset sorting rule to obtain a target sequence, and the sorting of the rows in the target sequence is determined as the sorting of the corresponding layers in the layer update order, wherein when an element shared by a row and a column in the target matrix is a non-zero element, the row is a related row of the column, and the column is a related column of the row, and the preset sorting rule includes: for multiple columns of the target matrix, the larger the second reference value, the higher the sorting of the related rows of the column, and for a single column of the target matrix, when the sorting of the related rows of the column is not determined by the column with a larger second reference value, the smaller the first reference value of the related row, the higher the sorting; The received vectors are layer-decoded according to the puncturing matrix and the layer update order.
2. The puncture matrix decoding method according to claim 1, wherein: The step of sorting the rows of the target matrix according to the preset sorting rule to obtain the target sequence includes: Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence; Determine the first column of the first sequence as the current column; Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty; If the to-be-sorted set is not empty, the next column of the first sequence is determined as the current column, and the process returns to the step of performing the preset operation on the current column; If the set to be sorted is empty, the second sequence is determined as the target sequence.
3. The puncture matrix decoding method according to claim 1, wherein: The step of sorting the rows of the target matrix according to the preset sorting rule to obtain the target sequence includes: Sort the columns of the target matrix from large to small according to the second reference value to obtain a first sequence; Determine the first column of the first sequence as the current column; Performing a preset operation for the current column, the preset operation includes: if the set to be sorted does not have a relevant row of the current column, no action is taken; if the set to be sorted has a relevant row of the current column, the relevant row is taken out and added to the end of the second sequence; if the set to be sorted has multiple relevant rows of the current column, the relevant rows are taken out, sorted in ascending order according to the first reference value, and then added to the end of the second sequence, wherein the initial set to be sorted includes all rows of the target matrix, and the initial second sequence is empty; If there are multiple rows in the set to be sorted, the next column of the first sequence is determined as the current column, and the step of performing the preset operation on the current column is returned to execute. If there is a row in the set to be sorted, the row is taken out and added to the end of the second sequence; If the set to be sorted is empty, the second sequence is determined as the target sequence.
4. The puncture matrix decoding method according to claim 2 or 3, characterized in that: In the step of sorting the columns of the target matrix from large to small according to the second reference value to obtain the first sequence, for multiple columns with equal second reference values, they are sorted from small to large according to the column number; In the step of sorting the related rows from small to large according to the first reference value and then adding them to the end of the second sequence, for multiple rows with equal first reference values, they are sorted from small to large according to the row numbers.
5. The puncture matrix decoding method according to claim 1, wherein: The step of sorting the rows of the target matrix according to the preset sorting rule to obtain the target sequence includes: For each row of the target matrix, obtain the second reference value of each relevant column of the row, and record the maximum value of the second reference value as the third reference value of the row; The rows of the target matrix are sorted from large to small according to the third reference value, and for multiple rows with equal third reference values, they are sorted from small to large according to the first reference value to obtain a target sequence.
6. A deletion matrix decoding device, characterized in that: The puncture matrix decoding device comprises: A layering module is used to divide the rows of the pruning matrix into multiple layers, wherein the pruning matrix deletes some rows and columns relative to the extended matrix, and if multiple rows in the extended matrix obtained by expanding one row of the base matrix are completely or partially retained in the pruning matrix, then the retained rows in the pruning matrix constitute a layer; A beam splitting module is used to split the columns of the pruning matrix into a plurality of beams, wherein if a plurality of columns in the extended matrix obtained by expanding a column of the base matrix are completely or partially retained in the pruning matrix, the retained columns in the pruning matrix constitute a beam; The inverse extension module is used to determine the target matrix and the first reference value of each row and the second reference value of each column of the target matrix, wherein if a row of the base matrix has a corresponding layer in the pruning matrix, the target matrix retains the row relative to the base matrix, and the first reference value of the row is the average row weight of the corresponding layer; otherwise, the target matrix deletes the row relative to the base matrix; if a column of the base matrix has a corresponding bundle in the pruning matrix, the target matrix retains the column relative to the base matrix, and the second reference value of the column is the average column weight of the corresponding bundle; otherwise, the target matrix deletes the column relative to the base matrix; A reordering module is used to order the rows of the target matrix according to a preset ordering rule to obtain a target sequence, and determine the order of the rows in the target sequence as the order of the corresponding layer in the layer update order, wherein, when an element shared by a row and a column in the target matrix is a non-zero element, the row is the relevant row of the column, and the column is the relevant column of the row, and the preset ordering rule includes: for multiple columns of the target matrix, the larger the second reference value, the higher the order of the relevant rows of the column, and for a single column of the target matrix, when the order of the relevant rows of the column is not determined by the column with a larger second reference value, the smaller the first reference value of the relevant row, the higher the order; A decoding module is used to perform hierarchical decoding on the received vector according to the puncture matrix and the layer update order.
7. A deletion matrix decoding device, characterized in that: The puncture matrix decoding device includes a processor, a memory, and a puncture matrix decoding program stored in the memory and executable by the processor, wherein when the puncture matrix decoding program is executed by the processor, the steps of the puncture matrix decoding method according to any one of claims 1 to 5 are implemented.
8. A readable storage medium, characterized in that: The readable storage medium stores a puncture matrix decoding program, wherein when the puncture matrix decoding program is executed by a processor, the steps of the puncture matrix decoding method according to any one of claims 1 to 5 are implemented.
