2 4 Theorem:Proof: What shall we do for an undirected graph?

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Bellwork If you roll a die, what is the probability that you roll a 2 or an odd number? P(2 or odd) 2. Is this an example of mutually exclusive, overlapping,
Slide 1 Insert your own content. Slide 2 Insert your own content.
Lower Bounds for Local Search by Quantum Arguments Scott Aaronson.
Generating Random Spanning Trees Sourav Chatterji Sumit Gulwani EECS Department University of California, Berkeley.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
1 Chapter 40 - Physiology and Pathophysiology of Diuretic Action Copyright © 2013 Elsevier Inc. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Analysis of Algorithms
Chapters 1 & 2 Theorem & Postulate Review Answers
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Coordinate Plane Practice The following presentation provides practice in two skillsThe following presentation provides practice in two skills –Graphing.
Classifying Complex Numbers Instructions The following slides list a set containing various types of numbers that you are to categorize as being strictly.
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLYING MONOMIALS TIMES POLYNOMIALS (DISTRIBUTIVE PROPERTY)
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Teacher Name Class / Subject Date A:B: Write an answer here #1 Write your question Here C:D: Write an answer here.
Addition Facts
Year 6 mental test 10 second questions Numbers and number system Numbers and the number system, fractions, decimals, proportion & probability.
CS4026 Formal Models of Computation Running Haskell Programs – power.
The Poisson distribution
ZMQS ZMQS
Reductions Complexity ©D.Moshkovitz.
Graph Algorithms Algorithm Design and Analysis Victor AdamchikCS Spring 2014 Lecture 11Feb 07, 2014Carnegie Mellon University.
Long cycles, short cycles, min-degree subgraphs, and feedback arc sets in Eulerian digraphs Raphael Yuster joint work with Asaf Shapira Eilat 2012.
Randomized Algorithms Randomized Algorithms CS648 1.
ABC Technology Project
O X Click on Number next to person for a question.
© S Haughton more than 3?
5.9 + = 10 a)3.6 b)4.1 c)5.3 Question 1: Good Answer!! Well Done!! = 10 Question 1:
1 Directed Depth First Search Adjacency Lists A: F G B: A H C: A D D: C F E: C D G F: E: G: : H: B: I: H: F A B C G D E H I.
Twenty Questions Subject: Twenty Questions
Take from Ten First Subtraction Strategy -9 Click on a number below to go directly to that type of subtraction problems
Linking Verb? Action Verb or. Question 1 Define the term: action verb.
Squares and Square Root WALK. Solve each problem REVIEW:
Professor A G Constantinides 1 Z - transform Defined as power series Examples:
Routing and Congestion Problems in General Networks Presented by Jun Zou CAS 744.
The x- and y-Intercepts
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
This, that, these, those Number your paper from 1-10.
Event 4: Mental Math 7th/8th grade Math Meet ‘11.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
We will resume in: 25 Minutes.
Solving Addition and Subtraction Inequalities
1 Ke – Kitchen Elements Newport Ave. – Lot 13 Bethesda, MD.
1 Unit 1 Kinematics Chapter 1 Day
O X Click on Number next to person for a question.
Solve an equation by multiplying by a reciprocal
The Fundamental Theorem of Algebra The Fundamental Theorem of Algebra
all-pairs shortest paths in undirected graphs
2 4 Theorem:Proof: What shall we do for an undirected graph?
1 Mazes In The Theory of Computer Science Dana Moshkovitz.
Complexity 1 Mazes And Random Walks. Complexity 2 Can You Solve This Maze?
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
Markov Chains and Random Walks. Def: A stochastic process X={X(t),t ∈ T} is a collection of random variables. If T is a countable set, say T={0,1,2, …
Seminar on random walks on graphs Lecture No. 2 Mille Gandelsman,
Theory of Computational Complexity Probability and Computing Lee Minseon Iwama and Ito lab M1 1.
Markov Chains and Random Walks
Presentation transcript:

2

4 Theorem:Proof: What shall we do for an undirected graph?

5

6

7 p 0 (s)=1 p 1 (a)=0.5

8

9

10

11

12

Note that if the right answer is ‘NO’, we clearly answer ‘NO’. Hence, this random walk algorithm has one-sided error. Such algorithms are called “Monte-Carlo” algorithms. Complexi ty 13

14 st... The probability we head in the right direction is 1/d s But every time we get here, we get a second chance!

Since expectedly we return to each vertex within|E|/d i steps The walk expectedly heads in the right direction within 2|E| steps By linearity of the expectation, it is expected to reach t within d(s,t)  2|E|  2|V|  |E| steps. 15 Complexity

1. Run the random walk from s for 2|V|  |E| steps. 2. If node t is ever visited, answer “there is a path from s to t”. 3. Otherwise, reply “there is probably no path from s to t”. 16 Complexity

Theorem: The above algorithm - uses logarithmic space - always right for ‘NO’ instances. - errs with probability at most ½ for ‘YES’ instances. 17 Complexity To maintain the current position we only need log|V| space Markov: Pr(X>2E[X])<½ PAP

We explored the undirected connectivity problem. We saw a log-space randomized algorithm for this problem. We used an important technique called random walks. 18 Complexity 