Skip to main content
. 2021 Jul 6;23(7):863. doi: 10.3390/e23070863
Algorithm 2 Two-bit flipping algorithm based on the DLSTM.
Input:y1N, W1T, W2T, T1, T2
Output:u^1N
  •  1:

    {u^1N,LLR} ← SC (y1N)

  •  2:

    t1=0, t2=0

  •  3:

    whileu^1N fail CRC and t1<T1 do

  •  4:

        W1T ← DLSTM

  •  5:

        u^1N ← SC flip (y1N,W1T(t1))

  •  6:

        if u^1N pass CRC then

  •  7:

            break

  •  8:

        else

  •  9:

            t1t1+1

  • 10:

        end if

  • 11:

    end while

  • 12:

    ift1T1then

  • 13:

        t1=0

  • 14:

        while u^1N fail CRC do

  • 15:

            for it1+1 to T1 do

  • 16:

               if t2<T2 then

  • 17:

                   u^1N ← SC flip (y1N,W2T(t1,i))

  • 18:

                   if u^1N pass CRC then

  • 19:

                       break

  • 20:

                   else

  • 21:

                       t2t2+1

  • 22:

                   end if

  • 23:

               end if

  • 24:

            end for

  • 25:

            t1t1+1

  • 26:

        end while

  • 27:

    end if

  • 28:

    returnu^1N