| Algorithm 2: The mutation mechanism | |
| 1: | Calculate the mutation rate according to Equation (7). |
| 2: | For each voter or follower |
| 3: | If random value <= mutation rate |
| 4: | If random value <= fixed rate |
| 5: | Update the voter or follower with random mutation according to Equation (8). |
| 6: | Else |
| 7: | Update the voter or follower with Cauchy mutation according to Equation (9). |
| 8: | End |
| 9: | End |
| 10: | End |