Lecture 22: April 18 Probabilistic Method. Why Randomness? Probabilistic method: Proving the existence of an object satisfying certain properties without.

Slides:



Advertisements
Similar presentations
Quantum Lovasz local lemma Andris Ambainis (Latvia), Julia Kempe (Tel Aviv), Or Sattath (Hebrew U.) arXiv:
Advertisements

Max Cut Problem Daniel Natapov.
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
1 Partition Into Triangles on Bounded Degree Graphs Johan M. M. van Rooij Marcel E. van Kooten Niekerk Hans L. Bodlaender.
Random Walks. Random Walks on Graphs - At any node, go to one of the neighbors of the node with equal probability. -
The Probabilistic Method Shmuel Wimer Engineering Faculty Bar-Ilan University.
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
Semidefinite Programming
Online Graph Avoidance Games in Random Graphs Reto Spöhel Diploma Thesis Supervisors: Martin Marciniszyn, Angelika Steger.
1 2 Introduction In last chapter we saw a few consistency tests. In this chapter we are going to prove the properties of Plane-vs.- Plane test: Thm[RaSa]:
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
Randomized Algorithms and Randomized Rounding Lecture 21: April 13 G n 2 leaves
Complexity 19-1 Complexity Andrei Bulatov More Probabilistic Algorithms.
Hunting for Sharp Thresholds Ehud Friedgut Hebrew University.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
1 Discrete Structures CS 280 Example application of probability: MAX 3-SAT.
Prof. Bart Selman Module Probability --- Part e)
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Lecture 20: April 12 Introduction to Randomized Algorithms and the Probabilistic Method.
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
1 Joint work with Shmuel Safra. 2 Motivation 3 Motivation.
Randomized Algorithms Morteza ZadiMoghaddam Amin Sayedi.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Lecture 22 More NPC problems
NP-complete Problems SAT 3SAT Independent Set Hamiltonian Cycle
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
Graph Colouring L09: Oct 10. This Lecture Graph coloring is another important problem in graph theory. It also has many applications, including the famous.
Planar Graphs Graph Coloring
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
1/19 Minimizing weighted completion time with precedence constraints Nikhil Bansal (IBM) Subhash Khot (NYU)
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Seminar on random walks on graphs Lecture No. 2 Mille Gandelsman,
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 29.
28.
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
Complexity 24-1 Complexity Andrei Bulatov Interactive Proofs.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
Liaoruo Wang and John E. Hopcroft Dept. of Computer Engineering & Computer Science, Cornell University In Proc. 7th Annual Conference on Theory and Applications.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Non-LP-Based Approximation Algorithms Fabrizio Grandoni IDSIA
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
CHAPTER SIX T HE P ROBABILISTIC M ETHOD M1 Zhang Cong 2011/Nov/28.
Approximation algorithms
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
More NP-complete problems
Introduction to Randomized Algorithms and the Probabilistic Method
Richard Anderson Lecture 26 NP-Completeness
Computability and Complexity
Richard Anderson Lecture 26 NP-Completeness
(xy)(yz)(xz)(zy)
CS154, Lecture 16: More NP-Complete Problems; PCPs
Where Can We Draw The Line?
Complexity 6-1 The Class P Complexity Andrei Bulatov.
Richard Anderson Lecture 28 NP-Completeness
CS21 Decidability and Tractability
CS154, Lecture 16: More NP-Complete Problems; PCPs
Presentation transcript:

Lecture 22: April 18 Probabilistic Method

Why Randomness? Probabilistic method: Proving the existence of an object satisfying certain properties without actually constructing it. Show that a random object satisfying those properties with positive probability! That is, “create” the desired object by flipping coins!

Ramsey Number Given a complete graph, we want to colour its edges by 2 colours. Ramsey number R(k,l): is the smallest number n so that: For every complete graph G with at least n vertices, then any 2-colouring of G would either has a red complete subgraph of size k (a red K(k)) or a blue complete subgraph of size l (a blue K(l)). R(k,l) Number of vertices There is a colouring with no red K(k) and no blue K(l). Every colouring must have a red K(k) or a blue K(l).

