| 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)| y ∈ Alloc(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)| v ∈ Alloc(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 |