** Please see the report for detailed results
We have implemented both the Gossip and Push-Sum algorithms for the below four topologies using Elixir Genserver processes.
Full Network
2D Grid
Line
Imperfect 2D Grid
To run Gossip algorithm using Full network topology the command is as follows:
$ mix escript.build
$ ./project2 49 full gossip
$ ./project2 49 full push-sum
$ ./project2 49 2D gossip
$ ./project2 49 2D push-sum
$ ./project2 49 line gossip
$ ./project2 49 line push-sum
$ ./project2 49 2D gossip
$ ./project2 49 2D push-sum
Gossip Algorithm
For nodes= 10000, total time for Full network = 530.562 s
For nodes = 10000, total time for imp2D network = 760.556 s
For nodes= 4900, total time for 2D network = 4500.426 s
For nodes= 4900, total time for Line network = 5610.364 s
Push-Sum Algorithm
For nodes= 10000, total time for Full network = 90.002 s
For nodes = 10000, total time for imp2D network = 350.80 s
For nodes= 4900, total time for 2D network = 1600.212 s
For nodes= 4900, total time for Line network = 51746.66 s