|
Algorithm 2: Trust Evaluation |
|
|
Input: Current timestep, trust value of victim, index of duel in set of duels (i) |
|
|
Output: Updated trust values of players for given timestep |
| 1. |
procedure EVALTRUST(time, vicTrust, i) |
| 2. |
normTime ← normalizeTime(time) |
| 3. |
newTrustAdj ←
|
| 4. |
for j in team of killer (Equation (2)) do
|
| 5. |
updatedTrust ← trustSet[i][j] + newTrustAdj |
| 6. |
trustSet[i][j] ← sigmoid(updatedTrust) |
| 7. |
for k in set of players (Equation (1)) do
|
| 8. |
if k not in team of killer (Equation (2)) then
|
| 9. |
trustSet[i][k] ← trustSet[i][k] |