Skip to main content
. 2022 May 5;22(9):3518. doi: 10.3390/s22093518
Algorithm 1. Slot scheduling of 1-hop relay node
1:  At node x that receives NSSI:
2:    calculates startLSI(x) using (5);
3:    Alloc(x) = a list of SD(x) sequential logical slot numbers starting with startLSI(x) according to the LSI algorithm;
//The ascending sorted list of physical slot numbers corresponding to Alloc(x)
4:    TxSlots(x) = ascSort {psi(y)| yAlloc(x)};
5:        startLSI = startLSI(x) + SD(x);
6:    RxSlots(x) = { };
7:    for each y ∈ CS(x)
8:       Alloc(y) = a list of SD(y) sequential logical slot numbers starting with startLSI;
9:       psiAlloc(y) = ascSort {psi(v)| vAlloc(y)}
10:       RxSlots(x) = RxSlots(x) ∪ {v| v ∈ psiAlloc(y), v is in odd position};
11:       TxSlots(x) = TxSlots(x) ∪ {v| v ∈ psiAlloc(y), v is in even position};
12:       startLSI = startLSI + SD(y);
13:    endFor