Research Article
Dynamic Resource Allocation for Load Balancing in Fog Environment
Algorithm 1
Fog service subset acquisition.
Input: The resource requirements of IoT applications | Output: The partitioned fog service set | (1) for to do | (2) for to do | //There are types of computing nodes in fog and cloud | (3) if then | (4) Add to | (5) end if | (6) end for | (7) end for | (8) for to do | (9) , , | (10) while do | (11) if then | (12) Add the th fog service to | (13) else , , | (14) Add the th fog service to | (15) end if | (16) end while | (17) end for | (18) Return |
|