Skip to main content
. 2017 Jun 15;17(6):1407. doi: 10.3390/s17061407
Algorithm 1 Proposed dynamic resource allocation and ACB scheme in a slot
1: N: number of DS devices attempt to access
2: pACB: ACB factor
3: LDS*: optimal number of preambles allocated to DS devices
4: pACB*: optimal value of ACB factor for DS devices
5: Lavail: number of available preambles
6: if NLavail_DS then
7:   Set pACB*=1;
8:   Compute Lset through Equation (9);
9:     if Lset= then
10:     LDS*=N;
11:     else
12:     Compute LDS* through Equation (10);
13:     end if
14: else if N>Lavail_DS then
15:   Set LDS*=Lavail_DS
16:   Compute pset through Equation (12);
17:     if pset= then
18:      pACB*=Lavail_DSN;
19:     else
20:      Compute pACB* through Equation (13);
21:     end if
22: end if