Research Article

Dynamic Priority-Based Service Resource Allocation for Context-Aware Conflict Resolution in Wisdom Network with Fog Computing

Algorithm 1

Context-aware conflict resolution algorithm
Input. Objective functions for optimal allocation of service resources
Output. Optimal solutions for service unit cost and resource allocation
1. Initialization. For the context-aware tasks in different priority groups, based on formulas (5) and (6), we construct the objective functions for optimal allocation of service resources
2. Collect the parameter setting scheme for the objective function
3. According to Definition 1, we construct the continuous differential functions of individual priority groups
4. According to Theorem 2, we solve continuous differential function expressions of different priority groups
5. Solve and obtain the optimal service resource allocation solutions and the optimal unit cost for using the fog computing server according to formulas (25)–(28)
6. End