08.10.2016 Views

Foundations of Data Science

2dLYwbK

2dLYwbK

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

clique <strong>of</strong><br />

size n/2<br />

x<br />

y<br />

} {{ }<br />

n/2<br />

Figure 5.7: Illustration that adding edges to a graph can either increase or decrease hitting<br />

time.<br />

Hitting time is not symmetric even in the case <strong>of</strong> undirected graphs. In the graph <strong>of</strong><br />

Figure 5.7, the expected time, h xy , <strong>of</strong> a random walk from x to y, where x is the vertex <strong>of</strong><br />

attachment and y is the other end vertex <strong>of</strong> the chain, is Θ(n 3 ). However, h yx is Θ(n 2 ).<br />

Commute time<br />

The commute time, commute(x, y), is the expected time <strong>of</strong> a random walk starting at<br />

x reaching y and then returning to x. So commute(x, y) = h xy + h yx . Think <strong>of</strong> going<br />

from home to <strong>of</strong>fice and returning home. We now relate the commute time to an electrical<br />

quantity, the effective resistance. The effective resistance between two vertices x and y in<br />

an electrical network is the voltage difference between x and y when one unit <strong>of</strong> current<br />

is inserted at vertex x and withdrawn from vertex y.<br />

Theorem 5.9 Given an undirected graph, consider the electrical network where each edge<br />

<strong>of</strong> the graph is replaced by a one ohm resistor. Given vertices x and y, the commute time,<br />

commute(x, y), equals 2mr xy where r xy is the effective resistance from x to y and m is the<br />

number <strong>of</strong> edges in the graph.<br />

Pro<strong>of</strong>: Insert at each vertex i a current equal to the degree d i <strong>of</strong> vertex i. The total<br />

current inserted is 2m where m is the number <strong>of</strong> edges. Extract from a specific vertex j<br />

all <strong>of</strong> this 2m current. Let v ij be the voltage difference from i to j. The current into i<br />

divides into the d i resistors at vertex i. The current in each resistor is proportional to the<br />

voltage across it. Let k be a vertex adjacent to i. Then the current through the resistor<br />

between i and k is v ij − v kj , the voltage drop across the resister. The sum <strong>of</strong> the currents<br />

out <strong>of</strong> i through the resisters must equal d i , the current injected into i.<br />

d i = ∑ k adj<br />

to i<br />

(v ij − v kj ) = d i v ij − ∑ k adj<br />

to i<br />

v kj .<br />

Solving for v ij<br />

167

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

Saved successfully!

Ooh no, something went wrong!