Computer Network Assignment Help: Problems and Solutions
Computer Network Assignment Help: Problems and Solutions
(b) Hence show that when n is even the optimal such division, in terms of
modularity, is the division that splits the network exactly down the middle.
Solution:
(a) From the equation in Newman, we can write our modularity, Q, as:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Notice that the sum over each Aij is just the sum of the degrees of the
corresponding nodes, and our degree products kikj take the following form:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Plugging back into our equation for Q, setting m = (n 1) and simplifying, we
get our desired answer of:
(b) We can find the value of r which maximizes our modularity, Q, by setting
its derivative to 0. We have:
Problem 3.2
Using your favorite numerical software for finding eigenvectors of
matrices, construct the Laplacian and modularity matrix for this small
network:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
(a) Find the eigenvector of the Laplacian corresponding to the second
smallest eigenvalue and hence perform a spectral bisection of the
network into two equally sized parts.
You should find that the division of the network generated by the two
methods is in this case, the same.
Solution:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
We should get the following laplacian matrix:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
This gives us the following partition vector:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
The largest eigenvalue is: 1.732
For both methods, you should see that our graph is partitioned straight
down the middle.
Problem 3.3
(b) Let B denote the event that a cycle with k edges (for a fixed k) emerges
in the graph. Do we observe a phase transition of this event? If so, find
the threshold function and explain your reasoning
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Note that this implies P(Al|p(n) ! 0, since otherwise, the expected degree
would be strictly positive.
Next assume that p(n) t(n) ! 1. It follows that p(n) > r n for any r 2 R+ and
suciently large n. The probability that Al does not occur can be bounded as
follows:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Here the third line follows because if the graph was generated using t(n)
instead of p(n), each link would be present with a smaller probability and 7
hence the probability that node 1 has less than l neighbors (the event Al c )
would be larger. Since the above is true for any r 2 R+, considering
arbitrarily large r, it follows that:
(b) We observe phase transition for this part as well. Similar to part (a),
consider the candidate threshold function t(n) = r n for any r 2 R+. We will
prove that for a fixed k, the event B satisfies:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
In order to prove (i), assume that p(n) t(n) ! 0. Denote the number of
distinct cycles on k nodes by Ck. Note that over n nodes, n k (k1)! 2
di↵erent cycles (of k nodes) can be observed and each cycle is realized
with p(n)k probability. Therefore, the expectation of Ck can be found as:
hence E[Ck] ! 0 as p(n) t(n) ! 0. Note that this implies P(B|p(n)) ! 0, since
otherwise, the expectation of Ck would be strictly positive. 8
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Next as ume that p(n) t(n) k ! 1. In a graph with n nodes, there can be at
most N = n k ( t k e t h 1)! ese ⇠= cy c cl 0n es an dis d tinc for t i cyc 1 les
...N with de k fine no a des random (for a v cons ariable tant I c0 su ). ch
We enumera 2 i that Ii = 1 if the ith cycle is realized and 0 otherwise.
Note that the probability that no cycle is realized satifies:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Using the properties of Bernoulli random variables, it
follows that
Also note that there are at most n l+1 n cl such i, j pairs. This can 2( m k o l
n 1) be obtained first by identifying the com odes, and then choosing the n
remaining nodes of both graphs and then considering ordergins of nodes in
cycle (which is captured by the constant cl). Combining the above, and
calculating the sum of the covariances by condition on the number of
common edges between i, j it follows that:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Since p(n) t(n) ! 0 this equation implies
that
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
as claimed.
Problem 3.4
(d) Show that when there is a giant component in the network, its
expected size S, as a fraction of the network size, satisfies S = 1 ecS(2S) .
(e) What is the value of the clustering coecient when the giant component
fills half of the network?
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Solution:
(a) For each vertex, there are n1 2 pairs of others with which it cold form a
triangle, and each triangle is present with probability c ( n 1 2 ) , for an
average number of triangles c per vertex. Each triangle contributes two
edges to the degree, so the average degree is 2c.
where the final equality is exact in the limit of large n. The degree is twice
the number of triangles and hence t = k/2 and:
(The sum is a standard one that can be found in tables, but it’s also
reasonably straightforward to do by hand if you know the right tricks)
Now the clustering coefficient is
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
(d) Let u be the probability that a vertex is not in the giant component. If
n a v 1 e rtex is not in the giant component, then it must be that for each
of the 2 distinct pairs of other vertices in the network. Either (a) that pair
does not form a triangle with our vertex (probability 1 p) or (b) the pair
does form a triangle (probability p) but neither member of the pair is
itself in the giant component (probability u2). Thus the analog of Eq.
(12.12) for this model is
Putting p = c/n1 2 and taking the limit of large n this becomes u = ec(1u2) .
Putting S = 1 u we then find that S = 1 ecS(2S) .
and for S = 1/2 this gives c = 4 3 ln(2). Substituting into the expression for
the clustering coefficient above then gives
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Problem 3.5
(b) Show that when p = 0, the overall clustering coefficient of this graph is
given by
(c) Show that when p > 0, the overall clustering coecient is given by
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Solution:
(b) First, we give the labels 1,...,n to the nodes in a counter clockwise fashion
starting from an arbitrary node. when p = 0, two nodes with labels u and v
have an edge if they are at most k hops away, i.e., if |u v| k. We will
compute the clustering coecient by using the following definition:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
The following expression gives the total number of triangles that agenet 1
forms with agents 2 to k + 1 (note that this is not the total number of
triangles that agent 1 can form, since we are not cunting (yet) the triangles
with agents n k + 1 to n):
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
where the second term in the summation comes from the fact that each
triangle is counted just once in the first term. Thus, the overall clustering
coecient is simply given by the ratio:
(c) The overall clustering coecient is defined as the average of the clustering
coecients of individual nodes in the graph. The clustering coecient for agient
i is defined as the ratio of all links between the neighbors of i over the
number of all potential links between the neighbors. If agent i as ni
neighbors, then the number of potential links between i’s neighbors is
ni(ni1) 2 . As n ! 1 the above definition is equivalent with the
following:
Next note that two neighbors of agent i that were connected at p = 0 will
remain connected and linked with i with probability (1 p)3 when p > 0. Thus,
the expected number of links between the neighbors of a node is equal to
2k(k1) 2 (1 resp p) onds 3 + to O a (1/n new ), whe triangle re the b s eing
econd formed term by is t ne wo gligible edges th as n ! 1 and cor at were
rewired and one that was not rewired, etc
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
On the other hand, the expected number of potential links between the
neighbors of a node remains the same as in the case of p = 0 and
(a) Find a threshold for the immunity probability (in terms of the moments
of the degree distribution) below which the infection spreads to a large
portion of the population.
(c) What is this threshold for a power-law graph with exponents less than
3, i.e., pk ⇠ k↵ with ↵ < 3? The Internet graph (representing
connections between routers) has a power-law distribution with
exponent ⇠ 2.1 2.7. What does this result imply for the Internet graph?
(d) (d) Find the size of the infected population (you can assume that the
infection spreads to a large portion of the population).
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Solution:
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
Now emply branching process approximation:
(i) if < 1, then the disease dies out after a finite number of stages
(ii) if > 1, then with positive probability, the disease persists by infecting a
large portion of the population
Therefore
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
(b) For k ¯-regular random graph
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/
where the first term is the probability that the neighbor is immune, and the
second term (summation) is the probability that the neighbor is not
immune (however, none of its other neighbors sustains the process).
Where the right hand side is the probability that none of the neighbors
manages to sustain the branching process.
For any Assignment related queries, Call us at : - +1 678 648 4277
You can mail us at : - support@computernetworkassignmenthelp.com or
reach us at : - www.computernetworkassignmenthelp.com/