The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method...

158
Outline The Probabilistic Method Haritha Eruvuru 1 1 Lane Department of Computer Science and Electrical Engineering West Virginia University 24 April, 2012 Haritha Eruvuru Randomized Algorithms

Transcript of The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method...

Page 1: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

Outline

The Probabilistic Method

Haritha Eruvuru1

1Lane Department of Computer Science and Electrical EngineeringWest Virginia University

24 April, 2012

Haritha Eruvuru Randomized Algorithms

Page 2: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

Outline

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 3: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

Outline

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 4: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

Outline

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 5: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

Outline

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 6: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 7: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Definition

What is Probabilistic Method?

A way of proving the existence of objects.

How to prove?

To prove the existence of an object with certain properties, demonstrate a samplespace of objects in which the probability is positive that a randomly selected object hasthe required properties.If the probability of selecting an object with the required properties is positive, then thesample space must contain such an object and hence the object exists.

Haritha Eruvuru Randomized Algorithms

Page 8: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Definition

What is Probabilistic Method?

A way of proving the existence of objects.

How to prove?

To prove the existence of an object with certain properties, demonstrate a samplespace of objects in which the probability is positive that a randomly selected object hasthe required properties.If the probability of selecting an object with the required properties is positive, then thesample space must contain such an object and hence the object exists.

Haritha Eruvuru Randomized Algorithms

Page 9: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Definition

What is Probabilistic Method?

A way of proving the existence of objects.

How to prove?

To prove the existence of an object with certain properties, demonstrate a samplespace of objects in which the probability is positive that a randomly selected object hasthe required properties.If the probability of selecting an object with the required properties is positive, then thesample space must contain such an object and hence the object exists.

Haritha Eruvuru Randomized Algorithms

Page 10: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Definition

What is Probabilistic Method?

A way of proving the existence of objects.

How to prove?

To prove the existence of an object with certain properties, demonstrate a samplespace of objects in which the probability is positive that a randomly selected object hasthe required properties.

If the probability of selecting an object with the required properties is positive, then thesample space must contain such an object and hence the object exists.

Haritha Eruvuru Randomized Algorithms

Page 11: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Definition

What is Probabilistic Method?

A way of proving the existence of objects.

How to prove?

To prove the existence of an object with certain properties, demonstrate a samplespace of objects in which the probability is positive that a randomly selected object hasthe required properties.If the probability of selecting an object with the required properties is positive, then thesample space must contain such an object and hence the object exists.

Haritha Eruvuru Randomized Algorithms

Page 12: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 13: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Example

Example

If there is a positive probability of getting an even number when a fair die is rolled, thenthere must be at least one face on the die having an even number.

Example

If there is a positive probability of winning a million-dollar prize in a raffle, then theremust be at least one raffle ticket that wins that prize.

Haritha Eruvuru Randomized Algorithms

Page 14: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Example

Example

If there is a positive probability of getting an even number when a fair die is rolled, thenthere must be at least one face on the die having an even number.

Example

If there is a positive probability of winning a million-dollar prize in a raffle, then theremust be at least one raffle ticket that wins that prize.

Haritha Eruvuru Randomized Algorithms

Page 15: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Example

Example

If there is a positive probability of getting an even number when a fair die is rolled, thenthere must be at least one face on the die having an even number.

Example

If there is a positive probability of winning a million-dollar prize in a raffle, then theremust be at least one raffle ticket that wins that prize.

Haritha Eruvuru Randomized Algorithms

Page 16: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Example

Example

If there is a positive probability of getting an even number when a fair die is rolled, thenthere must be at least one face on the die having an even number.

Example

If there is a positive probability of winning a million-dollar prize in a raffle, then theremust be at least one raffle ticket that wins that prize.

Haritha Eruvuru Randomized Algorithms

Page 17: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 18: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Techniques

Techniques for Constructing proofs based on the probabilistic method

(i) Simple Counting

(ii) Averaging Arguments

(iii) Lovasz local Lemma

(iv) Second Moment Method

