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

Slides:



Advertisements
Similar presentations
Computational Complexity
Advertisements

Part VI NP-Hardness. Lecture 23 Whats NP? Hard Problems.
Lecture 15. Graph Algorithms
2 4 Theorem:Proof: What shall we do for an undirected graph?
Isolation Technique April 16, 2001 Jason Ku Tao Li.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Max Cut Problem Daniel Natapov.
COMP 553: Algorithmic Game Theory Fall 2014 Yang Cai Lecture 21.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
AMDM UNIT 7: Networks and Graphs
Random Walks Ben Hescott CS591a1 November 18, 2002.
Parallel random walks Brian Moffat. Outline What are random walks What are Markov chains What are cover/hitting/mixing times Speed ups for different graphs.
Complexity 12-1 Complexity Andrei Bulatov Non-Deterministic Space.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Complexity 13-1 Complexity Andrei Bulatov Hierarchy Theorem.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
Computability and Complexity 19-1 Computability and Complexity Andrei Bulatov Non-Deterministic Space.
Fall 2003Costas Busch - RPI1 Decidability. Fall 2003Costas Busch - RPI2 Recall: A language is decidable (recursive), if there is a Turing machine (decider)
1 Mazes In The Theory of Computer Science Dana Moshkovitz.
Complexity ©D.Moshkovits 1 Space Complexity Complexity ©D.Moshkovits 2 Motivation Complexity classes correspond to bounds on resources One such resource.
Graphs and Trees This handout: Eulerian Cycles: Sufficiency of the condition Hamiltonian tour.
Computability and Complexity 20-1 Computability and Complexity Andrei Bulatov Class NL.
Analysis of Algorithms CS 477/677
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Alyce Brady CS 510: Computer Algorithms Depth-First Graph Traversal Algorithm.
Complexity 1 Mazes And Random Walks. Complexity 2 Can You Solve This Maze?
The Euler-tour technique
Fall 2006Costas Busch - RPI1 Undecidable Problems (unsolvable problems)
Undirected ST-Connectivity In Log Space
Undirected ST-Connectivity In Log Space Omer Reingold Slides by Sharon Bruckner.
Depth-First Search Idea: Keep going forward as long as there are unseen nodes to be visited. Backtrack when stuck. v G G G G is completely traversed.
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
Section 11.4 Language Classes Based On Randomization
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
CSC 331: Algorithm Analysis Decompositions of Graphs.
Theory of Computing Lecture 15 MAS 714 Hartmut Klauck.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
. CLASSES RP AND ZPP By: SARIKA PAMMI. CONTENTS:  INTRODUCTION  RP  FACTS ABOUT RP  MONTE CARLO ALGORITHM  CO-RP  ZPP  FACTS ABOUT ZPP  RELATION.
PROBABILISTIC COMPUTATION By Remanth Dabbati. INDEX  Probabilistic Turing Machine  Probabilistic Complexity Classes  Probabilistic Algorithms.
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, …
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
NPC.
CSC 413/513: Intro to Algorithms
Complexity 24-1 Complexity Andrei Bulatov Interactive Proofs.
Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
Lecture. Today Problem set 9 out (due next Thursday) Topics: –Complexity Theory –Optimization versus Decision Problems –P and NP –Efficient Verification.
Hamilton Paths and Circuits 1 Click to Start 2 3 Start End.
Solving problems by searching Uninformed search algorithms Discussion Class CS 171 Friday, October, 2nd (Please read lecture topic material before and.
Almost SL=L, and Near-Perfect Derandomization Oded Goldreich The Weizmann Institute Avi Wigderson IAS, Princeton Hebrew University.
Theory of Computational Complexity Probability and Computing Lee Minseon Iwama and Ito lab M1 1.
Graph Terms By Susan Ott. Vertices Here are 7 vertices without any edges Each Vertex is labeled a different color and number.
Space Complexity Guy Feigenblat Based on lecture by Dr. Ely Porat Complexity course Computer science department, Bar-Ilan university December 2008.
Decidability.
Representing Graphs Depth First Search Breadth First Search Graph Searching Algorithms.
Umans Complexity Theory Lectures
Markov Chains and Random Walks
Part VI NP-Hardness.
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Connected Components Minimum Spanning Tree
Advanced Algorithms Analysis and Design
Time Complexity Classes
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Presentation transcript:

2

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

5

6

7 p 0 (s)=1 p 1 (a)=1/3

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 i Every visit here, is another chance!

Since expectedly we return to each vertex within 2|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. 2. Once vertex t is visited, halt and accept --- “there is a path from s to t”. 3. Once ran for 8|V|  |E| steps halt and reject --- “there is probably no path from s to t”. The claim is true –by Markov– with probability ≥¼. 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 