Ramsey Number R(3,3) R(3,3) Number of vertices There is a colouring with no red K(3) and no blue K(3). Every colouring must have a red K(3) or a blue K(3). What is R(3,3)? So R(3,3) > 5.

Ramsey Number R(3,3) R(3,3) Number of vertices There is a colouring with no red K(3) and no blue K(3). Every colouring must have a red K(3) or a blue K(3). Claim: R(3,3)=6. Proof: Suppose the edges of a complete graph on 6 vertices are coloured red and blue. Pick a vertex v. There are 5 edges incident to v and so at least 3 of them must be the same colour, say blue. If any of the edges (r, s), (r, t), (s, t) are also blue then we have an entirely blue triangle. If not, then those three edges are all red and we have with an entirely red triangle.

Ramsey Theorem Ramsey Theorem: R(k,l) is finite for any k,l. Claim: R(r, s) ≤ R(r − 1, s) + R(r, s − 1): Consider a complete graph on R(r − 1, s) + R(r, s − 1) vertices. Pick a vertex v from the graph and consider two subgraphs M and N where a vertex w is in M if and only if (v, w) is red and is in N otherwise. Now, either |M| ≥ R(r − 1, s) or |N| ≥ R(r, s − 1). In the former case if M has a blue K(s) then so does the original graph and we are finished. Otherwise M has a red K(r−1) and so M U {v} has a red K(r) by definition of M. The latter case is analogous.

Ramsey Number R(k,k) R(k,k) Number of vertices There is a colouring with no red K(k) and no blue K(k). Every colouring must have a red K(k) or a blue K(k). What is R(k,k)? That is, for any graph with at most vertices, there is a 2-colouring with no red K(k) and no blue K(k). How to find such a colouring?Probabilistic method!

Ramsey Number R(k,k) Consider a graph G on n vertices. Colour each edge independently with either red or blue.

Ramsey Number R(k,k) suppose Then with positive probability that this is a good colouring. take And this implies the theorem.

Ramsey Number R(k,k) Theorem: for any graph with at most vertices, there is a 2-colouring with no red K(k) and no blue K(k). Corollary A complete graph of size n has a 2-colouring so that there is no monochromatic complete subgraph of size 2log(n). However, we do not know how to construct such a colouring if we don’t flip coins! On the other hand, say n=1024, then a random colouring does not satisfy this property with probability at most

Probabilistic Method Paul Erdős “my brain is open” "You don't have to believe in God, but you should believe in The Book." Is probabilistic method just counting?

Maximum Satisfiability MAX-3-SAT: Given a Boolean formula with 3 literals in each clause, find a truth assignment which satisfies the maximum number of clauses. Theorem: there is a truth assignment which satisfies 7/8 fraction of the clauses. Proof: find a random truth assignment – each variable is set to TRUE or FALSE with equal probability. The probability that a clause is satisfied is 7/8. By linearity of expectation, we have proved the theorem.

Remark Linearity of expectation is a simple but powerful technique. Theorem: there is a truth assignment which satisfies 7/8 fraction of the clauses. Corollary: there is a 7/8-approximation algorithm for MAX-3-SAT. Theorem: It is NP-hard to obtain a better than 7/8-approximation algorithm! This randomized algorithm can be derandomized.

An Aside Consider the following random process of generating a 3-SAT instance. There are n variables, each clause is picked uniformly randomly one by one. There is a surprising phenomenon called phase transition. If m/n < 4.26, then the formula is satisfiable with overwhelming probability. If m/n > 4.26, then the formula is unsatisfiable with overwhelming probability. Is it related to physics?

Dense Graph with No Short Cycles What is the expected number of edges X?

Dense Graph with No Short Cycles What is the number of cycles Y(i) of length i? For a specific cycle of i vertices, the probability is p i. For a specific set of i vertices, number of cycles is: So,

Dense Graph with No Short Cycles Expected total number Y of cycles of length smaller than k:

Dense Graph with No Short Cycles Idea: remove an edge for each short cycle! Hence there exists a graph with that many edges with no cycle of length < k.

Sample and Modify Instead of constructing random structures with the desired properties directly, we break the construction into two stages. In the first stage we construct a random structure that does not have the required properties (but almost). Then in the second stage we modify the random structure to satisfy the required property. Applications: homework.