Haritha Eruvuru Randomized Algorithms

Page 19: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Techniques

Techniques for Constructing proofs based on the probabilistic method

(i) Simple Counting

(ii) Averaging Arguments

(iii) Lovasz local Lemma

(iv) Second Moment Method

Haritha Eruvuru Randomized Algorithms

Page 20: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Techniques

Techniques for Constructing proofs based on the probabilistic method

(i) Simple Counting

(ii) Averaging Arguments

(iii) Lovasz local Lemma

(iv) Second Moment Method

Haritha Eruvuru Randomized Algorithms

Page 21: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Techniques

Techniques for Constructing proofs based on the probabilistic method

(i) Simple Counting

(ii) Averaging Arguments

(iii) Lovasz local Lemma

(iv) Second Moment Method

Haritha Eruvuru Randomized Algorithms

Page 22: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Probabilistic Method DefinitionExamplesTechniques

Techniques

Techniques for Constructing proofs based on the probabilistic method

(i) Simple Counting

(ii) Averaging Arguments

(iii) Lovasz local Lemma

(iv) Second Moment Method

Haritha Eruvuru Randomized Algorithms

Page 23: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 24: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Definition

To prove the existence of an object with specific properties, construct an appropriateprobability space S of objects and then show that the probability that an object in Swith the required properties is selected is strictly greater than 0.

Haritha Eruvuru Randomized Algorithms

Page 25: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Definition

To prove the existence of an object with specific properties, construct an appropriateprobability space S of objects and then show that the probability that an object in Swith the required properties is selected is strictly greater than 0.

Haritha Eruvuru Randomized Algorithms

Page 26: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices. A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 27: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices. A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 28: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices. A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 29: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices.

A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 30: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices. A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 31: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices. A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 32: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Example

Coloring edges of a graph with two colors so that there are no large cliques with alledges having same color.

Definition

Let Kn be a complete graph having C(n, 2) edges on n vertices. A clique of k verticesin Kn is a complete subgraph Kk .

Theorem

If C(n, k)2−C(k,2)+1 < 1, then it is possible to color the edges of Kn with two colors sothat it has no monochromatic Kk subgraph.

Haritha Eruvuru Randomized Algorithms

Page 33: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 34: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors.

Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 35: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.

Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 36: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 37: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 38: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2

Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 39: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 40: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored.

Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 41: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.

Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 42: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 43: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof

Define a sample space having all possible colorings of the edges of Kn using twocolors. Hence there are 2C(n,2) possible colorings.Probability of choosing a coloring from sample space is,

12C(n,2)

If we color each edge of the graph independently, with each edge taking each of thetwo possible colors with the probability 1

2Let Ai be the event that clique i is monochromatic where i = 1 . . .C(n, k)

Assume that the first edge in the clique i is colored. Then the remaining C(k , 2)− 1edges must all be given the same color.Hence,

P(Ai ) = 2−C(k,2)+1

Haritha Eruvuru Randomized Algorithms

Page 44: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 45: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 46: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 47: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 48: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 49: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 50: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 51: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Basic Counting Argument

Proof(Cont.)

Applying Union Bound,

P(∪C(n,k)

i=1 Ai

)≤

C(n,k)∑i=1

P(Ai )

C(n, k)2−C(k,2)+1 < 1

Therefore,

P(∩C(n,k)

i=1 Ai

)= 1− P

(∪C(n,k)

i=1 Ai

)> 0

The probability of choosing a coloring with no monochromatic k -vertex clique fromsample space is greater than 0.

Hence there is a coloring with no monochromatic k -vertex clique.

Haritha Eruvuru Randomized Algorithms

Page 52: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Outline

1 IntroductionProbabilistic Method DefinitionExamplesTechniques

2 TechniquesBasic Counting ArgumentThe Expectation Argument

3 Derandomization Using Conditional Expectations

4 Conditional Expectation Inequality

Haritha Eruvuru Randomized Algorithms

Page 53: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Definition

