Rahul Sharma (Editor)

Generalized minimum distance decoding

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In coding theory, generalized minimum-distance (GMD) decoding provides an efficient algorithm for decoding concatenated codes, which is based on using an errors-and-erasures decoder for the outer code.

Contents

A naive decoding algorithm for concatenated codes can not be an optimal way of decoding because it does not take into account the information that maximum likelihood decoding (MLD) gives. In other words, in the naive algorithm, inner received codewords are treated the same regardless of the difference between their hamming distances. Intuitively, the outer decoder should place higher confidence in symbols whose inner encodings are close to the received word. David Forney in 1966 devised a better algorithm called generalized minimum distance (GMD) decoding which makes use of those information better. This method is achieved by measuring confidence of each received codeword, and erasing symbols whose confidence is below a desired value. And GMD decoding algorithm was one of the first examples of soft-decision decoders. We will present three versions of the GMD decoding algorithm. The first two will be randomized algorithms while the last one will be a deterministic algorithm.

Setup

  • Hamming distance : Given two vectors u , v Σ n the Hamming distance between u and v , denoted by Δ ( u , v ) , is defined to be the number of positions in which u and v differ.
  • Minimum distance: Let C Σ n be a code. The minimum distance of code C is defined to be d = min Δ ( c 1 , c 2 ) where c 1 c 2 C
  • Code concatenation: Given m = ( m 1 , , m K ) [ Q ] K , consider two codes which we call outer code and inner code
  • and their distances are D and d . A concatenated code can be achieved by C out C in ( m ) = ( C in ( C out ( m ) 1 ) , , C in ( C out ( m ) N ) ) where C out ( m ) = ( ( C out ( m ) 1 , , ( m ) N ) ) . Finally we will take C out to be RS code, which has an errors and erasure decoder, and K = O ( log N ) , which in turn implies that MLD on the inner code will be polynomial in N time.
  • Maximum likelihood decoding (MLD): MLD is a decoding method for error correcting codes, which outputs the codeword closest to the received word in Hamming distance. The MLD function denoted by D M L D : Σ n C is defined as follows. For every y Σ n , D M L D ( y ) = arg min c C Δ ( c , y ) .
  • Probability density function : A probability distribution Pr on a sample space S is a mapping from events of S to real numbers such that Pr [ A ] 0 for any event A , Pr [ S ] = 1 , and Pr [ A B ] = Pr [ A ] + Pr [ B ] for any two mutually exclusive events A and B
  • Expected value: The expected value of a discrete random variable X is
  • Randomized algorithm

    Consider the received word y = ( y 1 , , y N ) [ q n ] N which corrupted by noisy channel. The following is the algorithm description for the general case. In this algorithm, we can decode y by just declaring an erasure at every bad position and running the errors and erasure decoding algorithm for C out on the resulting vector.

    Randomized_Decoder
    Given : y = ( y 1 , , y N ) [ q n ] N .

    1. For every 1 i N , compute y i = M L D C in ( y i ) .
    2. Set ω i = min ( Δ ( C in ( y i ) , y i ) , d 2 ) .
    3. For every 1 i N , repeat : With probability 2 ω i d , set y i ? , otherwise set y i = y i .
    4. Run errors and erasure algorithm for C out on y = ( y 1 , , y N ) .

    Theorem 1. Let y be a received word such that there exists a codeword c = ( c 1 , , c N ) C out C in [ q n ] N such that Δ ( c , y ) < D d 2 . Then the deterministic GMD algorithm outputs c .

    Note that a naive decoding algorithm for concatenated codes can correct up to D d 4 errors.

    Lemma 1. Let the assumption in Theorem 1 hold. And if y has e errors and s erasures (when compared with c ) after Step 1, then E [ 2 e + s ] < D .

    Remark. If 2 e + s < D , then the algorithm in Step 2 will output c . The lemma above says that in expectation, this is indeed the case. Note that this is not enough to prove Theorem 1, but can be crucial in developing future variations of the algorithm.

    Proof of lemma 1. For every 1 i N , define e i = Δ ( y i , c i ) . This implies that

    i = 1 N e i < D d 2 ( 1 )

    Next for every 1 i N , we define two indicator variables:

    X i ? = 1 y i = ? X i e = 1 C in ( y i ) c i   and   y i ?

    We claim that we are done if we can show that for every 1 i N :

    E [ 2 X i e + X i ? ] 2 e i d ( 2 )

    Clearly, by definition

    e = i X i e and s = i X i ? .

    Further, by the linearity of expectation, we get

    E [ 2 e + s ] 2 d i e i < D .

    To prove (2) we consider two cases: i -th block is correctly decoded (Case 1), i -th block is incorrectly decoded (Case 2):

    Case 1: ( c i = C in ( y i ) )

    Note that if y i = ? then X i e = 0 , and Pr [ y i = ? ] = 2 ω i d implies E [ X i ? ] = Pr [ X i ? = 1 ] = 2 ω i d , and E [ X i e ] = Pr [ X i e = 1 ] = 0 .

    Further, by definition we have

    ω i = min ( Δ ( C in ( y i ) , y i ) , d 2 ) Δ ( C in ( y i ) , y i ) = Δ ( c i , y i ) = e i

    Case 2: ( c i C in ( y i ) )

    In this case, E [ X i ? ] = 2 ω i d and E [ X i e ] = Pr [ X i e = 1 ] = 1 2 ω i d .

    Since c i C in ( y i ) , e i + ω i d . This follows another case analysis when ( ω i = Δ ( C in ( y i ) , y i ) < d 2 ) or not.

    Finally, this implies

    E [ 2 X i e + X i ? ] = 2 2 ω i d 2 e i d .

    In the following sections, we will finally show that the deterministic version of the algorithm above can do unique decoding of C out C in up to half its design distance.

    Modified randomized algorithm

    Note that, in the previous version of the GMD algorithm in step "3", we do not really need to use "fresh" randomness for each i . Now we come up with another randomized version of the GMD algorithm that uses the same randomness for every i . This idea follows the algorithm below.

    Modified_Randomized_Decoder
    Given : y = ( y 1 , , y N ) [ q n ] N , pick θ [ 0 , 1 ] at random. Then every for every 1 i N :

    1. Set y i = M L D C in ( y i ) .
    2. Compute ω i = min ( Δ ( C in ( y i ) , y i ) , d 2 ) .
    3. If θ < 2 ω i d , set y i ? , otherwise set y i = y i .
    4. Run errors and erasure algorithm for C out on y = ( y 1 , , y N ) .

    For the proof of Lemma 1, we only use the randomness to show that

    Pr [ y i = ? ] = 2 ω i d .

    In this version of the GMD algorithm, we note that

    Pr [ y i = ? ] = Pr [ θ [ 0 , 2 ω i d ] ] = 2 ω i d .

    The second equality above follows from the choice of θ . The proof of Lemma 1 can be also used to show E [ 2 e + s ] < D for version2 of GMD. In the next section, we will see how to get a deterministic version of the GMD algorithm by choosing θ from a polynomially sized set as opposed to the current infinite set [ 0 , 1 ] .

    Deterministic algorithm

    Let Q = { 0 , 1 } { 2 ω 1 d , , 2 ω N d } . Since for each i , ω i = min ( Δ ( y i , y i ) , d 2 ) , we have

    Q = { 0 , 1 } { q 1 , , q m }

    where q 1 < < q m for some m d 2 . Note that for every θ [ q i , q i + 1 ] , the step 1 of the second version of randomized algorithm outputs the same y . . Thus, we need to consider all possible value of θ Q . This gives the deterministic algorithm below.

    Deterministic_Decoder
    Given : y = ( y 1 , , y N ) [ q n ] N , for every θ Q , repeat the following.

    1. Compute y i = M L D C in ( y i ) for 1 i N .
    2. Set ω i = min ( Δ ( C in ( y i ) , y i ) , d 2 ) for every 1 i N .
    3. If θ < 2 ω i d , set y i ? , otherwise set y i = y i .
    4. Run errors-and-erasures algorithm for C out on y = ( y 1 , , y N ) . Let c θ be the codeword in C out C in corresponding to the output of the algorithm, if any.
    5. Among all the c θ output in 4, output the one closest to y

    Every loop of 1~4 can be run in polynomial time, the algorithm above can also be computed in polynomial time. Specifically, each call to an errors and erasures decoder of < d D / 2 errors takes O ( d ) time. Finally, the runtime of the algorithm above is O ( N Q n O ( 1 ) + N T out ) where T out is the running time of the outer errors and erasures decoder.

    References

    Generalized minimum-distance decoding Wikipedia