| Algorithm 1. Resource Allocation Algorithm for GACK Transmission |
| Input: U |
| Output: , , ∀r |
| Initialization: ← 0, r ← 1 |
| 1: for t ← 1 to k |
| 2: if there is an idle gateway on the timeslot t |
| 3: Generate and compute |
| 4: if > then |
| 5: ← , ← |
| 6: ← , ∀i |
| 7: end if |
| 8: Repeats 3-9 until all are considered |
| 9: end if |
| 10: r ← r+1 |
| 11: Update U |
| 12:end for |