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.

E<br />

D<br />

C<br />

D<br />

C<br />

A<br />

B<br />

A<br />

B<br />

Figure 5.18: An undirected and a directed graph.<br />

Exercise 5.51 Create a random directed graph with 200 vertices and roughly eight edges<br />

per vertex. Add k new vertices and calculate the page rank with and without directed edges<br />

from the k added vertices to vertex 1. How much does adding the k edges change the page<br />

rank <strong>of</strong> vertices for various values <strong>of</strong> k and restart frequency? How much does adding<br />

a loop at vertex 1 change the page rank? To do the experiment carefully one needs to<br />

consider the page rank <strong>of</strong> a vertex to which the star is attached. If it has low page rank<br />

its page rank is likely to increase a lot.<br />

Exercise 5.52 Repeat the experiment in Exercise 5.51 for hitting time.<br />

Exercise 5.53 Search engines ignore self loops in calculating page rank. Thus, to increase<br />

page rank one needs to resort to loops <strong>of</strong> length two. By how much can you increase the<br />

page rank <strong>of</strong> a page by adding a number <strong>of</strong> loops <strong>of</strong> length two?<br />

Exercise 5.54 Number the vertices <strong>of</strong> a graph {1, 2, . . . , n}. Define hitting time to be the<br />

expected time from vertex 1. In (2) assume that the vertices in the cycle are sequentially<br />

numbered.<br />

1. What is the hitting time for a vertex in a complete directed graph with self loops?<br />

2. What is the hitting time for a vertex in a directed cycle with n vertices?<br />

Create exercise relating strongly connected and full rank<br />

Full rank implies strongly connected.<br />

Strongly connected does not necessarily imply full rank<br />

Is graph aperiodic iff λ 1 > λ 2 ?<br />

⎛<br />

⎝<br />

0 0 1<br />

0 0 1<br />

1 1 0<br />

188<br />

⎞<br />

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

Saved successfully!

Ooh no, something went wrong!