In a discrete probability space, a random variable with a positive probability assumes atleast one value that is no greater than its expectation and at least one value that is notsmaller than its expectation.

Example

If the expected values of a raffle ticket is at least $3, then there must be at least oneticket that ends up being worth no more than $3 and at least one that ends up beingworth no less than $3.

Haritha Eruvuru Randomized Algorithms

Page 54: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Definition

In a discrete probability space, a random variable with a positive probability assumes atleast one value that is no greater than its expectation and at least one value that is notsmaller than its expectation.

Example

If the expected values of a raffle ticket is at least $3, then there must be at least oneticket that ends up being worth no more than $3 and at least one that ends up beingworth no less than $3.

Haritha Eruvuru Randomized Algorithms

Page 55: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Definition

In a discrete probability space, a random variable with a positive probability assumes atleast one value that is no greater than its expectation and at least one value that is notsmaller than its expectation.

Example

If the expected values of a raffle ticket is at least $3, then there must be at least oneticket that ends up being worth no more than $3 and at least one that ends up beingworth no less than $3.

Haritha Eruvuru Randomized Algorithms

Page 56: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Definition

In a discrete probability space, a random variable with a positive probability assumes atleast one value that is no greater than its expectation and at least one value that is notsmaller than its expectation.

Example

If the expected values of a raffle ticket is at least $3, then there must be at least oneticket that ends up being worth no more than $3 and at least one that ends up beingworth no less than $3.

Haritha Eruvuru Randomized Algorithms

Page 57: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Lemma

Suppose we have a probability space S and a random variable X defined on S suchthat E [X ] = µ. Then P(X ≥ µ) > 0 and P(X ≤ µ) > 0.

Proof

µ = E [X ]

µ =∑

xx · P(X = x)

Haritha Eruvuru Randomized Algorithms

Page 58: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Lemma

Suppose we have a probability space S and a random variable X defined on S suchthat E [X ] = µ. Then P(X ≥ µ) > 0 and P(X ≤ µ) > 0.

Proof

µ = E [X ]

µ =∑

xx · P(X = x)

Haritha Eruvuru Randomized Algorithms

Page 59: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Lemma

Suppose we have a probability space S and a random variable X defined on S suchthat E [X ] = µ. Then P(X ≥ µ) > 0 and P(X ≤ µ) > 0.

Proof

µ = E [X ]

µ =∑

xx · P(X = x)

Haritha Eruvuru Randomized Algorithms

Page 60: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Lemma

Suppose we have a probability space S and a random variable X defined on S suchthat E [X ] = µ. Then P(X ≥ µ) > 0 and P(X ≤ µ) > 0.

Proof

µ = E [X ]

µ =∑

xx · P(X = x)

Haritha Eruvuru Randomized Algorithms

Page 61: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Lemma

Suppose we have a probability space S and a random variable X defined on S suchthat E [X ] = µ. Then P(X ≥ µ) > 0 and P(X ≤ µ) > 0.

Proof

µ = E [X ]

µ =∑

xx · P(X = x)

Haritha Eruvuru Randomized Algorithms

Page 62: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 63: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 64: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 65: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction.

Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 66: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 67: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 68: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 69: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

The Expectation Argument

Proof (Cont.)

If P(X ≥ µ) = 0, since µ is the upper bound

µ =∑

xx · P(X = x) =

∑x<µ

x · P(X = x) <∑x<µ

µ · P(X = x) = µ

This is a contradiction. Similarly, if P(X ≤ µ) = 0, then

µ =∑

xx · P(X = x) =

∑x>µ

x · P(X = x) >∑x>µ

µ · P(X = x) = µ

This is also a contradiction.

There must be at least one instance in the sample space S for which the value of X isat least µ and at least one instance for which the value of X is no greater than µ

Haritha Eruvuru Randomized Algorithms

Page 70: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 71: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 72: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 73: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.

Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 74: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 75: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 76: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 77: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Theorem

Given an undirected graph G with m edges, there is a partition of V into two disjointsets A and B such that at least m

