Research Article

Collaborative Computing and Resource Allocation for LEO Satellite-Assisted Internet of Things

Algorithm 2

Joint task offloading, scheduling, and resource allocation based on DQN.
Input:
 IoT terminal information: , ,
 Satellite information: , , ,
 Queue information: ,
Output:
 Offloading and scheduling decisions: , ,
 Resource allocation: ,
1: Initialize network with , and .
2: Initialize state
3: While <
4:  Select an action according to -greedy policy.
5:  Allocate resource according to Algorithm 1.
6:  Calculate reward .
7:  Update next state .
8:  Save , and update .
9:  Update .
10:   ++.
11: End while