A parity check matrix construction method and device, electronic equipment and medium
By optimizing the row and column weights of the NAND flash parity matrix, an irregular code pattern that satisfies high code rate and strong error correction capability is constructed, solving the problems of high computational overhead and low construction efficiency in the existing technology, and achieving more efficient parity matrix construction and improved error correction performance.
Patent Information
- Application Number
- CN202611316127.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies suffer from high computational overhead and low construction efficiency when constructing parity matrices for NAND flash memory, making it difficult to meet the requirements of high speed and high performance. In particular, the row weighting structure of the initial parity matrix is limited, making it unsuitable for various initial matrix optimization scenarios.
By obtaining the dimensional information of the verification matrix to be constructed, an initial verification matrix is constructed and the target row weight is determined. The target position is filtered based on the dual constraints of row weight and column weight, and the non-zero elements are updated. The initial matrix is optimized through multiple update rounds until the target of uniform row weight and non-uniform column weight is met.
The row weight constraint on the initial parity check matrix is simplified, the construction complexity is reduced, the construction efficiency of the parity check matrix is improved, the error correction performance is enhanced, and the requirements of high bit rate and strong error correction capability of NAND flash memory are met.
Smart Images

Figure CN123138018A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device and medium for constructing a parity check matrix. Background Technology
[0002] With the rapid development of 5G, artificial intelligence, cloud computing, and the Internet of Things, the volume of data is increasing dramatically. NAND flash memory, with its advantages of high density, high throughput, and low power consumption, has become the primary medium for massive data storage. However, with the continuous increase in the number of layers in 3D stacking technology and the widespread adoption of Triple-Level Cell (TLC) and Quad-Level Cell (QLC) multi-bit storage technologies, interference between flash memory cells and charge fluctuation noise problems are intensifying, significantly increasing the original bit error rate and placing higher demands on error control coding performance. Quasi-cyclic Low Density Parity Check Code (QC-LDPC), with its excellent error correction performance and simple hardware implementation, is currently the main error correction method for NAND flash memory. NAND flash memory has a dual requirement for high code rate and strong error correction with QC-LDPC codes. Therefore, irregular code patterns are constructed by optimizing the column weights of the initial parity check matrix to meet these requirements. However, in related technologies, before optimizing column weight, there are strong restrictions on the row weight of the initial parity check matrix. When constructing the initial parity check matrix, it is often necessary to rely on pre-decoding or traversing the six-ring formula to construct the initial parity check matrix, which has high computational overhead and low construction efficiency, making it difficult to meet the requirements of fast construction of high-speed and high-performance parity check matrices. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and medium for constructing a parity check matrix, thereby overcoming the limitation of row re-structure in the initial parity check matrix and improving the construction efficiency of the parity check matrix.
[0004] This application provides a method for constructing a parity check matrix, including: Obtain the dimension information of the verification matrix to be constructed; Based on dimensional information, an initial verification matrix is constructed, and the target row weight corresponding to the initial verification matrix is determined; In the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, the first target position that meets the preset conditions is determined in the initial verification matrix. The preset conditions are that the column weight of the column is greater than the corresponding preset column weight, and the element at the position is a non-zero element. Update the non-zero elements at the first target position to zero elements to obtain the updated matrix, and then perform the update count accumulation operation. When the number of updates is less than the preset number of updates, the next update round is entered. Based on the target row weight and the row weight corresponding to each row in the updated matrix, the first target position is determined again in the updated matrix. This continues until the number of updates reaches the preset number of updates, at which point the update operation stops and the first updated matrix is obtained. The preset number of updates is determined based on the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight. Based on the first updated matrix, determine the verification matrix.
[0005] This application also provides an apparatus for constructing a parity check matrix, comprising: The acquisition module is used to obtain the dimension information of the verification matrix to be constructed; The construction module is used to construct an initial verification matrix based on dimensional information and determine the target row weight corresponding to the initial verification matrix; The update module is used to determine the first target position in the initial verification matrix that meets the preset conditions in the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix. The preset conditions are that the column weight of the column is greater than the corresponding preset column weight, and the element at the position is a non-zero element. Update the non-zero elements at the first target position to zero elements to obtain the updated matrix, and then perform the update count accumulation operation. When the number of updates is less than the preset number of updates, the next update round is entered. Based on the target row weight and the row weight corresponding to each row in the updated matrix, the first target position is determined again in the updated matrix. This continues until the number of updates reaches the preset number of updates, at which point the update operation stops and the first updated matrix is obtained. The preset number of updates is determined based on the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight. The determination module is used to determine the verification matrix based on the first updated matrix.
[0006] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for executing the computer program to implement the steps of constructing any of the above-described methods for checking matrices.
[0007] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described methods for constructing a parity check matrix.
[0008] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of constructing any of the above-described methods for checking matrices.
[0009] This application constructs an initial parity check matrix based on dimensional information and determines the target row weight. Using the target row weight as the baseline row weight, a first target position is selected based on the dual constraints of row and column weights in each row of the initial parity check matrix. Non-zero elements in this first target position are updated to zero elements. The initial parity check matrix is updated and optimized through multiple update rounds until the final parity check matrix is obtained. Compared to the strict dependence on the row weight structure of the initial parity check matrix in related technologies, the parity check matrix construction method provided in this application does not require constraints on the row weight of the initial parity check matrix, simplifying the requirements for the initial parity check matrix and reducing the complexity of constructing the parity check matrix. The update of the initial parity check matrix is achieved through row and column collaborative constraints in multiple update rounds, ensuring that the final parity check matrix meets row and column requirements, such as uniform row weight and non-uniform column weight, thus improving the construction efficiency of the parity check matrix and contributing to improved error correction performance. Attached Figure Description
[0010] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A flowchart illustrating a method for constructing a verification matrix as provided in an embodiment of this application; Figure 2 A comparison chart of bit error rate performance between a matrix with all columns of 5 provided in the embodiments of this application and an irregular matrix with optimized column weights of 3 and 5; Figure 3 A comparison chart of frame error rate performance between a matrix with all columns of 5 provided in the embodiments of this application and an irregular matrix with optimized column weights of 3 and 5; Figure 4 A comparison chart of bit error rate performance between a matrix with all columns of 5 provided in the embodiments of this application and an irregular matrix with optimized column weights of 3 and 6; Figure 5 A comparison chart of frame error rate performance between a matrix with all 5 columns provided in this application embodiment and an irregular matrix with optimized column weights of 3 and 6; Figure 6 A schematic diagram of a verification matrix construction system provided in an embodiment of this application; Figure 7 A schematic diagram of a device for constructing a verification matrix provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0012] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0013] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.
[0014] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0015] First, the application scenarios of the embodiments of this application will be introduced by way of example.
[0016] With the rapid development of technologies such as 5G, artificial intelligence, cloud computing, and the Internet of Things, NAND flash memory has become the core carrier for massive data storage. Currently, NAND flash memory 3D stacking technology has broken through 500 layers, and TLC and QLC multi-bit storage technologies are widely used. However, high-density stacking and multi-bit storage architectures can cause problems such as inter-cell interference and charge fluctuation noise, leading to a significant increase in the original bit error rate of flash memory and placing higher demands on the error control capabilities of storage systems. Low-density parity-check (LDPC) codes have become the preferred error correction code (ECC) scheme for NAND flash memory due to their error correction performance approaching the Shannon limit and their high redundancy efficiency.
[0017] For NAND flash memory, the LDPC code workflow includes writing to the encoding environment and reading / decoding. Specifically, the data to be written is first divided into fixed units. A sparse parity-check matrix and a corresponding generator matrix are constructed based on the characteristics of NAND. Parity bits are generated by encoding the generator matrix and stored in the flash memory redundancy area. During data reading, decoding is performed. After reading the data and parity bits, the decoding unit iteratively calculates the parity-check matrix using a belief propagation algorithm. If the parity is satisfied, the correct data is output; otherwise, the next iteration begins until the decoding result satisfies the parity requirement or the maximum number of iterations is reached. The generator matrix G and the decoding matrix H have a relationship of HT·G = 0. Therefore, the performance of the parity-check matrix is the core of LDPC.
[0018] The quasi-cyclic low-density parity check code (QC-LDPC), unique to NAND flash memory, consists of a parity check matrix composed of several sub-matrices of the same dimension. The sub-matrices are limited to zero matrices, identity matrices, and shift matrices generated by right cyclic shifting of identity matrices. This special structure can greatly simplify the hardware logic of the encoding and decoding process, significantly reduce storage overhead and computational complexity, and perfectly adapt to the hardware resource constraints of NAND flash memory.
[0019] In NAND flash memory storage scenarios, QC-LDPC codes face two stringent requirements: firstly, to ensure efficient storage capacity utilization, QC-LDPC codes need to have a high code rate (typically between 0.8 and 0.9) and a long codeword length; secondly, to cope with the high bit error rate of 3D TLC / QLC, the constructed codes need to have strong error correction capabilities. To meet these requirements, irregular parity-check matrices are commonly used to balance these two needs, and matrix column weight optimization is the core key to achieving high-performance irregular QC-LDPC codes.
[0020] In related technologies, before column weight optimization, there are strict limitations on the structure and row weight parameters of the initial check matrix, which cannot be adapted to various initial matrix optimization scenarios.
[0021] In view of this, embodiments of this application provide a method for constructing a parity check matrix to overcome the limitation of row re-structure in the initial parity check matrix and improve the construction efficiency of the parity check matrix.
[0022] It should be noted that the method for constructing a verification matrix provided in this embodiment of the invention can be executed by a device for constructing the verification matrix. This device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. The electronic device can be a server or a terminal. In this embodiment, the server can be a single server or a server cluster composed of multiple servers. The terminal in this embodiment can be a smartphone, personal computer, tablet computer, wearable device, or other intelligent hardware device such as an intelligent robot. The following method embodiments will use an electronic device as an example for explanation.
[0023] According to an embodiment of the present invention, a method for constructing a check matrix is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0024] The long codeword, high code rate QC-LDPC parity-check matrix constructed using the method proposed in this invention has non-uniform column weight and uniform row weight. Non-uniform column weight refers to the difference between the maximum and minimum column weight being greater than 1, typically 2 or 3. Uniform row weight means the difference between the maximum and minimum row weight of the parity-check matrix is less than or equal to 1. Non-uniform column weight can improve the iteration convergence speed. Regarding row weight, since the commonly used decoding algorithms in 3D NAND are often based on the normalized minimum sum algorithm, during the stage of information transmission from the parity-check node to the variable node, the parity-check node information received by different variable nodes in each row of the matrix is usually obtained according to the following formula:
[0025] in, The verification node information passed from verification node j to variable node i, where α is the corresponding normalization factor. For variable nodes The log-likelihood ratio message sent to verification node j. For set The set of variable nodes remaining after removing variable node i.
[0026] This formula is an approximate transformation of the initial formula below:
[0027] Therefore, it can be seen that for different rows of the matrix, the smaller the difference in row weight, the more balanced the influence of the selected normalization factor α is in the process of updating the information of each variable node, which can better ensure the stability and accuracy of the decoding algorithm.
[0028] This embodiment provides a method for constructing a verification matrix, which can be used in the aforementioned electronic devices, such as servers. Figure 1 This is a flowchart of a method for constructing a parity check matrix according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes: S101, obtain the dimension information of the verification matrix to be constructed.
[0029] Specifically, the dimension information serves as the size parameter of the QC-LDPC verification matrix to be constructed, including but not limited to the number of rows and columns of the matrix, and the dimensions of the submatrix. It should be noted that in the embodiments of this application, the constructed verification matrix is the base matrix, and -1, 0, and other positive integers smaller than the dimensions of the submatrix are typically used to represent all-zero submatrix, identity matrix, and submatrix of identity matrix shifted to the right by the corresponding positive integer, respectively.
[0030] S102, Based on the dimensional information, construct the initial verification matrix and determine the target row weight corresponding to the initial verification matrix.
[0031] Specifically, the initial parity-check matrix, used as the initial matrix for subsequent updates and iterations, suffers from uneven row redistribution and uniform column weighting, resulting in error correction performance that cannot meet the requirements of high-error-rate flash memory scenarios. For example, the initial parity-check matrix can be constructed using methods such as the PEG method, randomization, or algebraic construction.
[0032] In this embodiment, the row weight of the initial parity check matrix is not limited. Furthermore, the uniformity of the column weight of the initial parity check matrix is also not limited; that is, the column weight of each column can be the same or different.
[0033] The target row weight corresponding to the initial parity-check matrix is the number of non-zero elements in each row of the parity-check matrix, serving as an indicator to balance the decoding complexity and error correction performance of the parity-check matrix. It is understood that the row weight of each row in the final constructed parity-check matrix is nearly uniform, and the deviation from the target row weight is within a preset deviation range.
[0034] S103, in the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, determine the first target position that meets the preset conditions in the initial verification matrix.
[0035] The preset conditions are that the column weight of the column is greater than the corresponding preset column weight, and the element at the position is a non-zero element.
[0036] Specifically, row weight refers to the total number of non-zero elements in each row. Column weight refers to the total number of non-zero elements in each column.
[0037] Understandably, in order to improve error correction performance, the column weights of all columns in the constructed check matrix are not exactly the same, that is, the check matrix is a matrix with uneven column weights.
[0038] The first target position is the position from multiple positions where the element to be updated needs to be selected.
[0039] In one possible implementation, the target row is determined in the initial verification matrix based on the target row weight and the row weight corresponding to each row in the initial verification matrix. For example, according to the preset row number, each row in the initial verification matrix is traversed, and the first row whose row weight is greater than the target row weight is determined as the target row. In the target row, according to the column number, the first position that meets the preset condition is determined as the first target position from low to high (or from high to low). The target row is the row that needs to be updated in the current update round. The current row weight deviates from the target row weight, and the row contains at least one non-zero element, and the current column weight of the column containing each non-zero element is greater than the preset column weight. That is to say, the target row has two problems: row weight imbalance and column weight exceeding the limit. For example, the current row weight of a certain row is 6, the target row weight is 4, and at the same time, there is at least one non-zero element in the row whose column weight is greater than the corresponding preset column weight.
[0040] Alternatively, within the target row, the first target position can be determined based on the difference between the column weight and the corresponding preset column weight. For example, the position with the largest absolute value of the difference in the target row can be determined as the first target position.
[0041] Furthermore, for each column, the difference between the column weight of the initial parity check matrix and the preset column weight of that column determines the number of times that column needs to be updated. Therefore, a column weight greater than its preset weight can also be described as the column not having reached the required number of updates.
[0042] S104: Update the non-zero elements at the first target position to zero elements to obtain the updated matrix, and perform the update count accumulation operation.
[0043] Specifically, the update count refers to the cumulative number of executions of the iterative optimization. Each time the operation of updating the non-zero element at the target position to a zero element is completed, the count is automatically incremented. For example, the counter is automatically incremented by 1.
[0044] In addition, while performing the update count accumulation operation, a preset flag can be raised to indicate that a non-zero element has been eliminated in the current update round.
[0045] S105, when the number of updates is less than the preset number of updates, enter the next update round, which is used to determine the first target position in the updated matrix again based on the target row weight and the row weight corresponding to each row in the updated matrix, until the number of updates reaches the preset number of updates, then stop the update operation and obtain the first updated matrix.
[0046] The preset number of updates is determined based on the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight.
[0047] Specifically, the first updated matrix, obtained after a single iteration and cumulative counting, has a lower column weight and a row weight closer to the target row weight compared to the matrix before the iteration. It serves as the base matrix for the next iteration. In the next update iteration, based on the target row weight and the row weights of each row in the first updated matrix, the first target position is determined again, and the non-zero elements at the first target position are updated to zero, resulting in the updated matrix for the next iteration… For example, the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight is summed to obtain the preset number of updates.
[0048] S106, Determine the verification matrix based on the first updated matrix.
[0049] In one possible implementation, the first updated matrix is determined as the verification matrix.
[0050] In another possible implementation, a global check is performed on the first updated matrix. For any remaining column weight discrepancies in the first updated matrix, fine-tuning is then performed again, thereby further improving the error correction performance. It should be noted that the specific implementation method for fine-tuning the first updated matrix will be described in subsequent embodiments and will not be elaborated here.
[0051] In this embodiment, an initial check matrix is constructed based on dimensional information, and a target row weight is determined. The target row weight is used as the baseline row weight. Based on the dual constraints of row weight and column weight of each row in the initial check matrix, a first target position is selected. The non-zero elements in the first target position are updated to zero elements. The initial check matrix is updated and optimized through multiple update rounds until the final check matrix is obtained. Compared with the strict dependence on the row weight structure of the initial check matrix in related technologies, the check matrix construction method provided in this embodiment does not require constraints on the row weight of the initial check matrix, simplifying the requirements for the initial check matrix and reducing the complexity of constructing the check matrix. The update of the initial check matrix is achieved through row and column collaborative constraints in multiple update rounds, so that the final check matrix can meet the row and column requirements, such as uniform row weight and non-uniform column weight, improving the construction efficiency of the check matrix and helping to improve error correction performance.
[0052] In some embodiments, based on any implementation, the dimension information includes the number of rows; determining the target row weight corresponding to the initial verification matrix includes: First, count the total number of non-zero items in the initial check matrix.
[0053] For example, -1, 0, and other positive integers less than the submatrix dimension represent the all-zero submatrix, the identity matrix, and the submatrix shifted to the right by the corresponding positive integer, respectively. The total number of non-zero items refers to the total number of elements in the initial parity check matrix excluding -1.
[0054] Then, based on the total number of non-zero items and the number of rows, the target row weight is determined.
[0055] For example, the target row weight can be determined based on the ratio between the total number of non-zero items and the number of rows. Alternatively, the ratio can be rounded down to the nearest integer as the target row weight.
[0056] In this way, the target row weight is determined based on the total number of non-zero items in the initial parity check matrix, so that the target row weight can match the size and sparse distribution characteristics of the current initial parity check matrix.
[0057] In some embodiments, based on any of the foregoing embodiments, before determining the first target position satisfying the preset conditions in the initial verification matrix in the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, the method provided in this application embodiment further includes the following: First, determine the row with the largest row weight in the initial parity check matrix.
[0058] Then, among the positions corresponding to the multiple preset candidate columns of the row with the largest row weight, the second target position that meets the preset conditions is determined.
[0059] Specifically, the preset candidate columns, as a set of columns pre-set in the initial parity check matrix, can be set according to the dimension, bitrate, and other requirements of the parity check matrix to narrow down the range for optimizing column weight. To avoid the performance improvement being insignificant due to an insufficiently narrow column weight elimination range and the performance loss due to an excessively wide range, in this embodiment, a first threshold and a second threshold are additionally set for the widths (i.e., the total number of all candidate columns) of multiple preset candidate columns, with the widths set between the first and second thresholds. For example, the first threshold can be one-third of the number of columns in the initial parity check matrix, and the second threshold can be two-thirds of the number of columns in the initial parity check matrix.
[0060] The second target position is the position that meets the preset conditions, selected from the positions corresponding to the preset candidate columns in the row with the largest row weight in the initial verification matrix.
[0061] In one possible implementation, the positions of the row with the largest row weight are traversed sequentially according to the preset candidate column sorting order, and the first position that meets the preset condition is determined as the second target position.
[0062] In another possible implementation, in the row with the largest row weight, the column weight of each position is determined, and the difference between the column weight of each position and the corresponding preset column weight is calculated. The position with the largest absolute value of the difference is determined as the second target position.
[0063] It should be noted that when there are multiple rows with the highest row weight, one row can be randomly selected to determine the second target location. Alternatively, the row with the smallest row number can be selected to determine the second target location.
[0064] Finally, the non-zero elements at the second target position are updated to zero elements to obtain the updated initial parity matrix.
[0065] The updated initial verification matrix is used for update operations in subsequent update rounds.
[0066] Specifically, the non-zero element at the second target position in the row with the largest row weight is updated to a zero element, while the elements at other positions remain unchanged, thus obtaining the updated initial parity check matrix.
[0067] In this embodiment, the performance defects of the initial parity-check matrix are concentrated in the row with the largest row weight. The excessive accumulation of non-zero elements in this row leads to a surge in the number of short cycles in the matrix and an increase in decoding complexity. Therefore, in this embodiment, the second target position is first determined in the row with the largest row weight of the initial parity-check matrix, and the non-zero elements at the second target position are updated to zero elements to obtain the updated initial parity-check matrix. Prioritizing the location of the row with the largest row weight provides a reliable foundation for subsequent fine-grained update and iteration optimization.
[0068] In some embodiments, based on any of the foregoing embodiments, in the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, a first target position satisfying a preset condition is determined in the initial verification matrix, specifically including the following method steps: a1 determines the difference between the row weight and the target row weight for each row in the initial check matrix.
[0069] Specifically, the difference between the row weight of each row and the target row weight serves as a quantitative indicator to measure how far the row deviates from the optimal row weight. The larger the absolute value of the difference, the more serious the deviation of the number of non-zero elements in the row from the target row weight, and the more obvious the structural defects. Conversely, the smaller the difference, the closer the row structure is to the optimal row state.
[0070] a2, based on the difference between the row weight of each row in the initial check matrix and the target row weight, determines the candidate row in the initial check matrix.
[0071] Specifically, candidate rows are selected based on the difference in row weight among the rows, and are used as alternative rows for priority optimization.
[0072] In one possible implementation, the row with the largest absolute difference in the initial check matrix is identified as the candidate row.
[0073] For example, the target row weight is preset to 4. Row A has a row weight of 7, a difference of +3, and an absolute difference of 3. Row B has a row weight of 2, a difference of -2, and an absolute difference of 2. Row A has a higher deviation in row weight, indicating a more prominent structural defect. Therefore, row A is selected as a candidate row.
[0074] Considering that the overall error correction performance, decoding convergence characteristics, and hardware complexity of the parity check matrix are mainly constrained by the extreme value row with the most severe global defects, the row with the largest row weight deviation will cause local non-zero element accumulation, increase the number of short loops, and make it difficult for decoding iteration to converge. Therefore, in this embodiment, the row with the largest absolute value of the difference is determined as the candidate row, and the row with the most severe defects is updated first. In each round of update iteration, the candidate row is optimized first to maximize the optimization of the parity check matrix.
[0075] a3 determines whether there is a position in the candidate row that meets the preset conditions, and obtains the judgment result.
[0076] In one possible implementation, it is determined whether there is a position in the candidate row that satisfies a preset condition, in the positions corresponding to the multiple preset candidate columns of the candidate row.
[0077] For example, if a candidate row is the 10th row of the matrix, and the 20th to 50th columns in that row are preset candidate columns, then only all positions within the range of the 20th to 50th columns of the 10th row will be judged, and the remaining positions will not be judged.
[0078] In this way, the condition judgment of candidate rows is limited to the preset candidate columns. Compared with the shortcomings of judging all columns, such as high computational cost, easy destruction of the inherent structure of the quasi-cyclic verification matrix, and high misjudgment rate, this method balances the effectiveness of optimization and structural stability, reduces the judgment time of a single iteration, and improves the efficiency of matrix optimization iteration.
[0079] a4. Based on the judgment result, determine the location of the first target.
[0080] In one possible implementation, a4 specifically includes: If the judgment result indicates that there is a position in the candidate row that meets the preset conditions, then the candidate row is determined as the first target position.
[0081] Optionally, according to the column number of the preset candidate column, traverse the positions corresponding to each preset candidate column in the candidate row, and determine the first position that meets the preset condition as the first target position.
[0082] Optionally, the position in the candidate row that meets the preset conditions can be randomly selected as the first target position.
[0083] In this way, by using the row weight difference to quantify and filter candidate rows, hierarchical optimization from heavy to light can be achieved, improving the targeting and effectiveness of the update round optimization.
[0084] In another possible implementation, a4 specifically includes: If the judgment result indicates that there is no position in the candidate row that meets the preset conditions, then from the other rows in the initial verification matrix excluding the candidate rows, determine the required row whose difference between the row weight and the target row weight is not within the preset difference range; based on the required row, determine the first target position.
[0085] Optionally, determining the first target location based on the demand line includes the following steps: Traverse each requirement row according to the row number. In each requirement row, according to the order of each preset candidate column, traverse each position in the requirement row that corresponds to each preset candidate column in turn until the first position that meets the preset condition is found, and determine the position as the first target position.
[0086] Optionally, if no position satisfying the preset conditions is found among all the required lines, the method provided in this application embodiment further includes the following: First, iterate through each preset candidate column to determine the target candidate column whose column weight is inconsistent with the corresponding column weight.
[0087] Then, for each target candidate column, the candidate positions of elements that are non-zero items are determined within that target candidate column.
[0088] Finally, among all candidate positions, the candidate position with the largest row weight is determined as the first target position.
[0089] Furthermore, for each first target position, the non-zero elements at that position are updated to zero elements to obtain the updated matrix, and the update count is incremented. When the update count is less than the preset update count, the next update round begins. Based on the target row weight and the row weight corresponding to each row in the updated matrix, the first target position is determined again in the updated matrix. This process continues until the preset update count is reached, at which point the update operation stops, and the first updated matrix is obtained.
[0090] In some embodiments, based on any of the foregoing embodiments, the verification matrix is determined based on the first updated matrix, specifically including the following method steps: First, obtain the column weights corresponding to the multiple preset candidate columns in the first updated matrix.
[0091] Then, if there is a target column among the multiple preset candidate columns whose column weight is inconsistent with the corresponding preset column weight, at least one non-zero element in the target column is updated to a zero element to obtain a second updated matrix, so that the column weight of the target column in the second updated matrix is consistent with the corresponding preset column weight.
[0092] In one possible implementation, the total number of non-zero elements that need to be updated is determined based on the difference between the column weight of the target column and the corresponding preset column weight. Based on the total number of non-zero elements that need to be updated, a target non-zero element corresponding to that total number is randomly selected in the target column, and this target non-zero element is updated to a zero element.
[0093] This forces the preset candidate columns to be zeroed, making the column distribution of the verification matrix consistent with the preset column weight, so as to ensure that the column weight of the generated verification matrix meets the requirements.
[0094] For example, the difference between the column weight of the target column and the corresponding preset column weight is used as the total number of non-zero items that need to be updated.
[0095] Next, determine the difference between the row weight of each row in the second updated matrix and the target row weight.
[0096] Finally, if there are rows in the second updated matrix where the difference between the row weight and the target row weight is not within the preset difference range, then the elements at the first and second positions in the target column are swapped to obtain a verification matrix, so that the difference between the row weight of each row in the verification matrix and the target row weight is within the preset difference range.
[0097] In this system, the element in the first position is a non-zero element, the element in the second position is a zero element, and the row weight of the row in the first position is greater than the target row weight, while the row weight of the row in the second position is less than the target row weight.
[0098] Specifically, the preset difference range is a preset allowable threshold range for row weight deviation, used to measure whether the row weight is uniform and whether the matrix structure meets the standard. For example, the preset difference range is set to 0, which requires that the row weight of all rows after optimization be completely consistent with the target row weight. Of course, a tolerance range of ±1 can also be set according to actual needs, setting the preset difference range in [-1,1], thereby ensuring optimal performance of the check matrix and controllable hardware overhead.
[0099] The first position in the matrix contains a non-zero element, and the row weight of its current row is greater than the target row weight. This indicates an overweight row with redundant non-zero elements. The second position contains a zero element, and the row weight of its current row is less than the target row weight. This indicates an underweight row with missing non-zero elements. For example, if the target row weight is 4, and the current row weight of a row is 6, the position of a non-zero element in that row is the first position; if the current row weight of a row is 2, the position of a zero element in the corresponding column is the second position. These two positions are then swapped for fine-tuning. This reduces the weight of overweight rows by one and increases the weight of underweight rows by one, while keeping the target column weight unchanged, thus maximizing the encoding performance of the final parity check matrix.
[0100] Of course, if none of the target columns among the multiple preset candidate columns have a column weight inconsistent with the corresponding preset column weight, then the first updated matrix is determined as the final verification matrix. If the differences between the row weights and the target row weights in the second updated matrix are all within the preset difference range, then the second updated matrix is determined as the final verification matrix.
[0101] In this embodiment, after multiple update rounds, coarse convergence in rows and columns is achieved. The first updated matrix may still have defects such as column weight deviation and row weight imbalance. Therefore, in this embodiment, the column weight of the parity check matrix is first made to meet the requirements by setting the preset column weight of the candidate columns. If the column weight is uneven, the same column is further adjusted by swapping elements to correct the row weight deviation without changing the column weight. This makes the deviation between the row weight of the parity check matrix and the target row weight within the preset deviation range, that is, the row weight is as uniform as possible. The final generated parity check matrix is very friendly to the hardware implementation of the entire decoder and meets the current error correction requirements of NAND.
[0102] In this embodiment, two types of (37120, 33280) QC-LDPC codes suitable for 3D TLC NAND flash memory were constructed. First, the dimension of the sub-matrix was determined to be 256, based on the dimension of the verification matrix (i.e., the base matrix). Next, initial verification matrices with initial column weights of all 5 and 6 were constructed using a PEG-based method. According to the method provided in this application, preset candidate column regions whose widths meet the first and second thresholds were set for both verification matrices, with the column weight of each region set to 3. Two types of matrices with uniform row weights (error less than or equal to 1) and column weights of 3 and 5, and 3 and 6, respectively, were constructed according to the method of this invention. Under a Binary Symmetric Channel (BSC) channel, the hard decoding performance of the two matrices constructed based on the method of this invention was simulated with fixed error injection using a hierarchical normalized minimum sum algorithm. Under the same test conditions, the bit error rate and frame error rate decoding performance of the initially constructed matrices and the final matrices obtained after column and row weight optimization were tested respectively. Figure 2 and Figure 3 The paper presents a performance comparison of bit error rate and frame error rate between the initially constructed matrix with all columns of 5 and the optimized irregular matrix with columns of 3 and 5. It can be seen that the method of the present invention improves the decoding performance of both matrices by two orders of magnitude.
[0103] Furthermore, Figure 4 and Figure 5 The paper presents a performance comparison of bit error rate and frame error rate for an initially constructed matrix with all columns of 6 and an optimized irregular matrix with column weights of 3 and 6. It can be seen that the method of this invention improves the decoding performance of both matrices by nearly seven orders of magnitude. The two types of matrices also demonstrate the universality of the method of this invention.
[0104] A comparison of the frame error rate performance curves of the two types of matrices after optimization shows that, when the initial bit error rates are higher than 7.8E-3 and 8.2E-3, the frame error rate of the optimized matrix can reach below 1E-4, meaning only one error occurs in every 10,000 decoding attempts. This result can almost meet the needs of all current 3D QLC NAND flash memory and has a good performance degradation advantage in the waterfall region.
[0105] This application also provides a system for constructing a check matrix. For example... Figure 6 As shown, the system includes a matrix storage module, a weight calculation unit, an elimination demand analysis module, an elimination execution unit, a forced balancing unit, and a state control machine.
[0106] The matrix storage module is used to store LDPC parity matrix data, such as data generated during the construction process.
[0107] The weight calculation unit is used to calculate row and column weights in parallel. The row weight calculation unit calculates the number of non-zero elements in each row in parallel. It contains multiple concurrent calculation units, each responsible for calculating the row weight of one or several rows. The calculation unit counts the number of non-zero (i.e., not -1) elements by traversing each element in a row.
[0108] The column weight calculation is similar, but it calculates the column weights of preset candidate columns. It also uses parallel computing, with each computing unit responsible for calculating the weights of one or several columns.
[0109] The elimination requirement analysis module is used to determine the number of non-zero elements that need to be eliminated in each column. Based on the preset target column weight and row weight tolerance, it calculates the number of non-zero elements to be eliminated in each column. Simultaneously, based on the current row weight and the total elimination quantity, it calculates the target row weight and the acceptable row weight range (target row weight ± tolerance). For each row, it calculates the number of non-zero elements to be eliminated so that the row weight falls within the acceptable range.
[0110] The elimination execution unit is used to perform the update operation (also known as the elimination operation) of matrix elements. Based on the results of the elimination requirement analysis module, this unit performs the actual update operation (setting the matrix elements to -1). The elimination process consists of two phases: the first phase uses the maximum row weight principle to select the first elimination position; the second phase focuses on evenly distributing row weights, cyclically eliminating until all columns reach the preset column weight or elimination can no longer continue.
[0111] The forced balancing unit is used to analyze the row and column distribution of the first updated matrix, and to move non-zero terms to make the rows and columns meet the set constraints.
[0112] The state control machine coordinates the workflow of each module and controls the state transitions of the entire optimization process, including initialization, weight calculation, elimination requirement analysis, elimination execution, result verification, and forced balancing. The state machine ensures that each module works sequentially and transitions to the next state upon completion of each state.
[0113] The system described above can construct various high-rate irregular QC-LDPC code parity-check matrices suitable for 3D NAND flash memory media, and the constructed matrices exhibit excellent error correction performance. Furthermore, this method ensures that the constructed matrices have uniform row weight, thus guaranteeing a uniform computational load for each row during the hardware implementation of serial decoding. This avoids decoding bottlenecks caused by excessive computational pressure on some rows, thereby reducing latency.
[0114] The above mainly describes the solution provided by the embodiments of this application from a methodological perspective.
[0115] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.
[0116] This application also provides a device for constructing a verification matrix, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0117] This embodiment provides a device for constructing a check matrix, such as... Figure 7 As shown, it includes: The acquisition module 701 is used to acquire the dimension information of the verification matrix to be constructed; The construction module 702 is used to construct an initial verification matrix based on dimensional information and determine the target row weight corresponding to the initial verification matrix; The update module 703 is used to determine the first target position in the initial verification matrix that meets the preset conditions in the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix. The preset conditions are that the column weight of the column is greater than the corresponding preset column weight, and the element at the position is a non-zero element. Update the non-zero elements at the first target position to zero elements to obtain the updated matrix, and then perform the update count accumulation operation. When the number of updates is less than the preset number of updates, the next update round is entered. Based on the target row weight and the row weight corresponding to each row in the updated matrix, the first target position is determined again in the updated matrix. This continues until the number of updates reaches the preset number of updates, at which point the update operation stops and the first updated matrix is obtained. The preset number of updates is determined based on the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight. The determination module 704 is used to determine the verification matrix based on the first updated matrix.
[0118] The apparatus provided in this application constructs an initial check matrix based on dimensional information and determines the target row weight. Using the target row weight as the baseline row weight, a first target position is selected based on the dual constraints of row weight and column weight in each row of the initial check matrix. Non-zero elements in this first target position are updated to zero elements. The initial check matrix is updated and optimized through multiple update rounds until the final check matrix is obtained. Compared to the strict dependence on the row weight structure of the initial check matrix in related technologies, the check matrix construction method provided in this application does not require row weight constraints on the initial check matrix, simplifying the requirements for the initial check matrix and reducing the complexity of constructing the check matrix. The update of the initial check matrix is achieved through row and column collaborative constraints in multiple update rounds, ensuring that the final check matrix meets row and column requirements, such as uniform row weight and non-uniform column weight. This improves the construction efficiency of the check matrix and helps to enhance error correction performance.
[0119] In one possible implementation, the update module 703 is further configured to, in the current update round, determine the row with the largest row weight in the initial verification matrix before determining the first target position in the initial verification matrix, based on the target row weight and the row weight corresponding to each row in the initial verification matrix. Among the positions corresponding to multiple preset candidate columns in the row with the largest row weight, determine the second target position that meets the preset conditions; The non-zero elements at the second target position are updated to zero elements to obtain the updated initial parity matrix, which is used for update operations in subsequent update rounds.
[0120] In one possible implementation, the update module 703 is specifically used to determine the difference between the row weight corresponding to each row in the initial check matrix and the target row weight. Candidate rows are determined in the initial verification matrix based on the difference between the row weight of each row and the target row weight. Determine whether there is a position in the candidate row that meets the preset conditions, and obtain the judgment result; Based on the judgment results, the location of the first target is determined.
[0121] In one possible implementation, the update module 703 is specifically used to determine the row with the largest absolute difference in the initial check matrix as a candidate row.
[0122] In one possible implementation, the update module 703 is specifically used to determine whether there is a position in the candidate row that meets the preset conditions in the positions corresponding to the multiple preset candidate columns of the candidate row, and to obtain the judgment result.
[0123] In one possible implementation, the update module 703 is specifically used to determine the location of the first target based on the judgment result, including: If the judgment result indicates that there is a position in the candidate row that meets the preset conditions, then the candidate row is determined as the first target position. Alternatively, if the judgment result indicates that there is no position in the candidate row that meets the preset conditions, then from the rows other than the candidate rows in the initial verification matrix, determine the required row whose difference between the row weight and the target row weight is not within the preset difference range; based on the required row, determine the first target position.
[0124] In one possible implementation, the determining module 704 is specifically used to obtain the column weights corresponding to multiple preset candidate columns in the first updated matrix; If there is a target column among multiple preset candidate columns whose column weight is inconsistent with the corresponding preset column weight, at least one non-zero element in the target column is updated to a zero element to obtain a second updated matrix, so that the column weight of the target column in the second updated matrix is consistent with the corresponding preset column weight; Determine the difference between the row weight of each row in the second updated matrix and the target row weight; If there are rows in the second updated matrix where the difference between the row weight and the target row weight is not within the preset difference range, then the elements at the first and second positions in the target column are swapped to obtain a verification matrix, such that the difference between the row weight of each row in the verification matrix and the target row weight is within the preset difference range. Here, the element at the first position is a non-zero element, the element at the second position is a zero element, and the row weight of the row at the first position is greater than the target row weight, while the row weight of the row at the second position is less than the target row weight.
[0125] For a description of the features in the embodiment corresponding to the apparatus for constructing the parity check matrix, please refer to the relevant description in the embodiment corresponding to the method for constructing the parity check matrix, which will not be repeated here.
[0126] Embodiments of this application also provide an electronic device, such as... Figure 8 As shown, it includes a memory 10 and a processor 20. The memory 10 stores a computer program, and the processor 20 is configured to run the computer program to perform the steps in any of the above embodiments of the method for constructing a check matrix.
[0127] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above embodiments of the method for constructing a parity check matrix when it is run.
[0128] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0129] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above embodiments of the method for constructing a check matrix.
[0130] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above embodiments of the method for constructing a parity check matrix.
[0131] Any of the components, modules, units, parts, methods, and operations described herein can be implemented using software, firmware, hardware (e.g., fixed logic circuitry), manual processing, or any combination thereof. Alternatively or additionally, any functionality described herein can be executed at least in part by one or more hardware logic components, such as, but not limited to, a central processing unit (CPU), a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), an application-specific standard product (ASSP), a system-on-a-chip (SoC), a complex programmable logic device (CPLD), a microprocessor (MCU), etc. The terms "system," "computing device," or "apparatus" as used herein encompass various means, devices, and machines for processing data, including, for example, one or more programmable processors, computers, SoCs, or combinations thereof. The apparatus may also include code that creates an execution environment for the computer program in question, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, a cross-platform runtime environment, a virtual machine, or one or more combinations thereof. The aforementioned computer program (also known as a program, software, software application, app, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and can be deployed in any form, including as a standalone program or as a module, component, subroutine, object, or other unit suitable for a computing environment.
[0132] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0133] The foregoing has provided a detailed description of a method, apparatus, electronic device, and medium for constructing a verification matrix. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of these embodiments are only intended to aid in understanding the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.
Claims
1. A method for constructing a parity check matrix, characterized in that, The method includes: Obtain the dimension information of the verification matrix to be constructed; Based on the dimensional information, an initial verification matrix is constructed, and the target row weight corresponding to the initial verification matrix is determined; In the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, a first target position that meets the preset conditions is determined in the initial verification matrix. The preset conditions are that the column weight of the column is greater than the corresponding preset column weight, and the element at the position is a non-zero element. Update the non-zero elements at the first target position to zero elements to obtain the updated matrix, and perform an update count accumulation operation; When the number of updates is less than the preset number of updates, the next update round is entered to determine the first target position in the updated matrix again based on the target row weight and the row weight corresponding to each row in the updated matrix, until the number of updates reaches the preset number of updates, the update operation stops, and the first updated matrix is obtained. The preset number of updates is determined based on the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight. The verification matrix is determined based on the first updated matrix.
2. The method according to claim 1, characterized in that, Before determining the first target position satisfying the preset conditions in the initial verification matrix in the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, the method further includes: Determine the row with the largest row weight in the initial verification matrix; Among the positions corresponding to the multiple preset candidate columns of the row with the largest row weight, determine the second target position that satisfies the preset condition; The non-zero elements at the second target position are updated to zero elements to obtain the updated initial parity matrix, which is used for update operations in subsequent update rounds.
3. The method according to claim 1 or 2, characterized in that, In the current update round, based on the target row weight and the row weight corresponding to each row in the initial verification matrix, determining the first target position that satisfies the preset conditions in the initial verification matrix includes: Determine the difference between the row weight of each row in the initial verification matrix and the target row weight; Based on the difference between the row weight corresponding to each row in the initial verification matrix and the target row weight, candidate rows are determined in the initial verification matrix; Determine whether there is a position in the candidate row that satisfies the preset condition, and obtain the determination result; Based on the judgment result, the location of the first target is determined.
4. The method according to claim 3, characterized in that, The step of determining candidate rows in the initial verification matrix based on the difference between the row weight corresponding to each row in the initial verification matrix and the target row weight includes: The row with the largest absolute difference in the initial verification matrix is determined as the candidate row.
5. The method according to claim 3, characterized in that, The step of determining whether there is a position in the candidate row that satisfies the preset condition, and obtaining the determination result, includes: In the positions corresponding to the multiple preset candidate columns of the candidate row, it is determined whether there is a position in the candidate row that satisfies the preset condition, and the determination result is obtained.
6. The method according to claim 3, characterized in that, Determining the location of the first target based on the judgment result includes: If the judgment result indicates that there is a position in the candidate row that meets the preset condition, then the candidate row is determined as the first target position. Alternatively, if the judgment result indicates that there is no position in the candidate row that meets the preset condition, then from the rows other than the candidate row in the initial verification matrix, determine the required row whose difference between the row weight and the target row weight is not within the preset difference range; based on the required row, determine the first target position.
7. The method according to claim 1 or 2, characterized in that, Determining the verification matrix based on the first updated matrix includes: Obtain the column weights corresponding to the multiple preset candidate columns in the first updated matrix; If there is a target column among the plurality of preset candidate columns whose column weight is inconsistent with the corresponding preset column weight, at least one non-zero element in the target column is updated to a zero element to obtain a second updated matrix, such that the column weight of the target column in the second updated matrix is consistent with the corresponding preset column weight; Determine the difference between the row weight of each row in the second updated matrix and the target row weight; If there is a row in the second updated matrix whose row weight is not within the preset difference range from the target row weight, then the elements at the first and second positions in the target column are swapped to obtain the verification matrix, such that the difference between the row weight of each row in the verification matrix and the target row weight is within the preset difference range. Here, the element at the first position is a non-zero element, the element at the second position is a zero element, and the row weight of the row at the first position is greater than the target row weight, while the row weight of the row at the second position is less than the target row weight.
8. A device for constructing a parity check matrix, characterized in that, The device includes: The acquisition module is used to obtain the dimension information of the verification matrix to be constructed; A construction module is used to construct an initial verification matrix based on the dimensional information and determine the target row weight corresponding to the initial verification matrix; The update module is used to determine, in the current update round, a first target position in the initial verification matrix that meets a preset condition based on the target row weight and the row weight corresponding to each row in the initial verification matrix. The preset condition is that the column weight of the column is greater than the corresponding preset column weight, and the element at the position is a non-zero element. Update the non-zero elements at the first target position to zero elements to obtain the updated matrix, and perform an update count accumulation operation; When the number of updates is less than the preset number of updates, the next update round is entered to determine the first target position in the updated matrix again based on the target row weight and the row weight corresponding to each row in the updated matrix, until the number of updates reaches the preset number of updates, the update operation stops, and the first updated matrix is obtained. The preset number of updates is determined based on the difference between the column weight of each column in the initial verification matrix and the corresponding preset column weight. The determination module is used to determine the verification matrix based on the first updated matrix.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the method for constructing the parity check matrix as described in any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method for constructing the parity check matrix as described in any one of claims 1-7.
