A method, apparatus, device, and medium for constructing lossy prototype LDPC source code.
The differential evolution algorithm is used to perform mutation, crossover and selection operations on the prototype graph LDPC code, which solves the problem of the inconsistency between the source code and the user's needs in the existing technology, generates a P-LDPC code with excellent distortion performance, and improves the efficiency of the source code construction. and performance.
Patent Information
- Application Number
- CN202410778319.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The existing technology fails to effectively construct the lossy prototype LDPC source code that meets the user's needs, resulting in the source code being inconsistent with the user's preferences.
The differential evolution algorithm (DE) is used to perform mutation, crossover and selection operations on the basic matrix of the prototype LDPC code to generate a P-LDPC code with excellent distortion performance. Specific steps include initializing the basis matrix, randomly selecting elements, performing mutation and crossover operations, iteratively calculating the distortion value, and selecting the optimal individual as the result output.
Through the mutation, crossover and selection operations of the DE algorithm, the local optimal solution is jumped out, new features are introduced, the algorithm performance is improved, a more adaptable source code is generated, and the efficiency and performance of the lossy prototype LDPC source code construction are improved.
Smart Images

Figure CN118353477B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data compression, and in particular to a method, device, equipment and medium for constructing a lossy original model LDPC signal source code. Background Art
[0002] In the field of signal processing, lossy data compression can effectively save bandwidth resources for information source storage and transmission, and is a key technology for achieving green communication. Using data compression to implement information preprocessing can effectively reduce the complexity of communication algorithms and hardware costs. Lossy compression is a key technology for removing data redundancy in communication systems. The process only retains the most useful effective information of the source, and the data size will be significantly reduced, which is more conducive to saving communication bandwidth and reducing the burden of device source acquisition. The physical layer of wireless communication implements lossy compression of the source, mainly using two modules: source encoding and source decoding, to achieve data lossy compression and lossy recovery respectively.
[0003] The DE (Differential Evolution) algorithm is an efficient global optimal algorithm and a population-based heuristic search algorithm. Compared with traditional evolutionary strategies, the mathematical structure and search process of the DE algorithm are clear and explicit.
[0004] Currently, the DE algorithm has not been used in the construction of lossy protograph low density parity check (P-LDPC) source codes.
[0005] In view of this, the applicant filed this application after studying the existing technology. Summary of the invention
[0006] The present invention aims to provide a lossy original model LDPC signal source code construction method, device, equipment and medium to solve the shortcomings of the signal source code generated in the existing method that is inconsistent with people's preferences and does not meet user needs.
[0007] In order to solve the above technical problems, the present invention is implemented through the following technical solutions:
[0008] A method for constructing a lossy original model LDPC signal source code, comprising:
[0009] S1, obtaining the code rate of the original model LDPC code, setting the size of the original model basic matrix according to the code rate and initializing it to obtain a first basic matrix; considering the first basic matrix as an individual in the differential evolution algorithm process, setting relevant parameters of the differential evolution algorithm process, wherein the parameters include: the maximum number of individuals in each generation of the population, the maximum number of population generations, the crossover probability, the mutation probability and the maximum element in the first basic matrix;
[0010] S2, according to the maximum number of individuals and the maximum element, randomly select an integer in the range of 0 to the maximum element to replace any element in the first basis matrix, and obtain other basis matrices in the initial population, that is, other individuals;
[0011] S3, according to the mutation probability, use the differential evolution algorithm to mutate each individual in the population, that is, randomly select the difference vector of two individuals from the population as the random change source of the third individual, weight the difference vector and sum it with the third individual according to the rules, so as to generate the current mutant individual;
[0012] Among them, the maximum number of individuals is set to K, the maximum population generation is set to G, and the mutation probability is set to , then the formula of the mutation operation is:
[0013] ;
[0014] in, is the variant of the kth individual in the gth generation population, is the rounding function, , , are three numbers randomly selected from the interval [0, K], , , are the first , , individuals, 1≤g≤G;
[0015] S4, according to the crossover probability, using the differential evolution algorithm to perform a crossover operation on each element of each individual in the population, and mixing parameters of each element of the current mutated individual with each element of the original individual, so as to obtain a current individual crossover;
[0016] Among them, let the crossover probability be , then the formula for the crossover operation is:
[0017] ;
[0018] in, is the i-th row and j-th column element of the crossover of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the variant of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the k-th individual in the g-th generation population;
[0019] S5, calculating the distortion value of the current individual intersection, determining whether to update the current individual, if the distortion value of the current individual intersection is lower than the distortion value of the previous generation, then using the current individual intersection to update and replace the current individual, otherwise, the current individual remains unchanged;
[0020] S6, according to the maximum population generation number and the maximum number of individuals in each generation, iteratively calculate the distortion value of each individual in each population and update and replace it until the population generation number reaches the maximum number of times specified;
[0021] S7, select the individual with the lowest distortion value in the population as the optimal individual of the current iteration and output it as the result.
[0022] The present invention also provides a lossy original model LDPC signal source code construction device, comprising:
[0023] A first base matrix acquisition unit is used to obtain a first base matrix, obtain a code rate of the original model LDPC code, set the size of the original model base matrix according to the code rate and initialize it to obtain a first base matrix; and regard the first base matrix as an individual in the differential evolution algorithm process, and set relevant parameters of the differential evolution algorithm process, wherein the parameters include: the maximum number of individuals in each generation of the population, the maximum number of population generations, the crossover probability, the mutation probability and the maximum element in the first base matrix;
[0024] A population initialization unit, used to obtain all individuals in the initial population, randomly select an integer in the range of 0 to the maximum element to replace any element in the first basis matrix according to the maximum number of individuals and the maximum element, and obtain other basis matrices in the initial population, that is, other individuals;
[0025] The mutation unit is used to obtain mutant individuals. According to the mutation probability, the differential evolution algorithm is used to perform mutation operations on each individual in the population. The difference vector of two individuals is randomly selected from the population as the random change source of the third individual. The difference vector is weighted and summed with the third individual according to the rules to generate the current mutant individual. Among them, the maximum number of individuals is set to K, the maximum population generation is G, and the mutation probability is , then the formula of the mutation operation is:
[0026] ;
[0027] in, is the variant of the kth individual in the gth generation population, is the rounding function, , , are three numbers randomly selected from the interval [0, K], , , are the first , , individuals, 1≤g≤G;
[0028] The crossover unit is used to obtain a crossover body. According to the crossover probability, a differential evolution algorithm is used to perform a crossover operation on each element of each individual in the population, and each element of the current variant individual is parameter-mixed with each element of the original individual to obtain the current individual crossover body; wherein, the crossover probability is , then the formula for the crossover operation is:
[0029] ;
[0030] in, is the i-th row and j-th column element of the crossover of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the variant of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the k-th individual in the g-th generation population;
[0031] The distortion value calculation unit is used to select and determine the value of the current individual, calculate the distortion value of the current individual intersection, and determine whether to update the current individual. If the distortion value of the current individual intersection is lower than the distortion value of the previous generation, the current individual intersection is used to update and replace the current individual, otherwise, the current individual remains unchanged;
[0032] The iteration unit is used to iteratively calculate the distortion value of each individual. According to the maximum population generation number and the maximum number of individuals in each generation, the distortion value of each individual in each population is iteratively calculated and updated and replaced until the population generation number reaches the maximum number of times specified;
[0033] The output unit is used to obtain the final result, select the individual with the lowest distortion value in the population as the optimal individual of the current iteration, and output it as the result.
[0034] The present invention also provides a lossy original model LDPC signal source code construction device, including a processor and a memory, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement a lossy original model LDPC signal source code construction method as described above.
[0035] The present invention also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a device where the computer-readable storage medium is located, a lossy original model LDPC signal source code construction method as described above is implemented.
[0036] In summary, compared with the prior art, the present invention has the following beneficial effects: the present invention uses the DE algorithm for the construction of a lossy protograph low density parity check (P-LDPC) source code, generates a series of P-LDPC code basic matrices (including variants, crossovers, etc.) through operations such as mutation, crossover, and selection update of the DE algorithm, and selects the individual with the best distortion as the result through continuous iteration, and finally generates a P-LDPC code with excellent distortion performance.
[0037] The present invention helps the algorithm to jump out of the current local optimal solution and find a broader source code space through mutation operation; through crossover operation, while retaining some excellent features of the original individual, new features of the mutated individual can be introduced to generate more adaptable new individuals, thereby improving the performance of the algorithm; in the selection operation, by comparing the distortion values of the original individual and the crossover individual, the individual with better distortion value is selected as part of the next generation population. In each evolution process, the present invention will retain excellent individuals and eliminate low-level individuals, and through continuous iterative calculation, the search process is directed to the global optimal solution, with fast convergence speed, simple control parameters, reliable performance, and effectively improving the efficiency of the lossy original model LDPC source code construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A schematic diagram of a lossy original model LDPC signal source code construction method provided in Example 1 of the present invention.
[0040] Figure 2 A flowchart of a method for constructing a lossy original model LDPC source code provided in Example 1 of the present invention.
[0041] Figure 3 This is a rate-distortion performance comparison curve diagram of the coding construction method of the present invention and the AR3A coding method provided in the first embodiment of the present invention.
[0042] Figure 4 A rate-distortion performance comparison curve diagram of the coding construction method of the present invention and the AR4JA coding method provided in Example 1 of the present invention.
[0043] Figure 5A schematic diagram of a lossy original model LDPC signal source code construction device provided in Embodiment 2 of the present invention.
[0044] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0046] Embodiment 1
[0047] Embodiment 1 of the present invention provides a method for constructing a lossy original model LDPC source code, which can be implemented by a lossy original model LDPC source code construction device (hereinafter referred to as the construction device), and in particular, executed by one or more processors in the construction device.
[0048] In this embodiment, the construction device may be an electronic device equipped with a processor, the processor having a computer program of the lossy original model LDPC signal source code construction method and the computer program can be executed, such as a computer, a smart phone, a smart tablet, etc.
[0049] In this embodiment, the DE (Differential Evolution) algorithm includes three main operations: mutation, crossover, and selection. The algorithm randomly generates an initial population, randomly selects two individuals from the population, and uses their difference vectors to randomly change the third individual. According to certain rules, the difference vector and the third individual are weighted and summed to generate mutant individuals. This operation is called mutation.
[0050] The operation of mixing mutant individuals with specific predetermined target individual parameters to generate test individuals is called crossover.
[0051] If the fitness value of the test individual is greater than that of the target individual, the test individual will replace the target individual in the next generation. Otherwise, the target individual will be retained, an operation called selection.
[0052] In the evolution of each generation, the algorithm will retain excellent individuals, eliminate inferior individuals, and guide the search process to the global optimal solution through continuous iterative calculations.
[0053] The DE algorithm is an efficient global optimal algorithm and also a population-based heuristic search algorithm. Compared with traditional evolutionary strategies, the mathematical structure and search process of the DE algorithm are clear and unambiguous. The DE algorithm uses differential vectors to perturb candidate solutions proportionally to produce benign mutations and more competitive offspring solutions. The most outstanding advantages of the DE algorithm are fast convergence speed, simple control parameters, and reliable performance. In particular, in the face of existing nonlinear, multimodal, and indivisible complex problems, the DE algorithm shows greater potential in optimizing robustness and search accuracy. Each individual in the population has a solution vector, and intelligent optimization search is achieved by utilizing cooperation and competition between individuals in the population.
[0054] The LC-PEXIT (Lossy Compression Protograph Extrinsic Information Transfer) algorithm of the present invention generates a series of distortions of basic matrices (including variants, crossovers, etc.) of P-LDPC codes through a DE algorithm to analyze the performance of the basic matrix when used for lossy source coding, and finally generates a P-LDPC code with excellent distortion performance through continuous iteration.
[0055] like Figure 1-Figure 2 As shown, a method for constructing a lossy original model LDPC signal source code includes steps S1 to S7.
[0056] S1, obtain the code rate of the original model LDPC code, set the size of the original model basic matrix according to the code rate and initialize it to obtain a first basic matrix; regard the first basic matrix as an individual in the differential evolution algorithm process, and set relevant parameters of the differential evolution algorithm process, wherein the parameters include: the maximum number of individuals in each generation of the population, the maximum number of population generations, the crossover probability, the mutation probability and the maximum element in the first basic matrix.
[0057] Furthermore, set the bit rate , the largest element Then the first basis matrix is:
[0058] ;
[0059] in, represents the first basis matrix, which has m rows and n columns, i.e., the first individual in the first generation population; express The element at row m and column n in the matrix.
[0060] S2, according to the maximum number of individuals and the maximum element, randomly select 0 to the maximum element, that is, [0, ] replace any element in the first basis matrix with an integer in the interval to obtain other basis matrices in the initial population, that is, other individuals.
[0061] Among them, the basis matrix Represented as the kth individual in the gth generation population.
[0062] Then, the LC-PEXIT algorithm of the present invention is used to calculate the distortion values of all basis matrices in the population through mutation, crossover, and selection update. , where 1≤g≤G, 1≤k≤K.
[0063] S3, according to the mutation probability, use the differential evolution algorithm to mutate each individual in the population, randomly select the difference vector of two individuals from the population as the random change source of the third individual, weight the difference vector and sum it with the third individual according to the rules, so as to generate the current mutant individual.
[0064] Set the maximum number of individuals to K, the maximum population generation to G, and the mutation probability to , further, the mutation process is:
[0065] ;
[0066] in, is the variant of the kth individual in the gth generation population, is the rounding function, , , are three numbers randomly selected from the interval [0, K], , , are the first , , individuals, 1≤g≤G.
[0067] S4, according to the crossover probability, using the differential evolution algorithm to perform a crossover operation on each element of each individual in the population, and mixing parameters of each element of the current mutated individual with each element of the original individual to obtain a current individual crossover.
[0068] Set the crossover probability to , further, the formula of the crossover process is:
[0069] ;
[0070] in, is the i-th row and j-th column element of the crossover of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the variant of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the k-th individual in the g-th generation population.
[0071] S5, calculate the distortion value of the current individual intersection, determine whether to update the current individual, if the distortion value of the current individual intersection is lower than the distortion value of the previous generation, then use the current individual intersection to update and replace the current individual, otherwise, the current individual remains unchanged.
[0072] Furthermore, if the current individual The distortion value is lower than the previous generation If the distortion value is , the individual after the crossover operation is used to replace the current individual for update; otherwise, the current individual remains unchanged.
[0073] That is, the specific formula is:
[0074] ;
[0075] in, is the kth individual in the g-1th generation population, The distortion value calculated for the kth individual in the gth generation population, Distortion value calculated for the kth individual in the g-1th generation population.
[0076] In this embodiment, when calculating the distortion value, an existing distortion metric standard may be used for calculation, such as a bit error rate (BER), that is, a ratio of error bits in a codeword.
[0077] S6, according to the maximum population generation number and the maximum number of individuals in each generation, iteratively calculate the distortion value of each individual in each population and update and replace it until the population generation number reaches the maximum number of times specified.
[0078] k=k+1, iteratively calculate the distortion value of each individual in each population and update and replace it until all individuals K in the contemporary population are calculated; then calculate all individuals in the next generation population, that is, g=g+1, until the population generation reaches G.
[0079] S7, select the individual with the lowest distortion value in the population as the optimal individual of the current iteration and output it as the result.
[0080] In another specific embodiment, a coding matrix is designed for source information with a source statistical characteristic p=0.5, and the specific process is as follows:
[0081] First, determine the size of the basic matrix B. Here, we take the 2 / 5 code rate as an example, that is, the size of the basic matrix B is 3*5, the number of rows m of the basic matrix B is 3, and the number of columns n of the basic matrix B is 5. Then initialize the basic matrix (i.e., the first individual in the first generation population) is as follows:
[0082] ;
[0083] Then, after steps S2-S7, the optimal individual with the lowest distortion value is obtained, which is the final output result , The encoding matrix is shown below:
[0084] ;
[0085] As shown in Table 1, this embodiment calculates the distortion for code rates of 2 / 5 and 4 / 7 respectively. The distortion value of the coding base matrix obtained by the method of the present invention is compared with the traditional channel coding method. It can be seen that the distortion value of the coding base matrix finally obtained by the coding construction method proposed in the present invention is smaller than that of the AR3A (Accumulate-repeat-3-accumulate) code and the AR4JA (Accumulate-4-jagged-accumulate) code.
[0086] Table 1
[0087]
[0088] : represents the basic matrix of AR3A (Accumulate-repeat-3-accumulate) code. AR3A code is a classic P-LDPC code with excellent waterfall performance.
[0089] : represents the basic matrix of AR4JA (Accumulate-4-jagged-accumulate) code. AR4JA code is a classic P-LDPC code with stable performance close to the capacity limit.
[0090] : represents the basic matrix obtained after the coding construction method proposed by the present invention.
[0091] from Figure 3 and Figure 4 It can also be found that the coding basic matrix finally obtained by the coding construction method proposed in the present invention is The rate-distortion performance of the AR3A code and the AR4JA code is closer to the real curve, so it can be concluded that the method of the present invention has better performance.
[0092] In summary, compared with the prior art, the present invention has the following beneficial effects:
[0093] The present invention uses the DE algorithm to construct a lossy protograph low density parity check (P-LDPC) source code, generates a series of P-LDPC code basic matrices (including variants, crossovers, etc.) through operations such as mutation, crossover and selection update of the DE algorithm, selects the individual with the best distortion as the result through continuous iteration, and finally generates a P-LDPC code with excellent distortion performance.
[0094] The present invention has fast convergence speed, simple control parameters, reliable performance, and effectively improves the efficiency of lossy original model LDPC signal source code construction.
[0095] Embodiment 2
[0096] like Figure 5 As shown, the second embodiment of the present invention further provides a lossy original model LDPC signal source code construction device, including:
[0097] A first base matrix acquisition unit is used to obtain a first base matrix, obtain a code rate of the original model LDPC code, set the size of the original model base matrix according to the code rate and initialize it to obtain a first base matrix; and regard the first base matrix as an individual in the differential evolution algorithm process, and set relevant parameters of the differential evolution algorithm process, wherein the parameters include: the maximum number of individuals in each generation of the population, the maximum number of population generations, the crossover probability, the mutation probability and the maximum element in the first base matrix;
[0098] A population initialization unit, used to obtain all individuals in the initial population, randomly select an integer in the range of 0 to the maximum element to replace any element in the first basis matrix according to the maximum number of individuals and the maximum element, and obtain other basis matrices in the initial population, that is, other individuals;
[0099] The mutation unit is used to obtain mutant individuals. According to the mutation probability, the differential evolution algorithm is used to perform mutation operations on each individual in the population. The difference vector of two individuals is randomly selected from the population as the random change source of the third individual. The difference vector is weighted and summed with the third individual according to the rules to generate the current mutant individual. Among them, the maximum number of individuals is set to K, the maximum population generation is G, and the mutation probability is , then the formula of the mutation operation is:
[0100] ;
[0101] in, is the variant of the kth individual in the gth generation population, is the rounding function, , , are three numbers randomly selected from the interval [0, K], , , are the first , , individuals, 1≤g≤G;
[0102] The crossover unit is used to obtain a crossover body. According to the crossover probability, a differential evolution algorithm is used to perform a crossover operation on each element of each individual in the population, and each element of the current variant individual is parameter-mixed with each element of the original individual to obtain the current individual crossover body; wherein, the crossover probability is , then the formula for the crossover operation is:
[0103] ;
[0104] in, is the i-th row and j-th column element of the crossover of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the variant of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the k-th individual in the g-th generation population;
[0105] The distortion value calculation unit is used to select and determine the value of the current individual, calculate the distortion value of the current individual intersection, and determine whether to update the current individual. If the distortion value of the current individual intersection is lower than the distortion value of the previous generation, the current individual intersection is used to update and replace the current individual, otherwise, the current individual remains unchanged;
[0106] The iteration unit is used to iteratively calculate the distortion value of each individual, and iteratively calculate the distortion value of each individual in each population according to the maximum number of individuals in each generation of the maximum population generation, and update and replace it until the population generation reaches the maximum number of times specified;
[0107] The output unit is used to obtain the final result, select the individual with the lowest distortion value in the population as the optimal individual of the current iteration, and output it as the result.
[0108] Embodiment 3
[0109] The third embodiment of the present invention also provides a lossy original model LDPC signal source code construction device, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the lossy original model LDPC signal source code construction method as described above.
[0110] Embodiment 4
[0111] The fourth embodiment of the present invention also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a device where the computer-readable storage medium is located, the lossy original model LDPC signal source code construction method as described above is implemented.
[0112] In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus and method embodiments described above are merely schematic. For example, the flowcharts in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0114] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0115] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0116] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0117] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0118] The "first\second" mentioned in the embodiments is only to distinguish similar objects, and does not represent a specific order for the objects. It is understandable that the "first\second" can be interchanged with the specific order or sequence where permitted. It should be understood that the objects distinguished by "first\second" can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for constructing a lossy original model LDPC signal source code, characterized in that: include: S1, obtaining the code rate of the original model LDPC code, setting the size of the original model basic matrix according to the code rate and initializing it to obtain a first basic matrix; The first base matrix is regarded as an individual in the differential evolution algorithm process, and the relevant parameters of the differential evolution algorithm process are set, wherein the parameters include: the maximum number of individuals in each generation of population, the maximum number of population generations, the crossover probability, the mutation probability and the maximum element in the first base matrix; wherein the bit rate is set , then the expression of the first basis matrix is: ; in, represents the first basis matrix, that is, the first individual in the first generation population; express The element in the mth row and nth column of the matrix; S2, according to the maximum number of individuals and the maximum element, randomly select an integer in the range of 0 to the maximum element to replace any element in the first basis matrix, and obtain other basis matrices in the initial population, that is, other individuals; S3, according to the mutation probability, use the differential evolution algorithm to mutate each individual in the population, randomly select the difference vector of two individuals from the population as the random change source of the third individual, weight the difference vector and sum it with the third individual according to the rules, so as to generate the current mutant individual; Among them, the maximum number of individuals is set to K, the maximum population generation is set to G, and the mutation probability is set to , then the formula of the mutation operation is: ; in, is the variant of the kth individual in the gth generation population, is the rounding function, , , are three numbers randomly selected from the interval [0, K], , , are the first , , individuals, 1≤g≤G; S4, according to the crossover probability, using the differential evolution algorithm to perform a crossover operation on each element of each individual in the population, and mixing parameters of each element of the current mutated individual with each element of the original individual, so as to obtain a current individual crossover; Among them, let the crossover probability be , then the formula for the crossover operation is: ; in, is the i-th row and j-th column element of the crossover of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the variant of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the k-th individual in the g-th generation population; S5, calculating the distortion value of the current individual intersection, determining whether to update the current individual, if the distortion value of the current individual intersection is lower than the distortion value of the previous generation, then using the current individual intersection to update and replace the current individual, otherwise, the current individual remains unchanged; S6, according to the maximum population generation number and the maximum number of individuals in each generation, iteratively calculate the distortion value of each individual in each population and update and replace it until the population generation number reaches the maximum number of times specified; S7, select the individual with the lowest distortion value in the population as the optimal individual of the current iteration and output it as the result.
2. A method for constructing a lossy original LDPC source code according to claim 1, characterized in that , the specific formula of S5 is: ; in, is the kth individual in the g-1th generation population, is the distortion value calculated for the kth individual in the gth generation population, The distortion value calculated for the kth individual in the g-1th generation population.
3. A lossy original model LDPC signal source code construction device, characterized in that: include: A first base matrix acquisition unit is used to obtain a first base matrix, obtain a code rate of the original model LDPC code, set the size of the original model base matrix according to the code rate and initialize it to obtain the first base matrix; The first base matrix is regarded as an individual in the differential evolution algorithm process, and the relevant parameters of the differential evolution algorithm process are set, wherein the parameters include: the maximum number of individuals in each generation, the maximum number of generations, the crossover probability, the mutation probability and the maximum element in the first base matrix; wherein the bit rate is set , then the expression of the first basis matrix is: ; in, represents the first basis matrix, that is, the first individual in the first generation population; express The element in the mth row and nth column of the matrix; A population initialization unit, used to obtain all individuals in the initial population, randomly select an integer in the range of 0 to the maximum element to replace any element in the first basis matrix according to the maximum number of individuals and the maximum element, and obtain other basis matrices in the initial population, that is, other individuals; The mutation unit is used to obtain mutant individuals. According to the mutation probability, the differential evolution algorithm is used to perform mutation operations on each individual in the population. The difference vector of two individuals is randomly selected from the population as the random change source of the third individual. The difference vector is weighted and summed with the third individual according to the rules to generate the current mutant individual. Among them, the maximum number of individuals is set to K, the maximum population generation is G, and the mutation probability is , then the formula of the mutation operation is: ; in, is the variant of the kth individual in the gth generation population, is the rounding function, , , are three numbers randomly selected from the interval [0, K], , , are the first , , individuals, 1≤g≤G; The crossover unit is used to obtain a crossover body. According to the crossover probability, a differential evolution algorithm is used to perform a crossover operation on each element of each individual in the population, and each element of the current variant individual is parameter-mixed with each element of the original individual to obtain the current individual crossover body; wherein, the crossover probability is , then the formula for the crossover operation is: ; in, is the i-th row and j-th column element of the crossover of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the variant of the k-th individual in the g-th generation population, is the i-th row and j-th column element of the k-th individual in the g-th generation population The distortion value calculation unit is used to select and determine the value of the current individual, calculate the distortion value of the current individual intersection, and determine whether to update the current individual. If the distortion value of the current individual intersection is lower than the distortion value of the previous generation, the current individual intersection is used to update and replace the current individual, otherwise, the current individual remains unchanged; The iteration unit is used to iteratively calculate the distortion value of each individual. According to the maximum population generation number and the maximum number of individuals in each generation, the distortion value of each individual in each population is iteratively calculated and updated and replaced until the population generation number reaches the maximum number of times specified; The output unit is used to obtain the final result, select the individual with the lowest distortion value in the population as the optimal individual of the current iteration, and output it as the result.
4. A lossy original model LDPC signal source code construction device, characterized in that: It includes a processor and a memory, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement a lossy original model LDPC signal source code construction method as described in any one of claims 1-2.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor of a device where the computer-readable storage medium is located, a method for constructing a lossy original model LDPC signal source code as described in any one of claims 1-2 is implemented.