2 edges connect a vertex in A to a vertex in B. That is,there is a cut with value at least m

2 .

Proof

Construct sets A and B by randomly and independently assigning each vertex to one ofthe two sets.Let e1. . . em be the edges of graph G.

For i = 1 . . .m,

Xi =

{1 if edge i connects A to B,0 otherwise.

The probability that the edge ei connects a vertex in A to vertex in B is 12

E [Xi ] =12

Haritha Eruvuru Randomized Algorithms

Page 78: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Let C(A,B) be some random variable denoting the value of the cut corresponding tothe sets A and B. Then,

E [C(A,B)] = E

[ m∑i=1

Xi

]=

m∑i=1

E [Xi ] = m ·12

=m2

The expectation of the random variable C(A,B) is m2 .

Hence there exist a partition A and B with at least m2 edges connecting sets A and B.

Haritha Eruvuru Randomized Algorithms

Page 79: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Let C(A,B) be some random variable denoting the value of the cut corresponding tothe sets A and B. Then,

E [C(A,B)] = E

[ m∑i=1

Xi

]=

m∑i=1

E [Xi ] = m ·12

=m2

The expectation of the random variable C(A,B) is m2 .

Hence there exist a partition A and B with at least m2 edges connecting sets A and B.

Haritha Eruvuru Randomized Algorithms

Page 80: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Let C(A,B) be some random variable denoting the value of the cut corresponding tothe sets A and B. Then,

E [C(A,B)] = E

[ m∑i=1

Xi

]=

m∑i=1

E [Xi ] = m ·12

=m2

The expectation of the random variable C(A,B) is m2 .

Hence there exist a partition A and B with at least m2 edges connecting sets A and B.

Haritha Eruvuru Randomized Algorithms

Page 81: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Let C(A,B) be some random variable denoting the value of the cut corresponding tothe sets A and B. Then,

E [C(A,B)] = E

[ m∑i=1

Xi

]=

m∑i=1

E [Xi ] = m ·12

=m2

The expectation of the random variable C(A,B) is m2 .

Hence there exist a partition A and B with at least m2 edges connecting sets A and B.

Haritha Eruvuru Randomized Algorithms

Page 82: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Let C(A,B) be some random variable denoting the value of the cut corresponding tothe sets A and B. Then,

E [C(A,B)] = E

[ m∑i=1

Xi

]=

m∑i=1

E [Xi ] = m ·12

=m2

The expectation of the random variable C(A,B) is m2 .

Hence there exist a partition A and B with at least m2 edges connecting sets A and B.

Haritha Eruvuru Randomized Algorithms

Page 83: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 84: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 .

For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 85: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 86: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)

As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 87: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 88: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 89: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 90: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

The expectation argument does not give a lower bound on the probability that arandom partition has a cut of value at least m

2 . For this bound, Let

p = P(

C(A,B) ≥m2

)As, C(A,B) ≤ m. We have,

m2

= E [C(A,B)]

m2

=∑

i≤ m2 −1

i · P(C(A,B) = i) +∑i≥ m

2

i · P(C(A,B) = i)

≤ (1− p) ·(m

2− 1)+ p ·m

Haritha Eruvuru Randomized Algorithms

Page 91: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Solving, we get

p ≥1

m2 + 1

The expected number of samples before finding a cut with value at least m2 is m

2 + 1.

Haritha Eruvuru Randomized Algorithms

Page 92: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Solving, we get

p ≥1

m2 + 1

The expected number of samples before finding a cut with value at least m2 is m

2 + 1.

Haritha Eruvuru Randomized Algorithms

Page 93: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Solving, we get

p ≥1

m2 + 1

The expected number of samples before finding a cut with value at least m2 is m

2 + 1.

Haritha Eruvuru Randomized Algorithms

Page 94: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Finding a Large Cut

Proof (Cont.)

Solving, we get

p ≥1

m2 + 1

The expected number of samples before finding a cut with value at least m2 is m

2 + 1.

Haritha Eruvuru Randomized Algorithms

Page 95: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Definition

