Skip to main content
. 2020 Dec 27;21(1):121. doi: 10.3390/s21010121
Algorithm 4 System time allocation scheme
1: Input:Dmax, precision ετ
2: Output:τh*, τt*, minPr{D>Dmax}
3: for all τh do
4:   switch TD mode do
5:    case: TDMA
6:       τkt=(1τh)/K.
7:       Bk=W.
8:    case: FDMA
9:       τkt=1τh.
10:       Bk=W/K.
11:   end switch
12: Apply Algorithm 3 to find out optimal λa for τh.
13: Compute Pr{D>Dmax} according to Equation (10) and Constraint 4 of problem P2.
14: end for
15: Find out minPr{D>Dmax} and the corresponding τh*, τt*.
16: END