Skip to main content
. 2021 Aug 31;23(9):1146. doi: 10.3390/e23091146
Algorithm 1: The SAda Algorithm.
1: Initialization Parameter: xt,α0,ω0 and σ2
2: for t in T do
3:  Get the location of IoT devices and select the suitable devices as the candidates, update Nt.
4: if none of SUE nNt has connected to TUE then
5:   Connect to SUE n once.
6:   Update ut,n,kt,n,tn .
7: else
8:   Observe xt .
9:   for each device nNt do
10:    Calculate the efficiency function ut,n .
11:    Find device αt ,where αt=argminnNtut,n .
12:   Update dsumt,αt .
13:   Update u¯t,αt =u¯t1,αtkt1,αt+dsumt,αtkt1,αt+1                                                              15
14:   Update kt,αt=kt1,αt+1
15:   end for
16: end if
17: end for