08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Exercise 4.53 Consider graph 3-colorability. Randomly generate the edges <strong>of</strong> a graph<br />

and compute the number <strong>of</strong> solutions and the number <strong>of</strong> connected components <strong>of</strong> the<br />

solution set as a function <strong>of</strong> the number <strong>of</strong> edges generated. What happens?<br />

Exercise 4.54 Construct an example <strong>of</strong> a formula which is satisfiable, but the SC heuristic<br />

fails to find a satisfying assignment.<br />

Exercise 4.55 In G(n, p), let x k be the number <strong>of</strong> connected components <strong>of</strong> size k. Using<br />

x k , write down the probability that a randomly chosen vertex is in a connected component<br />

<strong>of</strong> size k. Also write down the expected size <strong>of</strong> the connected component containing a<br />

randomly chosen vertex.<br />

Exercise 4.56 In a G(n, p) graph with p asymptotically greater than 1 , show that<br />

n<br />

∞∑<br />

i(i − 2)λ i > 0 where λ i is the fraction <strong>of</strong> vertices <strong>of</strong> degree i.<br />

i=0<br />

Exercise 4.57 Describe several methods <strong>of</strong> generating a random graph with a given degree<br />

distribution. Describe differences in the graphs generated by the different methods.<br />

Exercise 4.58 Consider generating a random graph adding one edge at a time. Let n(i,t)<br />

be the number <strong>of</strong> components <strong>of</strong> size i at time t.<br />

n(1, 1) = n<br />

n(1, t) = 0 t > 1<br />

n(i, t) = n(i, t − 1) + ∑ j(i − j)<br />

n (j, t − 1) n (i − j, t − 1) − 2i<br />

n 2<br />

n n (i)<br />

Compute n(i,t) for a number <strong>of</strong> values <strong>of</strong> i and t. What is the behavior? What is the<br />

sum <strong>of</strong> n(i,t) for fixed t and all i? Can you write a generating function for n(i,t)?<br />

Exercise 4.59 The global clustering coefficient <strong>of</strong> a graph is defined as follows. Let d v be<br />

the degree <strong>of</strong> vertex v and let e v be the number <strong>of</strong> edges connecting pairs <strong>of</strong> vertices that<br />

are adjacent to vertex v. The global clustering coefficient c is given by<br />

c = ∑ v<br />

2e v<br />

. d v(d v−1)<br />

In a social network, for example, it measures what fraction <strong>of</strong> pairs <strong>of</strong> friends <strong>of</strong> each<br />

person are themselves friends. If many are, the clustering coefficient is high. What is c<br />

for a random graph with p = d in the limit as n goes to infinity? For a denser graph?<br />

n<br />

Compare this value to that for some social network.<br />

Exercise 4.60 Consider a structured graph, such as a grid or cycle, and gradually add<br />

edges or reroute edges at random. Let L be the average distance between all pairs <strong>of</strong><br />

vertices in a graph and let C be the ratio <strong>of</strong> triangles to connected sets <strong>of</strong> three vertices.<br />

Plot L and C as a function <strong>of</strong> the randomness introduced.<br />

137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!