Ec614 Assignment (Dynamics, Learning, and Security in Network Systems)
Ec614 Assignment (Dynamics, Learning, and Security in Network Systems)
Ec614 Assignment (Dynamics, Learning, and Security in Network Systems)
(Dynamics,Learning, and
Security in Network Systems)
Solution
figure(2)
plot(t2, x2);
title('Agreement Protocol Evolution');
xlabel('Time');
ylabel('Protocol Value');
figure(3)
plot(t3, x3);
title('Agreement Protocol Evolution');
xlabel('Time');
ylabel('Protocol Value');
figure(4)
plot(t4, x4);
title('Agreement Protocol Evolution');
xlabel('Time');
ylabel('Protocol Value');
Fig 1
Fig 2
Fig 3
Fig 4
Increasing the number of edges generally leads to faster
convergence of the agreement protocol, as it increases the graph's
connectivity and the Laplacian matrix's eigenvalues. However,
there is a limit to how much we can increase the connectivity of
the graph by adding edges, and once the graph becomes fully
connected, the convergence rate reaches its maximum value.
But, adding more edges to a graph does not always improve the
convergence of the agreement protocol. In general, adding edges
that connect previously unconnected nodes can improve the
convergence rate, as this increases the connectivity of the graph
and can lead to faster information exchange among the nodes.
However, adding redundant edges or loops to the graph may not
improve convergence and can even worsen it.
L1 = [ 2 -1 0 0 -1 ;
-1 3 -1 0 -1 ;
0 -1 2 -1 0 ;
0 0 -1 2 -1 ;
-1 -1 0 -1 3 ];
L2 = [ 3 -1 -1 0 -1 ;
-1 3 -1 0 -1 ;
-1 -1 4 -1 -1 ;
0 0 -1 3 -1 ;
-1 -1 -1 -1 4 ];
figure(2)
plot(t2, x2);
title('Agreement Protocol Evolution');
xlabel('Time');
ylabel('Protocol Value');
Fig 5
Fig 6