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.7 Let f (n) be a function that is asymptotically less than n. Some such functions<br />

are 1/n, a constant d, log n or n 1 3 . Show that<br />

( ) n<br />

1 + f(n)<br />

n ≃ e f(n)(1±o(1)) .<br />

for large n. That is<br />

Exercise 4.8<br />

[( ) n ]<br />

ln 1 + f(n)<br />

n<br />

lim<br />

n→∞ f (n)<br />

= 1.<br />

1. In the limit as n goes to infinity, how does ( 1 − n) 1 n ln n<br />

behave.<br />

(<br />

2. What is lim n+1<br />

) n?<br />

n→∞ n<br />

Exercise 4.9 Consider a random permutation <strong>of</strong> the integers 1 to n. The integer i is<br />

said to be a fixed point <strong>of</strong> the permutation if i is the integer in the i th position <strong>of</strong> the<br />

permutation. Use indicator variables to determine the expected number <strong>of</strong> fixed points in<br />

a random permutation.<br />

Exercise 4.10 Generate a graph G ( n, d n)<br />

with n = 1000 and d=2, 3, and 6. Count the<br />

number <strong>of</strong> triangles in each graph. Try the experiment with n=100.<br />

Exercise 4.11 What is the expected number <strong>of</strong> squares (4-cycles) in G ( n, d n)<br />

? What is<br />

the expected number <strong>of</strong> 4-cliques in G ( n, d n)<br />

?<br />

Exercise 4.12 Carry out an argument, similar to the one used for triangles, to show that<br />

p = 1 is a threshold for the existence <strong>of</strong> a 4-clique. A 4-clique consists <strong>of</strong> four vertices<br />

n 2/3<br />

with all ( 4<br />

2)<br />

edges present.<br />

Exercise 4.13 What is the expected number <strong>of</strong> simple paths <strong>of</strong> length 3, log n, √ n, and<br />

n − 1 in G(n, d )? A simple path is a path where no vertex appears twice as in a cycle.<br />

n<br />

The expected number <strong>of</strong> simple paths <strong>of</strong> a given length being infinite does not imply that a<br />

graph selected at random has such a path.<br />

Exercise 4.14 Let x be an integer chosen uniformly at random from {1, 2, . . . , n}. Count<br />

the number <strong>of</strong> distinct prime factors <strong>of</strong> n. The exercise is to show that the number <strong>of</strong> prime<br />

factors almost surely is Θ(ln ln n). Let p stand for a prime number between 2 and n.<br />

1. For each fixed prime p, let I p be the indicator function <strong>of</strong> the event that p divides x.<br />

Show that E(I p ) = 1 p + O ( 1<br />

n<br />

)<br />

.<br />

131

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

Saved successfully!

Ooh no, something went wrong!