SAT formula is a logical expression that is the conjunction (AND) of a set of clauseswhere each clause is the disjunction (OR) of literals.

Example

(x1 ∨ x2 ∨ x3) ∧ (x1 ∨ x3) ∧ (x1 ∨ x2 ∨ x4) ∧ (x4 ∨ x3) ∧ (x4 ∨ x1)

Solution

Assignment of the variables to the values TRUE and FALSE so that all clauses aresatisfied.

Haritha Eruvuru Randomized Algorithms

Page 96: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Definition

SAT formula is a logical expression that is the conjunction (AND) of a set of clauseswhere each clause is the disjunction (OR) of literals.

Example

(x1 ∨ x2 ∨ x3) ∧ (x1 ∨ x3) ∧ (x1 ∨ x2 ∨ x4) ∧ (x4 ∨ x3) ∧ (x4 ∨ x1)

Solution

Assignment of the variables to the values TRUE and FALSE so that all clauses aresatisfied.

Haritha Eruvuru Randomized Algorithms

Page 97: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Definition

SAT formula is a logical expression that is the conjunction (AND) of a set of clauseswhere each clause is the disjunction (OR) of literals.

Example

(x1 ∨ x2 ∨ x3) ∧ (x1 ∨ x3) ∧ (x1 ∨ x2 ∨ x4) ∧ (x4 ∨ x3) ∧ (x4 ∨ x1)

Solution

Assignment of the variables to the values TRUE and FALSE so that all clauses aresatisfied.

Haritha Eruvuru Randomized Algorithms

Page 98: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Definition

SAT formula is a logical expression that is the conjunction (AND) of a set of clauseswhere each clause is the disjunction (OR) of literals.

Example

(x1 ∨ x2 ∨ x3) ∧ (x1 ∨ x3) ∧ (x1 ∨ x2 ∨ x4) ∧ (x4 ∨ x3) ∧ (x4 ∨ x1)

Solution

Assignment of the variables to the values TRUE and FALSE so that all clauses aresatisfied.

Haritha Eruvuru Randomized Algorithms

Page 99: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Definition

SAT formula is a logical expression that is the conjunction (AND) of a set of clauseswhere each clause is the disjunction (OR) of literals.

Example

(x1 ∨ x2 ∨ x3) ∧ (x1 ∨ x3) ∧ (x1 ∨ x2 ∨ x4) ∧ (x4 ∨ x3) ∧ (x4 ∨ x1)

Solution

Assignment of the variables to the values TRUE and FALSE so that all clauses aresatisfied.

Haritha Eruvuru Randomized Algorithms

Page 100: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Definition

SAT formula is a logical expression that is the conjunction (AND) of a set of clauseswhere each clause is the disjunction (OR) of literals.

Example

(x1 ∨ x2 ∨ x3) ∧ (x1 ∨ x3) ∧ (x1 ∨ x2 ∨ x4) ∧ (x4 ∨ x3) ∧ (x4 ∨ x1)

Solution

Assignment of the variables to the values TRUE and FALSE so that all clauses aresatisfied.

Haritha Eruvuru Randomized Algorithms

Page 101: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 102: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.

Let k = minmi=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 103: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki .

Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 104: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 105: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 106: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 107: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).

Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 108: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 109: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 110: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Basic Counting ArgumentThe Expectation Argument

Maximum Satisfiability: MAXSAT

Theorem

Given a set of m clauses, let ki be the number of literals in the i th clause for i = 1 . . .m.Let k = minm

i=1ki . Then there is a truth assignment that satisfies at least

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

clauses.

Proof

The probability that the i th clause with ki literals is satisfied is at least (1− 2−ki ).Hence the expected number of satisfied clauses is at least,

m∑i=1

(1− 2−ki ) ≥ m · (1− 2−k )

There must be an assignment that satisfies at least that many clauses.

Haritha Eruvuru Randomized Algorithms

Page 111: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 112: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.

