Research Article

A Game-Based Scheme for Resource Purchasing and Pricing in MEC for Internet of Things

Algorithm 1

Game-based user resource purchase algorithm (GURP).
Input: p
Output: optimalfor each
(1)for eachin U do
(2);
(3)end
(4)for eachin U do
(5)
(6)if then
(7)  ;
(8)  ;
(9)else
(10)  ;
(11)  ;
(12)end
(13)end
(14)returnfor each;