# US 2020/0287570 A1 · Algebraic decoding method and decoder for (n,n(n-1),n-1)-pgc in communication modulation system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0287570 A1
- Document ID: US20200287570A1
- Status: Published application
- Kind: A1
- Application number: 16/727,936
- Filed: 2019-12-27
- Published: 2020-09-10
- Earliest claimed: 2019-03-06
- Assignees: Huazhong University of Science and Technology
- Applicants: Huazhong University of Science and Technology
- Inventors: Li Peng; Si Jia Chen; Ying Long Shi; Ya Yu Gao; Bin Dai; Lin Zhang; Kun Liang; Bo Zhou
- Web page: https://patentgrep.com/patent/US20200287570A1

## CPC

- H03M 13/31: combining coding for error detection or correction and efficient use of the spectrum (without error detection or correction H03M5/14 {, H03M5/145})
- H03M 13/3761: {using code combining, i.e. using combining of codeword portions which may have been transmitted separately, e.g. Digital Fountain codes, Raptor codes or Luby Transform [LT] codes}
- G06F 17/11: for solving equations {, e.g. nonlinear equations, general mathematical optimization problems (optimization specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- H03M 13/47: Error detection, forward error correction or error protection, not provided for in groups H03M13/01 - H03M13/37
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure discloses an algebraic decoding method and a decoder for a (n, n(n−1), n−1) permutation group code in a communication modulation system. The basic principle of the decoding method is: assuming that two code elements p(r1)=s1 and p(r2)=s2 can be correctly detected in a received real vector with a length of n, including their element values s1, s2 and position indices r1, r2 in the vector, an intermediate parameter w is determined by solving an equation (r1−r2)w=(s1−s2)(mod n); and each code element is calculated by w according to p(i)=(s1+(n−r1+i)w)(mod n), i=1, 2, . . . , n. The decoder is mainly composed of multiple n-dimensional registers, a w calculator, n code element calculators, and a code element buffer. In the disclosure, in a case where a receiver only correctly detects two code elements in a transmitted codeword with a length of n, the codeword can be correctly decoded by using the received information of the two code elements.

## Claims

### Claim 1

An algebraic decoding method for a (n, n(n−1), n−1) permutation group code in a communication modulation system, wherein when n is a prime number, the (n, n(n−1), n−1) permutation group code contains n(n−1) permutation codewords, each of the permutation codewords contains n code elements, and a minimum Hamming distance between any two of the permutation codewords is n−1, comprising:
i) determining an intermediate parameter w: let w∈Zn be obtained by solving an expression (r1−r2)w=(s1−s2)(mod n), wherein (mod n) represents a modulo n operation; let p(r1)=s1 and p(r2)=s2 be two of the code elements correctly detected in a real signal vector received from a channel, wherein s1, s2∈Zn are respectively element values of the code elements p(r1) and p(r2), r1, r2∈Zn are respectively position indices of the code elements p(r1) and p(r2), and Zn is a positive integer finite domain represented by Zn={1, 2, . . . , n}; and both the code elements p(r1) and p(r2) are elements in a permutation codeword p with a code length of n;
ii) calculating respective code elements in the permutation codeword p by using the intermediate parameter w determined in i) and the detected parameters r1 and s1 according to an expression p(i)=(s1+(n−r1+i)w)(mod n), wherein p(i) represents an element value of a code element at a position index i, and i=1, 2, . . . , n; and
iii) constructing a vector with a length of n by arranging the n code elements calculated in ii) in an order of i=1, 2, . . . , n, to obtain a decoded codeword p=[p(1)p(2) . . . p(n−1)p(n)].

### Claim 2

A decoder for a (n, n(n−1), n−1) permutation group code in a communication modulation system, comprising a plurality of independent n-dimensional registers, an intermediate parameter w calculator, n single-code-element calculators operating in parallel, and a n-dimensional buffer for n code elements,
wherein the plurality of independent n-dimensional registers are respectively configured to store parameters r1, r2, s1, s2, n and a code element position index i; two code elements p(r1)=s1 and p(r2)=s2 are correctly detected in a real vector received from a channel, wherein s1, s2∈Zn are respectively element values of the code elements p(r1) and p(r2), r1, r2∈Zn are respectively position indices of the code elements p(r1) and p(r2), and Zn is a positive integer finite domain represented by Zn={1, 2, . . . , n}; both the code elements p(r1) and p(r2) are elements in a permutation codeword p with a code length of n;
the intermediate parameter w calculator is configured to calculate an intermediate parameter w; let w∈Zn be obtained by solving an expression (r1−r2)w=(s1−s2)(mod n), wherein (mod n) represents a modulo n operation; the intermediate parameter w calculator is implemented by a calculator with a divider, or is implemented by a calculator with carry adders and a counter according to a method for calculating the intermediate parameter w in a flowchart;
the n single-code-element calculators are configured to operate in parallel to simultaneously calculate n code elements in the permutation codeword p by using the intermediate parameter w and the detected parameters r1 and s1 according to an expression p(i)=(s1+(n−r1+i)w)(mod n), wherein p(i) represents an element value of a code element at a position index i, i=1, 2, . . . , n, and a i-th single-code-element calculator is configured to calculate p(i); each of the n single-code-element calculators is implemented by a calculator with a multiplier, or a calculator with an accumulator and a counter; and
the n-dimensional buffer for the n code elements are configured to store and arrange the n code elements calculated by the n single-code-element calculators in an order of i=1, 2, . . . , n to construct a vector with a length of n, thereby obtaining a decoded codeword p=[p(1)p(2) . . . p(n−1)p(n)].

