Skip to main content
. 2021 Jul 29;21(15):5146. doi: 10.3390/s21155146
Algorithm 1. Task Assignment Algorithm.
Input Report; Users
Output Workers
1: Get the report’s location
2: Calculate the region of the report
3: Get users’ location
4: Calculate the distance between users and the report
5: Get the combination of workers in each report
6: if UserDistance < ReportRegionDistance then
7:  WorkersInRegion = Users;
8:  if WorkersInRegion in WrokerCombinationInEachReport then
9:      return False;
10:  else
11:      Workers = WorkersInRegion;
12:  end if
13:  return Workers
14: end if