| Algorithm 1: Best response dynamics-based algorithm. |
| 1: Calculate the optimal medium access probability . |
| 2: Inform the to IoT devices |
| 3: Initialize the policies for . |
| 4: while Stationary policies of all IoT devices converge |
| 5: for All IoT devices i do |
| 6: Transmit the to other IoT devices with |
| 7: Calculate the probability |
| 8: Solve the LP problem to get the stationary best response policy |
| 9: end for |
| 10: end while |