Skip to main content
. 2018 Sep 25;18(10):3225. doi: 10.3390/s18103225
Algorithm 1 Determining rth and rch of a co.cs starting from chunk t with length ϕ.
  • 1:

    if tϕ+1=1 then

  • 2:

    rch=ϕ·μ

  • 3:

    if r.b.s.st= true then

  • 4:

      rth=ϕ·μ

  • 5:

    else

  • 6:

      rth=ϕ·μγ

  • 7:

    end if

  • 8:

    else

  • 9:

    rch=ϕ·μ+γ

  • 10:

    if l.b.s.stϕ+1=true and r.b.s.st= true then

  • 11:

      rth=ϕ·μ+γ

  • 12:

    else if l.b.s.stϕ+1= true and r.b.s.st= false then

  • 13:

      rth=ϕ·μ

  • 14:

    else if l.b.s.stϕ+1= false and r.b.s.st= true then

  • 15:

      rth=ϕ·μ

  • 16:

    else if l.b.s.stϕ+1= false and r.b.s.st= false then

  • 17:

      rth=ϕ·μγ

  • 18:

    end if

  • 19:

    end if