Low-redundancy nonlinear code coding method and system
Through the Varshamov-Tenengolts code construction idea, a low-redundancy nonlinear code is designed, which solves the problems of high redundancy of nonlinear codes and insufficient flexibility of linear codes, and achieves efficient error correction and low-cost data transmission and storage. .
Patent Information
- Application Number
- CN202410618155.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-09-06
AI Technical Summary
Existing nonlinear codes have high coding redundancy, resulting in high transmission and storage costs, and traditional linear codes have limitations in error correction capabilities and flexibility.
Using the Varshamov-Tenengolts code (VT code) construction idea, a nonlinear code that can correct d-1 erasure errors and substitution errors is designed. By analyzing the minimum Hamming distance and good parameters, the redundancy is reduced and the correction is improved. Wrong ability.
It achieves non-linear codes with lower redundancy, improves the reliability of data transmission and storage efficiency, reduces transmission costs, and enhances resistance to signal interference. It is suitable for high-speed communication networks and data center storage solutions.
Smart Images

Figure CN118611685A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of information technology, and in particular relates to a nonlinear code encoding method and system with lower redundancy. Background Art
[0002] In the field of communication and data storage, nonlinear coding technology is widely used to improve the reliability and efficiency of data transmission and storage. Nonlinear coding belongs to a class of error correction codes that do not follow the principle of linear superposition, and its design complexity is higher than that of traditional linear coding. However, it is this complexity that gives them greater adaptability and superior performance in dealing with specific error types. According to the different values of the code elements, they can be divided into q (>2)-based codes and binary codes; according to the different methods of processing information elements, they can be divided into nonlinear block codes and nonlinear convolutional codes.
[0003] Compared with linear coding, nonlinear coding introduces complex constraints, making its analysis and design process relatively complex. For example, in block codes, they are composed of n-dimensional vectors defined on a q-ary field, the minimum distance between these vectors is d, and they do not follow the linear superposition principle. If such a codeword set contains M codewords, it is called a (n, M, d) nonlinear block code. The advantages of nonlinear coding technology are reflected in several key aspects. Nonlinear coding can efficiently extract the semantic features of the source and accurately match it with the channel transmission, thereby significantly improving the system transmission efficiency. In addition, compared with linear coding, nonlinear coding introduces complex constraints, which gives it stronger error correction capabilities. More importantly, although both linear coding and nonlinear coding are part of the coding principle, there are obvious differences in the application fields of the two. Linear coding is mainly limited to the subfield of coding principle represented by algebraic coding theory, while nonlinear coding extends to a wider range of technical fields such as digital signal processing and communication technology.
[0004] There is a long-standing problem in coding theory: given the code alphabet size q, the code length n and the minimum Hamming distance d, how to determine the maximum number of codewords A for a q-ary block code C with these parameters? q (n, d), or equivalently find the corresponding minimum redundancy. At present, there are a lot of literatures on A q (n, d) has been studied and various upper bounds have been proposed, such as the Hamming bound, Plotkin bound, Grismer bound and linear programming bound. The criterion for judging the quality of coding is the Gilbert-Varshamov bound, that is, A q(n, d). There are two forms of Gilbert-Varshamov (GV) constraints: weak GV bound and strong GV bound, of which the strong GV bound is only applicable to linear codes. In addition to some well-known algebraic codes (such as Hamming codes, Reed-Solomon codes, BCH codes, Reed-Muller codes, Goppa codes, and algebraic geometry codes, etc.), the A constraints of linear and nonlinear codes under specific parameters have also been studied. q (n, d) lower bound. Another way to evaluate whether a code has good parameters is to examine its redundancy. Redundancy refers to the amount of additional information added to the code to improve error correction and fault tolerance. Lower redundancy means more compact and efficient coding, while higher redundancy increases transmission and storage costs. Therefore, we hope that the redundancy r q (n, d) is as small as possible to achieve higher coding efficiency. By defining the minimum redundancy as r q (n, d) = n-log q A q (n, d), we can measure the encoding performance under a given alphabet size q, length n and minimum distance d, so we mainly study r q (n, d) or A q (n, d).
[0005] Through the above analysis, the problems and defects of the existing technology are: the current nonlinear code encoding redundancy is high, resulting in high transmission and storage costs. Summary of the invention
[0006] In view of the problems existing in the prior art, the present invention provides a nonlinear code encoding method and system with lower redundancy, which is inspired by the Varshamov-Tenengolts code (VT code) construction. Generally, for a given code length and minimum distance, the nonlinear code of the present invention has lower redundancy than the linear code in some parameter intervals. In particular, when the minimum distance d is fixed, for the code length n within some intervals, the encoding method can achieve lower redundancy than the linear code. In addition, while reducing redundancy, the encoding method has a strong error correction capability and can correct d-1 erasure errors and A replacement error.
[0007] The present invention is implemented as follows: a nonlinear code encoding method with relatively low redundancy, comprising:
[0008] S1, using the idea of VT code, construct a q-ary nonlinear code
[0009] S2, Analysis of Nonlinear Codes The minimum Hamming distance d of the Replacement error;
[0010] S3, Analysis Good parameters.
[0011] Furthermore, S1 specifically includes:
[0012] S101, select q as an integer greater than 1, and the vector x satisfies x=(x1, x2, ..., x n )∈[0,q-1] n When j ≥ 0, inspired by the idea of VT code, define the function
[0013] S102, select d and n as two positive integers greater than 2, l as the smallest prime number satisfying l≥max{n, (d-1)(q-1)+1}; define vector b=(b0, b1, ..., b d-2 ), select b0, b1, b2, …, b d-2 , satisfying b0∈[0,(d-1)(q-1)] and b i ∈[0,l-1], for 1≤i≤d-2;
[0014] S103, construct a q-ary nonlinear code The specific structure is
[0015] Furthermore, S2 specifically includes:
[0016] S201, according to the property that a code has a minimum distance of at least d if and only if it can correct d-1 erasure errors, prove The minimum Hamming distance of is d, which is equivalent to proving that it can correct d-1 erasure errors;
[0017] S202, take S: = αk1, k2, ..., k d-1} is a subset of [n], where k1 <k2<…<k d-1 Assume a codeword The code element at position S is erased, that is, is erased.
[0018] S203, calculation By S1 The structure can be obtained
[0019] S204, take c0∈[0,(d-1)(q-1)] and c0≡b0-c(mod(d-1)(q-1)+1). Satisfy ∑ i∈S α i≤|S|(q-1)=(d-1)(q-1), then ∑ i∈S α i =c0, so we can get ∑ i∈S α i (mod1) = c0;
[0020] S205, for 1≤j≤d-2, calculate
[0021] S206, construct a (d-1)×(d-1) Vandermonde matrix And from the characteristics of the Vandermonde matrix, we know that it is a reversible matrix. Take the vector c = (c0, c1, ..., c d-2 ), construct equation Therefore, it can be known is the only solution to this equation, so we can get, Can correct d-1 erasure errors, and determine The minimum Hamming distance is d, and we can get Can be corrected A replacement error.
[0022] Furthermore, S3 specifically includes:
[0023] S301, the method of judging whether a code has good parameters is to check its redundancy r q (n, d) or the corresponding maximum number of codewords A q (n, d), the relationship between redundancy and the maximum number of codewords can be expressed by the formula r q (n, d) = n-log q A q (n, d) is used to represent the encoding efficiency. q (n, d) or increased A q (n, d) method;
[0024] S302, from S2, we can conclude that there must be a vector b∈[0,(d-1)(q-1)]×[0,l-1] d-2 Make the code is (n, M) code, M is code The number of codewords in M can be obtained by the drawer theorem, M satisfies
[0025] S303, when b traverses [0, (d-1)(q-1)]×[0, l-1] d-2 When but Available The average number of codewords is at least Right now
[0026] S304, due to some class code A q There are too many (n, d) structures, and Hamming code is a special type of linear code. The maximum number of codewords K of Hamming code is discussed. q (n, d) and the constructed nonlinear code A q The relationship between (n, d) is that the Hamming code reaches the Hamming bound when the minimum distance is 3, which means that the Hamming code reaches K when its maximum number of codewords q (n, 3) is optimal; however, there are limitations on the parameter setting of the Hamming code. First, since the Hamming code is a linear code, q is required to be a prime power. Second, when r>2, the code length of the Hamming code must meet In the form of, except for some special parameters, if q is not a prime power or n does not conform to In the form of K, we cannot know exactly q The value of (n, 3) is not even certain whether it satisfies the prime power q. conditions to ensure that there exists a q-ary [n, k, 3]-linear code (which implies that nk q (n, 3) is the minimum redundancy of a q-ary linear code of length n and distance 3), where is the redundancy of the Hamming code, and k q (n, 3) is the maximum dimension k;
[0027] S305, subsequently select several sets of data with d=3, q and n being different, and calculate r using the formula q (n, d) = n-log q A q (n, d) The redundancy r of the low-redundancy nonlinear code q (n, 3), use the table lookup method to find the corresponding linear code redundancy Finally, we can draw the conclusion This shows that the low-redundancy nonlinear code has lower redundancy than the Hamming code, and the coding efficiency is greatly improved.
[0028] Another object of the present invention is to provide a non-linear code encoding system with lower redundancy for implementing the non-linear code encoding method with lower redundancy, comprising:
[0029] Non-linear code construction module, used to construct a q-ary non-linear code using the idea of VT code
[0030] Minimum Hamming distance analysis module for analyzing nonlinear codes The minimum Hamming distance d of the Replacement error;
[0031] Good parameter analysis module for analyzing Good parameters.
[0032] Another object of the present invention is to provide a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor executes the steps of the nonlinear code encoding method with lower redundancy.
[0033] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the nonlinear code encoding method with lower redundancy.
[0034] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:
[0035] First, the present invention adopts the construction concept of q-ary VT code and designs a new code that can correct d-1 erasure errors and A nonlinear code with low redundancy and high error tolerance is proposed. While providing the advantages of high fault tolerance and data density of nonlinear codes, the code satisfies the requirement that the redundancy of the nonlinear code is lower than that of the linear code under given conditions of q, n, and d. With the reduction of redundancy, the data density and transmission efficiency of transmission are greatly improved, the transmission cost is reduced, and the decoding speed is increased. These advantages make it more practical.
[0036] The present invention has the ability to correct erasure and replacement errors to meet application scenarios with high requirements for error correction performance. By adopting complex nonlinear structures and algorithms, this method significantly enhances resistance to signal interference while maintaining high information transmission rates, providing strong technical support for ensuring data integrity.
[0037] Second, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:
[0038] (1) The expected benefits and commercial value of the technical solution of the present invention after transformation are:
[0039] The nonlinear code encoding method and system of the invention can significantly improve the reliability and storage efficiency of data transmission in practical applications, and are specifically used in high-speed communication networks, data center storage solutions, and fields that require high-reliability information protection such as aerospace and military communications. In high-tech fields such as cloud computing, big data analysis, the Internet of Things, and 5G communications, this technology can be used as a core component to improve the reliability and speed of data processing, enhance the system's anti-interference ability, and provide users with more stable and efficient services. Its actual value is reflected in reducing data redundancy to save storage space and costs, while enhancing error correction capabilities to ensure data integrity, which is of great significance for promoting the development of the information industry in the big data era and improving the performance of key communication systems.
[0040] (2) The technical solution of the present invention fills the technical gap in the industry at home and abroad:
[0041] The nonlinear code encoding method and system of the present invention are inspired by Varshamov-Tenengolts code (VT code), which provides an important technical breakthrough in the field of coding theory and data storage. VT code itself is a classic linear error correction code, which is widely used in various communication and data storage systems. However, when dealing with non-binary (q-ary) cases, the traditional VT code will face a high redundancy problem, especially when dealing with large amounts of data. The encoding method of the present invention can correct d-1 erasure errors and By improving the structure of VT code, it is possible to significantly reduce the redundancy of the code while maintaining or improving the error correction capability. This is of great significance for improving the efficiency of data storage and the performance of communication systems.
[0042] Third, the prior art problems solved by the present invention are:
[0043] In the field of communication and data storage, the design of error correction code (ECC) is crucial to ensure the reliability of data transmission and the integrity of storage media. However, although traditional linear codes, such as Hamming codes, can provide good error correction capabilities in theory, they are limited in some aspects:
[0044] 1. High redundancy: Traditional linear codes usually require high redundancy to ensure error correction capability, which is not economical when storage or transmission resources are limited.
[0045] 2. Lack of flexibility: Most linear codes are designed for specific error models, and their performance is greatly reduced when encountering different types of error patterns.
[0046] 3. Limited scope of application: Specific linear codes, such as Hamming codes, have strict requirements on code length and error correction capability, which limits their flexible deployment in practical applications.
[0047] Significant technological advances achieved:
[0048] The present invention proposes a nonlinear code encoding method based on the VT code concept, which achieves significant technical progress in the following aspects:
[0049] 1. Reduce redundancy: Through innovative nonlinear coding methods, the method of the present invention can effectively reduce the required redundancy while maintaining or improving error correction capabilities. This is verified by analyzing the minimum Hamming distance of nonlinear codes and their ability to correct erasure and substitution errors.
[0050] 2. Enhanced flexibility: Nonlinear codes allow for optimized configuration under a variety of error models, providing better flexibility to adapt to changing application scenarios, such as maintaining high coding efficiency under dynamically changing channel conditions.
[0051] 3. Improve coding efficiency: Through optimized parameter settings (such as the number of code elements, moving speed, and contact length, etc.), nonlinear codes can provide error correction capabilities equivalent to or better than traditional Hamming codes while maintaining low redundancy. In particular, the efficiency of encoding and decoding is improved when processing large-scale data.
[0052] 4. Expanded scope of application: The encoding method of the present invention is not limited by traditional linear codes, such as prime powers or specific code length requirements, so that it can be widely used in various technical fields, such as satellite communications, data storage and network transmission.
[0053] The nonlinear code encoding method of the present invention effectively solves the limitations of traditional linear codes in terms of high redundancy, flexibility and scope of application, while achieving significant technical progress and improving the overall performance and efficiency of the system. Through this innovative method, the demand for error correction codes in modern communication and data storage technologies can be better met. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0055] Figure 1 is a flow chart of a nonlinear code encoding method with lower redundancy provided by an embodiment of the present invention;
[0056] Figure 2 is a structural diagram of a nonlinear code encoding system with lower redundancy provided by an embodiment of the present invention;
[0057] Figure 3 is a schematic diagram of a nonlinear code encoding method with lower redundancy provided by an embodiment of the present invention;
[0058] Figure 4 The nonlinear code provided by the embodiment of the present invention has less redundancy than the linear code of the corresponding parameter, which means that it can have higher efficiency, higher data density and lower delay;
[0059] Figure 5 The embodiment of the present invention provides that all errors within the error correction range can be corrected 100% successfully, indicating that the code has a complete and reliable encoding and decoding algorithm. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0061] The present invention proposes a nonlinear code encoding method with low redundancy. The method designs a new encoding strategy by drawing on the idea of VT code. This method not only optimizes the redundancy in the encoding process, but also improves the encoding efficiency. By constructing a nonlinear code with a specific structure, the present invention provides a more efficient and reliable solution for data transmission and storage.
[0062] In the implementation of the encoding method, the present invention elaborates on how to determine the error correction capability of a nonlinear code by analyzing the minimum Hamming distance of the code. Specifically, by proving that the minimum Hamming distance of the code is at least a certain value, the present invention ensures that the encoding scheme can correct a certain number of erasure errors and substitution errors. This feature enables the original data to be restored through the decoding algorithm even if the encoded data is partially lost or changed during transmission, greatly improving the integrity and reliability of the data.
[0063] In industrial applications, the coding method of the present invention has significant technical progress. First, by reducing the redundancy of the coding, the present invention reduces the overhead of data transmission and storage, and improves the overall efficiency of the system. Second, by improving the error correction capability of the coding, the present invention enhances the robustness of data in complex environments, making the data more stable and reliable during transmission and storage. These advantages make the coding method of the present invention have broad application prospects in many industrial fields.
[0064] In addition, the coding method of the present invention also provides theoretical support for the construction and error correction of coding by introducing mathematical tools such as Vandermonde matrix. This coding scheme based on mathematical principles not only ensures the accuracy and reliability of coding, but also makes the coding process more systematic and standardized. Therefore, the coding method of the present invention is not only technically innovative, but also highly practical and operable, and provides a new solution for data transmission and storage in industrial applications.
[0065] Embodiment 1: Error correction in wireless communication system
[0066] In modern wireless communication systems, such as cellular networks, Wi-Fi, satellite communications, etc., various noises and interferences are inevitable during data transmission, resulting in erasure errors and replacement errors of data packets. In order to improve the communication quality and data transmission reliability, effective coding methods are needed to correct these errors.
[0067] 1) Using the VT code concept to construct nonlinear code (S1):
[0068] Select appropriate integers q and vectors greater than 1 and define corresponding functions to construct a nonlinear code of a unit. Using these constructed nonlinear codes, lower redundancy can be added during the transmission process.
[0069] 2) Analyze the minimum Hamming distance (S2) of nonlinear codes:
[0070] By calculating the minimum Hamming distance of the nonlinear code, the number of erasure errors and substitution errors that can be corrected is determined, ensuring that the communication system can effectively correct errors when encountering them.
[0071] 3) Constructing nonlinear codes with good parameters (S3):
[0072] Select two positive integers d and n greater than 2, and define the smallest prime number l and the corresponding vector to construct a nonlinear code of one element. In this way, it is ensured that the constructed nonlinear code has low redundancy and can correct a certain number of errors.
[0073] After the method of the present invention is applied in a wireless communication system, the system can effectively correct multiple erasure errors and replacement errors during signal transmission, thereby significantly improving the reliability of data transmission and communication quality. The low redundancy feature of the method also reduces the occupancy of transmission bandwidth and improves the overall efficiency of the system.
[0074] Example 2: Error Correction in Data Storage System
[0075] In data storage systems, such as hard disks, solid-state drives (SSDs), distributed storage systems, etc., erase errors and replacement errors may occur during the reading and writing of data. In order to ensure the integrity and reliability of data, effective error correction codes need to be used.
[0076] 1) Using the VT code concept to construct nonlinear code (S1):
[0077] Select appropriate integers q and vectors greater than 1 and define corresponding functions to construct a nonlinear code of a unit. These nonlinear codes can be embedded in data storage systems to increase redundancy for error detection and correction.
[0078] 2) Analyze the minimum Hamming distance (S2) of nonlinear codes:
[0079] The minimum Hamming distance of the nonlinear code is calculated to determine the number of erasure errors and replacement errors that can be corrected, ensuring that the storage system can effectively perform error correction during data reading and writing.
[0080] 3) Constructing nonlinear codes with good parameters (S3):
[0081] Select two positive integers d and n greater than 2, define the smallest prime number l and the corresponding vector, and construct a nonlinear code of one element. In this way, it is ensured that the constructed nonlinear code has a strong error correction capability under the condition of low redundancy.
[0082] After the method of the present invention is applied in the data storage system, the system can effectively correct multiple erasure errors and replacement errors during the data reading and writing process, thereby ensuring the integrity and reliability of the stored data. The nonlinear code with lower redundancy not only improves the error correction capability, but also reduces the waste of storage space and improves the overall efficiency of the storage system.
[0083] In view of the problems existing in the prior art, the present invention provides a nonlinear code encoding method and system with lower redundancy. The present invention is described in detail below in conjunction with the accompanying drawings.
[0084] Application Example 1: Data Storage System Based on Low Redundancy Nonlinear Code
[0085] In data storage systems, data integrity and reliability are critical. In order to cope with the risk of data loss or corruption, error correction codes (ECC) are usually used to protect data. However, traditional linear error correction codes (such as Hamming codes) have the problem of high redundancy, which affects storage efficiency and cost. Therefore, adopting a nonlinear code encoding method with lower redundancy is an effective solution.
[0086] 1. Coding stage: The data to be stored is encoded using the lower redundancy nonlinear code encoding method in the above claims. First, according to the characteristics and requirements of the data, appropriate parameters (such as q, n and d, etc.) are selected to construct the corresponding nonlinear code. Then, the data is mapped to the codeword and the encoding operation is performed to generate the encoded data with redundant information.
[0087] 2. Storage stage: The encoded data is stored in a storage medium (such as a hard disk, flash memory, etc.). Since a nonlinear code with low redundancy is used, it can reduce storage costs and improve storage efficiency while ensuring data reliability.
[0088] 3. Decoding and error correction stage: When reading data from the storage medium, data loss or corruption may occur. At this time, the redundant information generated during encoding can be used for decoding and error correction operations. Based on the characteristics of nonlinear codes, the erroneous data bits can be accurately located and corrected to restore the original data.
[0089] By adopting a nonlinear code encoding method with lower redundancy, it is possible to reduce storage costs and improve storage efficiency while ensuring data reliability. Compared with traditional linear error correction codes, this method has lower redundancy and higher coding efficiency, and is suitable for data storage systems that have high requirements for storage efficiency and cost.
[0090] Application Example 2: Wireless Communication System Based on Low Redundancy Nonlinear Code
[0091] In wireless communication systems, due to factors such as channel noise and interference, the receiving end will receive erroneous data. In order to ensure the reliability and stability of communication, error correction codes are usually required to protect the transmitted data. However, traditional linear error correction codes have the problem of high redundancy, which affects the bandwidth and efficiency of communication. Therefore, the use of nonlinear code encoding methods with lower redundancy is an effective solution.
[0092] 1. Coding stage: At the transmitting end, the data to be transmitted is encoded using the lower redundancy nonlinear code encoding method in the above claims. According to the characteristics and requirements of the communication system, appropriate parameters are selected to construct the corresponding nonlinear code, and the data is mapped to the codeword for encoding. After the encoded data with redundant information is generated, it is sent to the receiving end.
[0093] 2. Transmission phase: The encoded data is transmitted through the wireless channel. Due to factors such as channel noise and interference, the receiving end will receive erroneous data.
[0094] 3. Decoding and error correction stage: At the receiving end, the redundant information generated during encoding is used for decoding and error correction operations. Based on the characteristics of nonlinear codes, the erroneous data bits can be accurately located and corrected to restore the original data. The decoded data can be used for subsequent communications or applications.
[0095] By adopting a nonlinear code encoding method with lower redundancy, the bandwidth and efficiency of communication can be improved while ensuring communication reliability. Compared with traditional linear error correction codes, this method has lower redundancy and higher coding efficiency, and is suitable for wireless communication systems with high requirements for communication bandwidth and efficiency. Figure 1 As shown, the nonlinear code encoding method with lower redundancy provided by the embodiment of the present invention includes:
[0096] S1, using the idea of VT code, construct a q-ary nonlinear code
[0097] S2, Analysis of Nonlinear Codes The minimum Hamming distance d of the Replacement error;
[0098] S3, Analysis Good parameters.
[0099] like Figure 2 As shown, the nonlinear code encoding system with lower redundancy provided by the embodiment of the present invention includes:
[0100] Non-linear code construction module, used to construct a q-ary non-linear code using the idea of VT code
[0101] Minimum Hamming distance analysis module for analyzing nonlinear codes The minimum Hamming distance d of the Replacement error;
[0102] Good parameter analysis module for analyzing Good parameters. Specific embodiment 1
[0104] like Figure 3 As shown, this specific embodiment relates to an explicit encoding method of a low-redundancy nonlinear code capable of correcting two erasure errors and one replacement error, comprising the following steps:
[0105] Step 1: Construct a 4-tuple nonlinear code Specifically include:
[0106] Step 1.1, select the smallest prime number such that q=4>1, d=3>2, n∈[30,31]>2, 1=31≥max{n,7}. Select b0, b1, satisfying b0∈[0,6] and b1∈[0,30], and let vector b=(b0,b1);
[0107] Step 1.2, construct a 4-ary nonlinear code The specific structure is
[0108] Step 2: Analyze nonlinear codes The minimum Hamming distance of , which ensures that it can correct 2 erasure errors and 1 substitution error, includes:
[0109] Step 2.1, let A codeword, the code element at position S is erased, S: = {k1, k2} is a subset of [n], and satisfies k1 <k2;
[0110] Step 2.2, calculate From step 1 The structure can be obtained
[0111] Step 2.3, take c0∈[0,6] and c0≡b0-c(mod 7). Satisfy ∑ i∈S α i ≤3|S|=6, there is ∑ i∈S α i =c0. So we can get ∑ i∈S α i (mod 31) = c0;
[0112] Step 2.4, for j = 1, calculate
[0113] Step 2.5, construct a 2×2 Vandermonde matrix And from the characteristics of the Vandermonde matrix, we know that it is a reversible matrix. Take c = (c0, c1), and construct the equation Therefore, it can be known is the only solution to this equation. Therefore, Can correct 2 erase errors and confirm The minimum Hamming distance is 3. At the same time, we can get 1 substitution error can be corrected.
[0114] Step 3, Analysis Are there good parameters, including:
[0115] Step 3.1, from step 2, it can be concluded that there must be a vector b∈[0,6]×[0,30] such that the code is a (n, M) code. According to the drawer theorem, M satisfies
[0116] Step 3.2, when b traverses [0, 6] × [0, 30], it is obvious that but Available The average number of codewords is at least Right now
[0117] Step 3.3, calculate r4(n, 3) = n-log4A4(n, 3) ≤ 3.88, the redundancy of the linear code with q = 4, d = 3, n∈[30, 31] It can be obtained by querying the online table of codetables. It can be obtained that when q=4,d=3,n∈[30,31] It can be seen that the characteristics of the constructed nonlinear code are better than those of its corresponding linear code.
[0118] Through some other examples of q=4, d=3, we can finally get We record some of these parameters in Table 1.
[0119] Table 1. Comparison of nonlinear codes with lower redundancy and corresponding linear codes when q = 4 and d = 3
[0120]
[0121] Specific embodiment 2
[0123] This specific embodiment relates to an explicit encoding method of a low-redundancy nonlinear code capable of correcting two erasure errors and one substitution error, comprising the following steps:
[0124] Step 1: Construct a 3-ary nonlinear code Specifically include:
[0125] Step 1.1, select the smallest prime number such that q=3>1, d=3>2, n∈[122,123]>2, l=123≥max{n,5}. Select b0, b1, satisfying b0∈[0,4] and b1∈[0,122], and let vector b=(b0,b1);
[0126] Step 1.2, construct a 3-ary nonlinear code The specific structure is
[0127] Step 2, analyze the non - linear code 's minimum Hamming distance to ensure that it can correct 2 erasure errors and 1 substitution error, specifically including:
[0128] Step 2.1, let be a codeword of, and the code element at position S is erased, S:={k1, k2} is a subset of [n], and satisfies k1 < k2, that is is erased;
[0129] Step 2.2, calculate Constructed from in Step 1 can be obtained
[0130] Step 2.3, take c0 ∈ [0, 4] and c0 ≡ b0 - c (mod 5). When ∑ i∈S α i ≤ 2|S| = 4, then ∑ i∈S α i = c0. Therefore, ∑ i∈S α i (mod 123)= c0;
[0131] Step 2.4, for j = 1, calculate
[0132] Step 2.5, construct a 2×2 Vandermonde matrix And it can be known from the properties of the Vandermonde matrix that it is an invertible matrix. Take c = (c0, c1), and construct the equation Therefore, it can be known that is the unique solution of this equation. From this, it can be obtained that can correct 2 erasure errors, and determine that 's minimum Hamming distance is 3. At the same time, it can be obtained that can correct 1 substitution error.
[0133] Step 3, analyze whether has good parameters, specifically including:
[0134] Step 3.1, from Step 2, it can be concluded that there must exist a vector b ∈ [0, 4]×[0, 122] such that the code is an (n, M) code. By the drawer theorem, M satisfies
[0135] Step 3.2, when b traverses [0, 4]×[0, 122], it is obvious that Then It can be obtained that 's average number of codewords is at least Right now
[0136] Step 3.3, calculate r3(n, 3) = n-log3A3(n, 3) ≤ 5.87, the redundancy of the linear code with q = 3, d = 3, n∈[122, 123] It can be obtained by querying the online table of codetables. It can be obtained that when q=3,d=3,n∈[122,123] It can be seen that the characteristics of the constructed nonlinear code are better than those of its corresponding linear code.
[0137] Through some other examples of q=3, d=3, we can finally get We record some of these parameters in Table 2.
[0138] Table 2. Comparison of nonlinear codes with lower redundancy and corresponding linear codes when q=3 and d=3
[0139]
[0140] An application embodiment of the present invention provides a computer device, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of a nonlinear code encoding method with lower redundancy.
[0141] An application embodiment of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of a nonlinear code encoding method with lower redundancy.
[0142] The application embodiment of the present invention provides an information data processing terminal, which is used to implement a nonlinear code encoding system with lower redundancy.
[0143] The embodiments of the present invention have achieved some positive effects during the development or use process, and indeed have great advantages over the prior art. The following content is described in conjunction with data, charts, etc. of the test process.
[0144] The following simulation is based on the application of q=4, d=3, n=7, which specifically involves a clear encoding method of a low-redundancy nonlinear code that can correct 2 erasure errors and 1 substitution error.
[0145] 1. Simulation environment setup: We use MATLAB R202 1b for simulation experiments.
[0146] 2. Model establishment: We established a coding algorithm model based on a low-redundancy nonlinear code that can correct 2 erasure errors and 1 substitution error, which is used to perform error correction and computational redundancy processing on codewords that meet the requirements.
[0147] 3. Simulation parameter setting: We used q=4, d=3, n=7 as the predetermined parameters, and set the linear code redundancy corresponding to q=4, d=3, n=7 by looking up the table.
[0148] 4. Simulation experiment process: We screen out the code words that meet the requirements, calculate the redundancy of the low-redundancy nonlinear code, add erasure errors or substitution errors to the code words, and then correct them through the decoding algorithm.
[0149] 5. Experimental results analysis: Figure 4 As shown in , our nonlinear code has less redundancy than the linear code with the corresponding parameters, which means higher efficiency, higher data density and lower latency. Figure 5 As shown, all errors within the error correction range can be corrected 100% successfully, indicating that the code has a complete and reliable encoding and decoding algorithm.
[0150] 6. Conclusion and discussion: Through the analysis of the results of simulation experiments, we conclude that the new low-redundancy nonlinear code we proposed has better performance and higher efficiency than linear codes, can transmit data more effectively, and has brought significant progress and improvement to the field of information technology.
[0151] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.
[0152] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.
Claims
1. A nonlinear code encoding method with low redundancy, characterized in that: include: S1, using the idea of VT code, construct a q-ary nonlinear code S2, Analysis of Nonlinear Codes The minimum Hamming distance d of the Replacement error; S3, Analysis Good parameters.
2. The method for encoding a nonlinear code with lower redundancy as claimed in claim 1, characterized in that: S1 specifically includes: S101, select q as an integer greater than 1, and the vector x satisfies x=(x1, x2, ..., x n )∈[0,q-1] n When j ≥ 0, inspired by the idea of VT code, define the function S102, select d and n as two positive integers greater than 2, l as the smallest prime number satisfying l≥max{n, (d-1)(q-1)+1}; define vector b=(b0, b1, ..., b d-2 ), select b0, b1, b2, …, b d-2 , satisfying b0∈[0,(d-1)(q-1)] and b i ∈[0,l-1], for 1≤i≤d-2; S103, construct a q-ary nonlinear code The specific structure is t0(α)≡b0(mod(d-1)(q-1)+1)}.
3. The method for encoding a nonlinear code with lower redundancy as claimed in claim 1, characterized in that: S2 specifically includes: S201, according to the property that a code has a minimum distance of at least d if and only if it can correct d-1 erasure errors, prove The minimum Hamming distance of is d, which is equivalent to proving that it can correct d-1 erasure errors; S202, take S: = {k1, k2, ..., k d-1 } is a subset of [n], where k1<k2<…<k d-1 , assuming a codeword The code element at position S is erased, that is, is erased. S203, calculation By S1 The structure can be obtained S204, take c0∈[0,(d-1)(q-1)] and c0≡b0-c(mod(d-1)(q-1)+1). Satisfy ∑ i∈S α i ≤|S|(q-1)=(d-1)(q-1), then ∑ i∈S α i =c0, so we can get ∑ i∈S α i (mod l) = c0; S205, for 1≤j≤d-2, calculate S206, construct a (d-1)×(d-1) Vandermonde matrix And from the characteristics of the Vandermonde matrix, we know that it is a reversible matrix. Take the vector c = (c0, c1, ..., c d-2 ), construct equation Therefore, it can be known is the only solution to this equation, so we can get, Can correct d-1 erasure errors, and determine The minimum Hamming distance is d, and we can get Can be corrected A replacement error.
4. The method for encoding a nonlinear code with lower redundancy as claimed in claim 1, characterized in that: S3 specifically includes: S301, the method of judging whether a code has good parameters is to check its redundancy r q (n, d) or the corresponding maximum number of codewords A q (n, d), the relationship between redundancy and the maximum number of codewords can be expressed by the formula r q (n, d) = n-log q A q (n, d) is used to represent the q (n, d) or increased A q (n, d); S302, from S2, we can conclude that there must be a vector b∈[0,(d-1)(q-1)]×[0,l-1] d-2 Make the code For (n, M) code, according to the drawer theorem, M satisfies S303, when b traverses [0, (d-1)(q-1)]×[0, l-1] d-2 When but Available The average number of codewords is at least Right now S304, due to some class code A q (n, d) structures are too many, and Hamming code is a special type of linear code. The maximum number of codewords K of Hamming code is discussed. q (n, d) and the constructed nonlinear code A q The relationship between (n, d) is that the Hamming code reaches the Hamming bound when the minimum distance is 3, which means that the Hamming code reaches K when its maximum number of codewords q (n, 3) is optimal; there are limitations on the parameter setting of the Hamming code. First, since the Hamming code is a linear code, q is required to be a prime power. Second, when r>2, the code length of the Hamming code must meet In the form of, except for some special parameters, if q is not a prime power or n does not conform to In the form of K, we cannot know exactly q The value of (n, 3) is not even certain whether it satisfies the prime power q. The condition ensures that there exists a q-ary [n, k, 3]-linear code where is the redundancy of the Hamming code, and k q (n, 3) is the maximum dimension k; S305, subsequently select several sets of data with d=3, q and n being different, and calculate r using the formula q (n, d) = n-log q A q (n, d) The redundancy r of the low-redundancy nonlinear code q (n, 3), use the table lookup method to find the corresponding linear code redundancy Finally, we can draw the conclusion This shows that the low-redundancy nonlinear code has lower redundancy than the Hamming code, and the coding efficiency is greatly improved.
5. A low-redundancy non-linear code encoding system implementing the low-redundancy non-linear code encoding method according to any one of claims 1 to 4, characterized in that: include: Non-linear code construction module, used to construct a q-ary non-linear code using the idea of VT code Minimum Hamming distance analysis module for analyzing nonlinear codes The minimum Hamming distance d of the Replacement error; Good parameter analysis module for analyzing Good parameters.
6. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the low-redundancy nonlinear code encoding method as claimed in any one of claims 1 to 4.
Citation Information
Cited By
Coding and decoding processing method and device
CN119276422A
A processing method and device for encoding and decoding
CN119276422B
