



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CS787: Advanced Algorithms Scribe: Evan Driscoll, Daniel Wong Lecturer: Shuchi Chawla Topic: Random Walks & Markov chains: the resistance method. Date: December 7, 2007
For this lecture, consider a graph G = (V, E), with n = |V | and m = |E|. Let du denote the degree of vertex u.
Recall some of the quantities we were interested in from last time:
Definition 28.1.1 The transition matrix is a matrix P such that Puv denotes the probability of moving from u to v: Puv = Pr[random walk moves from u to v given it is at u].
Definition 28.1.2 Stationary Distribution for the graph starting at v, π∗, is the distribution over nodes such that π∗^ = π∗P
Definition 28.1.3 The hitting time from u to v, huv, is the expected number of steps to get from u to v.
Definition 28.1.4 The commute time between u and v, Cuv, is the expected number of steps to get from u to v and then back to u.
Definition 28.1.5 The cover time of a graph, C(G), is the maximum over all nodes in G, of the expected number of steps starting at a node and walking to every other node in G.
Last time we showed the following:
Recall the relationships and values in electrical circuits.
The 3 principle values we will be looking at are voltage, V , current, i, and resistance r. For more information on the intuition of these properties I direct the reader to the wikipeida entry on Electrical circuits, http://en.wikipedia.org/wiki/Electrical circuits.
Ohm’s Law:
Definition 28.2.1 V = ir
Kirchoff’s Law:
Definition 28.2.2 At any junction, iin = iout
In other words, current is conserved.
Here is an example circuit diagram.
Slightly more complicated circuit:
Recall that for resistors in series the net resistance is the sum of the individual resistances,∑ rnet =
r in series r. Similarly for resistors in parallel the multiplicative inverse of the net resistance is the sum of the multiplicative inverses of each individual resistor, (^) rnet^1 =
r in parallel
1 r.
Consider an undirected unweighted graph G. Replace every edge by a 1Ω resistor. Let Ruv be the effective resistance between nodes u and v in this circuit.
As you can see by applying these operations to a star graph, the effective resistance is 2Ω between the indicated u and v.
and 6 = v) has no current flowing into or out of it, and the only nodes with current entering or exiting are u and v.
At v, 2m − dv amps were exiting during part 1, and dv amps were exiting during part 2, which means that now 2m amps are exiting. By a similar argument (and conservation of current), 2m amps are also entering u.
Thus the voltage drop from u to v is given by Ohm’s law:
(φu + φ′ u) − 0 = Ruv · 2 m
But φu = huv and φ′ u = hvu, so that gives us our final goal:
huv + hvu = Cuv = 2mRuv
A couple of the formulas we developed last lecture can be re-derived easily using lemma 28.3.1. Lemma 27.5.1 says that, for any nodes u and v, if there is an edge (u, v) ∈ E, then Cuv ≤ 2 m. This statement follows immediately by noting that Ruv ≤ 1Ω. If a 1Ω resistor is connected in parallel with another circuit (for instance, see the following figure), the effective resistance Ruv is less than the minimum of the resistor and the rest of the circuit.
In addition, last lecture we showed (in lemma 27.6.1) that C(G) ≤ 2 m(n − 1). We can now develop a tighter bound:
Theorem 28.4.1 Let R(G) = maxu,v∈V Ru,v be the maximum resistance between any two points. Then mR(G) ≤ C(G) ≤ mR(G)2e^3 ln n + n.
Proof: The lower bound is fairly easy to argue. Consider a pair of nodes, (u, v), that satisfy Ruv = R(G). Then max{huv, hvu} ≥ Cuv/2 because either huv or hvu makes up at least half of the commute time. Lemma 28.3.1 and the above inequality shows the lower bound.
To show the upper bound on C(G), we proceed as follows. Consider running a random walk over G starting from node u. Run the random walk for 2e^3 mR(G) steps. For some vertex v, the chance that we have not seen v is 1/e^3. We know that from 28.3.1 the hitting time from any u to v is at
most 2mR(G). From Markov’s inequality:
Pr
E[# of steps it takes to go from u to v] 2 e^3 mR(G)
≤ 2 mR(G) 2 e^3 mR(G)
≤
e^3
(Note that this holds for any starting node u ∈ V .)
If we perform this process ln n times — that is, we perform ln n random walks starting from u ending at u′^ the probability that we have not seen v on any of the walks is (1/e^3 )ln^ n^ = 1/n^3. Because huv ≤ 1 /e^3 for all u, we can begin each random walk at the last node of the previous walk. By union bound, the chance that there exists a node that we have not visited is 1/n^2.
If we have still not seen all the nodes, then we can use the algorithm developed last time (generating a spanning tree then walking it) to cover the graph in an expected time of 2n(m − 1) ≤ 2 n^3.
Call the first half of the algorithm (the ln n random walks) the “goalless portion” of the algorithm, and the second half the “spanning tree portion” of the algorithm.
Putting this together, the expected time to cover the graph is:
C(G) ≤ Pr[goalless portion reaches all nodes] · (time of goalless portion)
≤
n^2
· (2e^3 mR(G) · ln n) + (1/n^2 ) · (n^3 )
≤ 2 e^3 mR(G) ln n + n
Last lecture we said that C(G) = O(n^2 ). We now have the tools to show that this bound is tight. Consider u at one end of the graph and v at the other; then Ruv = n − 1, so by lemma 28.3.1, Cuv = 2mRuv = 2m(n − 1), which is exactly what the previous bound gave us.
Last lecture we showed that C(G) = O(n^3 ). Consider u at the intersection of the two sections of the graph, and v at the end. Then Ruv = n/2, so Cuv = 2m n 2 = 2Θ(n^2 ) n 2 = Θ(n^3 ). Thus again our previous big-O bound was tight.