Research Article

Reconfigurable Intelligent Surface-Aided AirComp for Large-Scale IoT Networks

Algorithm 2

: Alternate DC algorithm for .
1: Initialize0 with a random value and set threshold .
2: t 1
3: repeat
4: For a given , solve (18) via Algorithm 1 to
   get .
5: For a given , solve (19) via Algorithm 1 to
   get t+1
6: ;
7: until
8: then.