1 / 40

Randomized Algorithms CS648

Randomized Algorithms CS648. Lecture 21 Random Walk and Electric Networks . Overview and motivation . What do we know about Random walk till now?. We have discussed uniform random walk on A line . A complete graph . Two complete graphs joined by an edge (Mid- sem Exam).

ella
Télécharger la présentation

Randomized Algorithms CS648

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Randomized AlgorithmsCS648 Lecture 21 Random Walk and Electric Networks

  2. Overview and motivation

  3. What do we know about Random walk till now? We have discussed uniform random walk on • Aline. • A complete graph. • Two complete graphs joined byan edge (Mid-sem Exam). We analyzed the random walk by writing equation for each case. We could solve these equations because of • Symmetry of the our graphs (line graph, complete graph). • Uniformity of random walk. Question: Is there a compact formula for expected duration of a random walk on any graph ? What if the random walk is not uniform ?

  4. An answer from mathematics Let be an undirected graph on vertices and edges. Theorem: Let . Expected length of a random walk that starts from and terminates on reaching is . The above result is derived using theory of Markov Chains. Unfortunately, it is a loose result for many graphs . Exercise: Show that for complete graph, the above result is very loose.

  5. A surprising discovery • Random walk on a graph is closely related to electric networks. • A graph can be viewed as a electric network where each edge corresponds to a resistance of one ohm. • Various aspects of random walk are defined as a fundamental characteristics (resistance, power, voltage) of the corresponding electric network. Physicsof electric network helps inmathematical theory of random walk ! Isn’t it surprising ?

  6. A warm up Example

  7. Random walk on a line ½ ½ Question: Suppose the random walk starts at . What is the probability that the drunkard reaches home before reaching bar ? Let be the corresponding probability. ? ? ? home bar

  8. Random walk on a line : Potential at point . ,, Current entering = Current leaving. • = Volt current Each resistance is 1ohm.

  9. Random walk on a line ½ ½ ,, : Potential at point ,, Henceand satisfy the same set of equations.  Since these equations have unique solution, thereforefor all . home bar current Volt

  10. Generalization to graphs home Question: What is , probability of reaching home before bar ? , , bar

  11. Generalization to graphs Question: What is relation between and ’s where ? , , Net current leaving is 0. 

  12. Generalization to graphs Question: What is relation between and ’s where ? , , Hence and satisfy the same set of equations.  Since these equations have unique solution, therefore for all . , ,

  13. Generalization to graphs Exercise: Use your knowledge of electric circuits to find exact value of in the above circuit. This will also be the value of . Try to realize that you would not have been able to calculate using other mathematical tools that you are aware of. Isn’t it surprising. Fully internalize it before proceed further for another more surprising result. We shall revise the theory of electric circuits which perhaps you might have forgotten by now.

  14. REvisitingTheory of electric circuits

  15. Kirchoff’s Current Law 5 A For any node in the circuit, Current entering node = Current leaving node Note: This law holds for the entire circuit as well. For example, Let the above circuit is connected to outside circuit through wires at nodes . Question: If 5 Amperes of current enters and 10 Amperes of current enters from outside, then what current leaves/enters ? Answer: 15 Amperes of current must leave . 15 A 10A

  16. Notion of Resistance andOhm’sLaw The current passing through a piece of wire is proportional to the potential difference applied across the two ends of it. The constant of proportionality is called “resistance”. Thus the resistance can be defined in terms of voltage and current as follows. The resistance of a wire is the potential difference that needs to be applied across its ends to pass a current of 1 ampere through it.

  17. Notion of Resistance andOhm’s Law What made you conclude that the resistance between and is ? • Series law • Parallel law This introduces the notion of effective resistance between two points and in a given circuit. Question: In a circuit, if we increase (decrease) the value of any resistance, what will be its effect on effective resistance between and ? Answer: the effective resistance between and may only increase(decrease).

  18. Notion of Resistance andOhm’s Law If amperes of current flows from to , then • : the potential difference from to or the potential of relative to • Relation between and ? Question: What is if is not directly connected to in the circuit ? (see next slide)

  19. Electric Potential is conservative Question: What is ? (the battery and other wires not shown in the figure above) Answer: Consider any path from to . is the sum of the potential difference at each edge on this path. FACT:is path independent (electric potential is conservative).

  20. Three simple principles Fully understand these principles so that you may apply them later on.

  21. Reversibility Let be a valid current flow in a circuit. Question: Let be a flow obtained by reversing the direction of current flow in each branch of circuit. is also a valid current flow in the circuit ? Answer: Yes. Question: Let • be potential of relative to for the flow . • be potential of relative to for the flow . What is relation between and ? Answer:

  22. Linearity of current flow Let and be any two valid current flows in a circuit. Question: Is + a valid current flow ? Answer: Yes. Question: Let • be potential of relative to for the flow . • be potential of relative to for the flow . What is potential of relative to in + ? Answer:

  23. Uniqueness If we assign any assignment of potential to nodes in the above circuit, there exists a unique and valid current flow in the circuit satisfying these potential. However, note that, this will require that you connect external wires to allow residual current to enter/leave a node to satisfy Kirchoff’s law. Interestingly the converse of the above rule is also true.

  24. Uniqueness 15 A 5 A If we inject and extract any arbitrary amount of current into a circuit from outside, then provided that the current satisfies Kirchoff’s law (net current into circuit is 0), the current distributes itself within the circuit to give a uniqueand valid assignment of potentials to all nodes. The reason behind this uniqueness principle lies in the fact that there is a set of linear equations for each circuit on the basis of Kirchoff’s law and Ohm’s law. These equations have a unique solution. Interested students might like to explore this fact. But for this course, it is fine if you just understand this principle of uniqueness. 2 A 3 A 15 A 10 A

  25. Random walk and electric networks

  26. Notations • Hitting time :Expected no. of steps of the walk that starts from and finishes as soon as it reaches . Question: Any relation between and? • Commute time : Expected no. of steps of the walk that starts from and finishes at after visiting at least once. NO

  27. Expressing through a circuit

  28. Expressing through a circuit When there is no external current into , Question: What is relation between and ’s where ? • An additive term of in equation of is missing in the equation of . Why ? • No numerical additive term appears in the equation of because we derived it assuming net current into is 0. • So in order to make the two equations similar, we need to augment the above circuit with external wires.

  29. Expressing through a circuit Let be the current injected into from outside. Question: What be the new relation between and ’s where ? Question:What should be in order to equate equations of and ? Observation: To equate with for each , we need to inject current of into each node .  We must extract current from to satisfy Kirchoff’s current law.

  30. Expressing through a circuit is the potential of relative to in circuit with the following current flow : • Inject current into each , • Extract current from . It follows from the uniquenessprinciple that will be a valid current flow in the circuit. In a similar manner, could you express ?

  31. Expressing through a circuit is the potential of relative to in circuit with the following current flow : • Inject current into each , • Extract current from .

  32. + = ?? in circuit() with current flow . in circuit() with current flow . Apply principle of Reversibility

  33. + = ?? in circuit() with current flow . in circuit() with current flow . Apply principle of Linearity

  34. + = ?? in circuit() with current flow . Question: What does the circuit() with current flow look like ? Hint: External current cancels at each node except at and .

  35. + = ?? in circuit() with current entering andcurrent leaving . , where is the effective resistance between and .

  36. Theroem: Given an undirected graph on edges, commute time between any pair of vertices and is , where is the effective resistance between and in the circuit associated with .

  37. Commute Time of some well studied graphs

  38. Useful tips You may use one or more of the following principles to calculate effective resistance any pair of vertices and . • Increasing resistance of some edges to infinity (equivalent to removal of those edges) will only increase the effective resistance between and . • Apply series and parallel law of resistance can be a useful tool sometimes. • Any flow from to in the circuit will consume same or more amount of power than the corresponding current flow of same value from to . So effective resistance between any pair of vertices is bounded by the power dissipated due to any flow of 1 ampere from to in the circuit. (This is called the least power law)

  39. Two complete graphs joined by an edge Let and be two complete graphs on vertices. We add an edge between a vertex in and a vertex in . What is the maximum commute time in this combined graph ?

  40. Given -by- grid, calculate commute time between vertices and . Use least power law, and distribute 1 ampere of current evenly from to . (the solution was sketched in the lecture class)

More Related