### Claim 3 (depends on 2)

The decoder according to claim 2, wherein when the intermediate parameter w calculator is implemented by the calculator with the divider, the intermediate parameter w calculator includes four independent n-dimensional registers, two two-input adders, a divider and a modulo n operator mod n,
wherein the four independent n-dimensional registers are configured to respectively store r1, −r2, s1 and −s2;
two input ends of the left one of the two input adders are respectively connected to two of the four independent n-dimensional registers storing r1 and −r2, and two input ends of the right one of the two input adders are respectively connected to two of the four independent n-dimensional registers storing s1 and −s2;
a left input end of the divider is configured to receive an output (r1−r2) of the left adder, a right input end of the divider is configured to receive an output (s1−s2) of the right adder, and the divider outputs a result (s1−s2)/(r1−r2); and
the modulo n operator mod n is connected to an output end of the divider, and is configured to perform an modulo operation on the output result (s1−s2)/(r1−r2) of the divider and output w=(s1−s2)/(r1−r2)(mod n).

### Claim 4 (depends on 3)

The decoder according to claim 3, wherein the n-dimensional buffer comprises a n-input and single-output buffer,
wherein when each of the n single-code-element calculators is implemented by the calculator with the multiplier, the i-th single-code-element calculator with the multiplier includes five independent n-dimensional registers, a three-input adder, a two-input multiplier, a two-input adder and a modulo n operator, wherein i=1, 2, . . . , n,
wherein the five independent n-dimensional registers are configured to respectively store i, n, w and s1;
output ends of three of the five independent n-dimensional registers storing i, n and −r1 are respectively connected to three input ends of the three-input adder, and the three-input adder is configured to perform an add operation of (n−r1+i), wherein i=1, 2, . . . , n;
an output end of the three-input adder is connected to one input end of the two-input multiplier, the other input end of the two-input multiplier is connected to one of the five independent n-dimensional register storing w, and the two-input multiplier is configured to perform an multiply operation of (n−r1+i)w;
an output end of the two-input multiplier is connected to one input end of the two-input adder, the other input end of the two-input adder is connected to one of the five independent n-dimensional register storing s1, and the two-input adder is configured to perform an add operation of (s1+(n−r1+i)w); and
an output end of the two-input adder is connected to the modulo n operator, and the modulo n operator is configured to perform an mod n operation on (s1+(n−r1+i)w), and output an i-th code element p(i) in the decode codeword.

### Claim 5 (depends on 3)

The decoder according to claim 3, wherein the n-dimensional buffer comprises a n-input and single-output buffer,
wherein when each of the n single-code-element calculators is implemented by the calculator with the accumulator and the counter to form a simplified single-code-element calculator, the i-th simplified single-code-element calculator includes four n-dimensional registers, a three-input adder, an enable control accumulator, a counter with an intermediate parameter w cycle-minus-one operation, a two-input adder and a modulo n operator, wherein i=1, 2, . . . , n,
wherein the four n-dimensional registers of the i-th simplified single-code-element calculator are configured to respectively store i, n, −r1 and s1;
output ends of three of the four n-dimensional registers of the i-th simplified single-code-element calculator storing i, n and −r1 are respectively connected to three input ends of the three-input adder to achieve an add operation of (n−r1+i);
an operation result of the three-input adder is input to the enable control accumulator to achieve w times of accumulation of (n−r1+i), wherein an operation of w−1 is performed for each accumulation; when w≠0, the enable control accumulator has an enable signal E=1, so that the enable control accumulator continues to perform the accumulation operation on (n−r1+i), until w is reduced to 0, and then the enable control accumulator has an enable signal E=0, so that the accumulator stops the accumulation operation and outputs a result to one input end of the two-input adder;
the other input end of the two-input adder is connected to one of the four n-dimensional register of the i-th simplified single-code-element calculator storing s1, and the two-input adder is configured to perform an add operation of (s1+(n−r1+i)w); and
an output end of the two-input adder is connected to connected to the modulo n operator, and the modulo n operator is configured to perform an mod n operation on (s1+(n−r1+i)w), and output an i-th code element p (i) in the decode codeword.

