| Algorithm 1 Calculating the AMoF for malicious and normal nodes | |
| 1: | Input: ,………, , |
| 2: | Output: AMoF |
| 3: | At the super node |
| 4: | |
| 5: | Receive ,………, S.T |
| 6: | Initialize , Norm_, |
| 7: | for i = 1 to do |
| 8: | for j = 1 to n do |
| 9: | ← |
| 10 | ←/100 |
| 11: | end for |
| 12: | ← ) + |
| 13: | end for |