This gives a cut with expected value E [C(A,B)] ≥ m2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 113: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 114: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.

Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 115: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).

Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 116: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.

Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 117: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 118: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 119: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 120: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

Recall that we find a partition of the n vertices V of a graph into sets A and B byplacing each vertex independently and uniformly at random in one of the two sets.This gives a cut with expected value E [C(A,B)] ≥ m

2 .

Let the vertices be placed deterministically one at a time in order v1, v2, v3, . . . vn.Let vi be placed in a set xi (xi is in A or B).Assume that first k vertices are placed and consider the expected value of the cut if theremaining vertices are then placed independently and uniformly into one of the twosets.Let it be E [C(A,B) |x1, x2, x3 . . . xk ] the conditional expectation of the value of the cutgiven the locations x1, x2, x3 . . . xk of the first k vertices.

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

E [C(A,B)] ≤ E [C(A,B) |x1, x2, x3 . . . xn]

This value is the value of the cut.

Haritha Eruvuru Randomized Algorithms

Page 121: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 122: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 123: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere.

Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 124: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 125: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 126: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 127: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 128: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

The base case of induction is:

E [C(A,B) |x1] = E [C(A,B)]

This holds by symmetry as first vertex can be placed anywhere. Have to prove,

E [C(A,B) |x1, x2, x3 . . . xk ] ≤ E [C(A,B) |x1, x2, x3 . . . xk+1]

Let vk+1 be placed randomly, so that it is placed in A or B with probability 12 each.

Let Yk+1 be random variable representing the set where it is placed. Then

E [C(A,B) |x1, x2, x3 . . . xk ] =12· E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]+

12

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 129: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 130: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 131: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 132: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 133: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A]

is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 134: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.

This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 135: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 136: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

max(E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A],

E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B])

≥ E [C(A,B) |x1, x2, x3 . . . xk ]

By linearity of expectation, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = A] is the number ofedges crossing the cut whose end points are among the first k + 1 vertices, plus halfthe remaining edges.This can be computed in linear time.

Similarly, E [C(A,B) |x1, x2, x3 . . . xk ,Yk+1 = B]

Haritha Eruvuru Randomized Algorithms

Page 137: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

It is understood that the larger of two quantities is determined just by whether vk+1 hasmore neighbors in A or B.All edges that do not have vk+1 as an endpoint contribute the same amount to the twoexpectations.

Haritha Eruvuru Randomized Algorithms

Page 138: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

It is understood that the larger of two quantities is determined just by whether vk+1 hasmore neighbors in A or B.

All edges that do not have vk+1 as an endpoint contribute the same amount to the twoexpectations.

Haritha Eruvuru Randomized Algorithms

Page 139: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomization Using Conditional Expectations

It is understood that the larger of two quantities is determined just by whether vk+1 hasmore neighbors in A or B.All edges that do not have vk+1 as an endpoint contribute the same amount to the twoexpectations.

Haritha Eruvuru Randomized Algorithms

Page 140: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomized Algorithm

Take the vertices in some order.Place the first vertex arbitrarily in A.Place each successive vertex to maximize the number of edges crossing the cut.Equivalently, place each vertex on the side with fewer neighbors, breaking tiesarbitrarily.

This guarantees a cut with at least m2 edges.

Haritha Eruvuru Randomized Algorithms

Page 141: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomized Algorithm

Take the vertices in some order.

Place the first vertex arbitrarily in A.Place each successive vertex to maximize the number of edges crossing the cut.Equivalently, place each vertex on the side with fewer neighbors, breaking tiesarbitrarily.

This guarantees a cut with at least m2 edges.

Haritha Eruvuru Randomized Algorithms

Page 142: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomized Algorithm

Take the vertices in some order.Place the first vertex arbitrarily in A.

Place each successive vertex to maximize the number of edges crossing the cut.Equivalently, place each vertex on the side with fewer neighbors, breaking tiesarbitrarily.

This guarantees a cut with at least m2 edges.

Haritha Eruvuru Randomized Algorithms

Page 143: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomized Algorithm

