Skip to main content
. 2018 Sep 25;18(10):3225. doi: 10.3390/s18103225
Algorithm 3 Combination of chunks.
  • 1:

    Starting from chunk i

    Taking t=i, d.s(ch.cs)= false, ϕ=1, Cc=C(t)

  • 2:

    if rankCc=rch then

  • 3:

     Update d.s(ch.cs)= true

  • 4:

    return d.s(ch.cs),ϕ

  • 5:

    else

  • 6:

    if t=1 or rankCc<rp(t) or l.b.s.st= true then

  • 7:

      return d.s(ch.cs),ϕ

  • 8:

    end if

  • 9:

    end if

  • 10:

    while t1>0 and rp(t1)r(t1)D1 and r.b.s.st1= false do

  • 11:

     Update ϕ=ϕ+1, Cc=Cc,C(t1)

  • 12:

    if rankCc=rch then

  • 13:

      Update d.s(ch.cs)= true

  • 14:

      return d.s(ch.cs),ϕ

  • 15:

    else

  • 16:

      Update t=t1

  • 17:

    end if

  • 18:

    end while