### Claim 6 (depends on 2)

The decoder according to claim 2, wherein the method for calculating for the intermediate parameter w in the flowchart comprises:
inputting the position values r1, r2 and the element values s1, s2 of the two known code elements p(r1)=s1 and p(r2)=s2, and initializing the intermediate parameter w=1;
respectively calculating u=r1−r2 and v=s1−s2;
respectively determining values of u and v: if u>0, directly outputting a value of u, and if u<0, then u=n+u, outputting a value of u; similarly, if v>0, directly outputting a value of v, and if v<0, then v=n+v, outputting a value of v; and
comparing the values of u and v, if u=v, then outputting w=1; if u≠v, then u=u+u, w=w+1, comparing the values of u and v again, if u≠v, continuing the operations of u=u+u and w=w+1, until u=v, then outputting w>1.

### Claim 7 (depends on 6)

The decoder according to claim 6, wherein when the intermediate parameter w calculator is implemented by the calculator with carry adders and the counter to form a simplified calculator, the simplified intermediate parameter w calculator includes five n-dimensional registers, two adders with carry bit C, two single-input and double-output switches, two two-input adders, a comparator, an enable control accumulator, and an enable control counter with a feedback-plus-one operation, wherein the five n-dimensional registers are respectively store r1, −r2, s1, −s2 and n;
the enable control counter with a feedback-plus-one operation has an initial value set to w=1;
output ends of two of the five n-dimensional registers storing r1 and r2 are respectively connected to two input ends of the left adder with carry bit C1 to obtain a calculation result u=r1−r2, if u<0, then the carry bit C1=1, the left single-input and double-output switch is thrown to the right, u is output to the left two-input adder to achieve u=n+u, and u is output; if u>0, then the carry bit C1=0, the left single-input and double-output switch is thrown to the left, and u=r1−r2 is output; u enters the comparator through the enable control accumulator;
output ends of two of the five n-dimensional registers storing s1 and −s2 are respectively connected to two input ends of the right adder with carry bit C2 to obtain a calculation result v=s1−s2, if v<0, then the carry bit C2=1, the right single-input and double-output switch is thrown to the left, v is output to the right two-input adder to achieve v=n+v, and v is output; if u>0, then the carry bit C2=0, the right single-input and double-output switch is thrown to the right, and v=s1−s2 is output; v directly enters the comparator; and
the comparator compares values of u and v: if u=v, then a low-level enable signal is output, so that the enable control counter has an enable signal Ē2=1, and directly outputs w=1 without the feedback-plus-one operation; if u≠v, the enable control accumulator has an enable signal E1=1, and returns the current u to its input end for accumulating u once, if E1=0, the enable control accumulator directly outputs u to the comparator without performing the accumulation operation; if u≠v, the enable control counter has an enable signal E2=1, so that the feedback-plus-one operation is performed on the current w; as long as u≠v, the comparator, the enable control accumulator and the enable control counter repeat the above operations until u=v, resulting in Ē2=1, and E1=0, that is, the enable control accumulator does not perform the accumulation operation and the enable control counter does not perform the feedback-plus-one operation, and then a value of w is output.

### Claim 8 (depends on 7)

The decoder according to claim 7, wherein the n-dimensional buffer comprises a n-input and single-output buffer,
wherein when each of the n single-code-element calculators is implemented by the calculator with the multiplier, the i-th single-code-element calculator with the multiplier includes five independent n-dimensional registers, a three-input adder, a two-input multiplier, a two-input adder and a modulo n operator, wherein i=1, 2, . . . , n,
wherein the five independent n-dimensional registers of the i-th single-code-element calculator with the multiplier are configured to respectively store i, n, −r1, w and s1;
output ends of three of the five independent n-dimensional registers of the i-th single-code-element calculator with the multiplier storing i, n and −r1 are respectively connected to three input ends of the three-input adder, and the three-input adder is configured to perform an add operation of (n−r1+i), wherein i=1, 2, . . . , n;
an output end of the three-input adder is connected to one input end of the two-input multiplier, the other input end of the two-input multiplier is connected to one of the five independent n-dimensional register of the i-th single-code-element calculator with the multiplier storing w, and the two-input multiplier is configured to perform an multiply operation of (n−r1+i)w;
an output end of the two-input multiplier is connected to one input end of the two-input adder, the other input end of the two-input adder is connected to one of the five independent n-dimensional register of the i-th single-code-element calculator with the multiplier storing s1, and the two-input adder is configured to perform an add operation of (s1+(n−r1+i)w); and
an output end of the two-input adder is connected to the modulo n operator, and the modulo n operator is configured to perform an mod n operation on (s1+(n−r1+i)w), and output an i-th code element p(i) in the decode codeword.

