Skip to main content
. 2018 Sep 25;18(10):3225. doi: 10.3390/s18103225
Algorithm 4 Decoding process.
  • 1:

    Obtaining the codeword combinations of chunk i

  • 2:

    Take t=i

  • 3:

    if r(t)=D and d.s(t)= false then

  • 4:

     Conduct decoding and update d.s(t)= true, t=t1

  • 5:

    Go to 3

  • 6:

    else

  • 7:

    if t1>0 and d.s(t1)= true and l.b.s.s(t)= false then

  • 8:

      Conduct l.b.s and update l.b.s.s(t)= true

  • 9:

    end if

  • 10:

    if d.s(t+1)= true and r.b.s.s(t)= false then

  • 11:

      Conduct r.b.s and update r.b.s.s(t)= true

  • 12:

    end if

  • 13:

    if r(t)=D and d.s(t)= false then

  • 14:

      Conduct decoding and

      update d.s(t)= true, t=t1

  • 15:

      Go to 3

  • 16:

    else

  • 17:

      if l.b.s.s(t)= false and t1>0

      and d.s(t1)= false then

  • 18:

       Conduct co.cs to obtain ch.cs with length ϕ

  • 19:

       if d.s(ch.cs)= true then

  • 20:

        Conduct decoding and

        update d.s(tϕ+1:t)= true, t=tϕ

  • 21:

        Go to 3

  • 22:

       end if

  • 23:

      end if

  • 24:

    end if

  • 25:

    end if

  • 26:

    Wait to receive the codeword combinations of chunk i+1