Skip to main content
. 2020 Sep 7;20(18):5093. doi: 10.3390/s20185093
Algorithm 1. Increasing QH slot allocation
1: for all node i do
2: if qt(H,i)!=0
3:  Calculate Ft(H,i)
4: end if
5: if qt(L,i)!=0
6:  Calculate Ft(L,i)
7: end if
8: if Ft(H,i)>Ft(L,i)
9:  if pt(L,i)>0
10:   F^t(H,i) pt(H,i)+1
11:   F^t(L,i) pt(L,i)1
12:   𝓕^ti(1F^t(H,i))2+(1F^t(L,i))2
13:   𝓕ti(1Ft(H,i))2+(1Ft(L,i))2
14:  end if
15:  while Fti>F^ti do
16:   pt(H,i)pt(H,i)+1
17:   pt(L,i)pt(L,i)1
18:   if pt(L,i)>0
19:    𝓕ti𝓕^ti
20:    𝓕^ti(1F^t(H,i))2+(1F^t(L,i))2
21:   else break;
22:   end if
23:  end while
24: end if
25: end if