### Claim 9 (depends on 7)

The decoder according to claim 7, wherein the n-dimensional buffer comprises a n-input and single-output buffer,
wherein when each of the n single-code-element calculators is implemented by the calculator with the accumulator and the counter to form a simplified single-code-element calculator, the i-th simplified single-code-element calculator includes four n-dimensional registers, a three-input adder, an enable control accumulator, a counter with an intermediate parameter w cycle-minus-one operation, a two-input adder and a modulo n operator, wherein i=1, 2, . . . , n,
wherein the four n-dimensional registers are configured to respectively store i, n, −r1 and s1;
output ends of three of the four n-dimensional registers storing i, n and −r1 are respectively connected to three input ends of the three-input adder to achieve an add operation of (n−r1+i);
an operation result of the three-input adder is input to the enable control accumulator to achieve w times of accumulation of (n−r1+i), wherein an operation of w−1 is performed for each accumulation; when w≠0, the enable control accumulator has an enable signal E=1, so that the enable control accumulator continues to perform the accumulation operation on (n−r1+i), until w is reduced to 0, and then the enable control accumulator has an enable signal E=0, so that the accumulator stops the accumulation operation and outputs a result to one input end of the two-input adder;
the other input end of the two-input adder is connected to one of the four n-dimensional register storing s1, and the two-input adder is configured to perform an add operation of (s1+(n−r1+i)w); and
an output end of the two-input adder is connected to connected to the modulo n operator, and the modulo n operator is configured to perform an mod n operation on (s1+(n−r1+i)w), and output an i-th code element p(i) in the decode codeword.

### Claim 10 (depends on 2)

The decoder according to claim 2, wherein when each of the n single-code-element calculators is implemented by the calculator with the multiplier, the i-th single-code-element calculator with the multiplier includes five independent n-dimensional registers, a three-input adder, a two-input multiplier, a two-input adder and a modulo n operator, wherein i=1, 2, . . . , n,
wherein the five independent n-dimensional registers are configured to respectively store i, n, −r1, w and s1;
output ends of three of the five independent n-dimensional registers storing i, n and −r1 are respectively connected to three input ends of the three-input adder, and the three-input adder is configured to perform an add operation of (n−r1+i), wherein i=1, 2, . . . , n;
an output end of the three-input adder is connected to one input end of the two-input multiplier, the other input end of the two-input multiplier is connected to one of the five independent n-dimensional register storing w, and the two-input multiplier is configured to perform an multiply operation of (n−r1+i)w;
an output end of the two-input multiplier is connected to one input end of the two-input adder, the other input end of the two-input adder is connected to one of the five independent n-dimensional register storing s1, and the two-input adder is configured to perform an add operation of (s1+(n−r1+i)w); and
an output end of the two-input adder is connected to the modulo n operator, and the modulo n operator is configured to perform an mod n operation on (s1+(n−r1+i)w), and output an i-th code element p(i) in the decode codeword.

### Claim 11 (depends on 2)

The decoder according to claim 2, wherein when each of the n single-code-element calculators is implemented by the calculator with the accumulator and the counter to form a simplified single-code-element calculator, the i-th simplified single-code-element calculator includes four n-dimensional registers, a three-input adder, an enable control accumulator, a counter with an intermediate parameter w cycle-minus-one operation, a two-input adder and a modulo n operator, wherein i=1, 2, . . . , n,
wherein the four n-dimensional registers are configured to respectively store i, n, −r1 and s1;
output ends of three of the four n-dimensional registers storing i, n and −r1 are respectively connected to three input ends of the three-input adder to achieve an add operation of (n−r1+i);
an operation result of the three-input adder is input to the enable control accumulator to achieve w times of accumulation of (n−r1+i), wherein an operation of w−1 is performed for each accumulation; when w≠0, the enable control accumulator has an enable signal E=1, so that the enable control accumulator continues to perform the accumulation operation on (n−r1+i), until w is reduced to 0, and then the enable control accumulator has an enable signal E=0, so that the accumulator stops the accumulation operation and outputs a result to one input end of the two-input adder;
the other input end of the two-input adder is connected to one of the four n-dimensional register storing s1, and the two-input adder is configured to perform an add operation of (s1+(n−r1+i)w); and
an output end of the two-input adder is connected to connected to the modulo n operator, and the modulo n operator is configured to perform an mod n operation on (s1+(n−r1+i)w), and output an i-th code element p(i) in the decode codeword.