Take the vertices in some order.Place the first vertex arbitrarily in A.Place each successive vertex to maximize the number of edges crossing the cut.

Equivalently, place each vertex on the side with fewer neighbors, breaking tiesarbitrarily.

This guarantees a cut with at least m2 edges.

Haritha Eruvuru Randomized Algorithms

Page 144: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomized Algorithm

Take the vertices in some order.Place the first vertex arbitrarily in A.Place each successive vertex to maximize the number of edges crossing the cut.Equivalently, place each vertex on the side with fewer neighbors, breaking tiesarbitrarily.

This guarantees a cut with at least m2 edges.

Haritha Eruvuru Randomized Algorithms

Page 145: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Derandomization Using Conditional Expectations

Derandomized Algorithm

Take the vertices in some order.Place the first vertex arbitrarily in A.Place each successive vertex to maximize the number of edges crossing the cut.Equivalently, place each vertex on the side with fewer neighbors, breaking tiesarbitrarily.

This guarantees a cut with at least m2 edges.

Haritha Eruvuru Randomized Algorithms

Page 146: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 147: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 148: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 149: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 150: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 151: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].

But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 152: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 153: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem

Let X =∑n

i=1 Xi where each Xi is a 0− 1 random variable. Then,

P(X > 0) ≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Proof

Let Y = 1X if X ≥ 0 with Y = 0 otherwise.

Then, P(X ≥ 0) = E [X · Y ].But,

E [X · Y ] = E [n∑

i=1

Xi · Y ]

=n∑

i=1

E [Xi · Y ]

Haritha Eruvuru Randomized Algorithms

Page 154: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem(Cont.)

=n∑

i=1

(E [Xi · Y |Xi = 1] · P(Xi = 1) + E [Xi · Y |Xi = 0] · P(Xi = 0))

=n∑

i=1

E [Y |Xi = 1] · P(Xi = 1)

=n∑

i=1

E [1/X |Xi ] · P(Xi = 1)

≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Haritha Eruvuru Randomized Algorithms

Page 155: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem(Cont.)

=n∑

i=1

(E [Xi · Y |Xi = 1] · P(Xi = 1) + E [Xi · Y |Xi = 0] · P(Xi = 0))

=n∑

i=1

E [Y |Xi = 1] · P(Xi = 1)

=n∑

i=1

E [1/X |Xi ] · P(Xi = 1)

≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Haritha Eruvuru Randomized Algorithms

Page 156: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem(Cont.)

=n∑

i=1

(E [Xi · Y |Xi = 1] · P(Xi = 1) + E [Xi · Y |Xi = 0] · P(Xi = 0))

=n∑

i=1

E [Y |Xi = 1] · P(Xi = 1)

=n∑

i=1

E [1/X |Xi ] · P(Xi = 1)

≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Haritha Eruvuru Randomized Algorithms

Page 157: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem(Cont.)

=n∑

i=1

(E [Xi · Y |Xi = 1] · P(Xi = 1) + E [Xi · Y |Xi = 0] · P(Xi = 0))

=n∑

i=1

E [Y |Xi = 1] · P(Xi = 1)

=n∑

i=1

E [1/X |Xi ] · P(Xi = 1)

≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Haritha Eruvuru Randomized Algorithms

Page 158: The Probabilistic Methodkrsubramani/courses/sp12/rand/... · 2017. 1. 26. · Probabilistic Method Definition Examples Techniques Example Example If there is a positive probability

IntroductionTechniques

Derandomization Using Conditional ExpectationsConditional Expectation Inequality

Conditional Expectation Inequality

Theorem(Cont.)

=n∑

i=1

(E [Xi · Y |Xi = 1] · P(Xi = 1) + E [Xi · Y |Xi = 0] · P(Xi = 0))

=n∑

i=1

E [Y |Xi = 1] · P(Xi = 1)

=n∑

i=1

E [1/X |Xi ] · P(Xi = 1)

≥n∑

i=1

P(Xi = 1)E [X |Xi = 1]

Haritha Eruvuru Randomized Algorithms