A fast Monte Carlo algorithm for the homogeneous set sandwich - - PowerPoint PPT Presentation

a fast monte carlo algorithm for the homogeneous set
SMART_READER_LITE
LIVE PREVIEW

A fast Monte Carlo algorithm for the homogeneous set sandwich - - PowerPoint PPT Presentation

A fast Monte Carlo algorithm for the homogeneous set sandwich problem Vincius Gusmo Pereira de S Guilherme Dias da Fonseca Celina Miraglia Herrera de Figueiredo Universidade Federal do Rio de Janeiro Sandwich Graphs A graph G 2 ( V 2 , E


slide-1
SLIDE 1

A fast Monte Carlo algorithm for the homogeneous set sandwich problem

Vinícius Gusmão Pereira de Sá Guilherme Dias da Fonseca Celina Miraglia Herrera de Figueiredo

Universidade Federal do Rio de Janeiro

slide-2
SLIDE 2

Sandwich Graphs

A graph G2(V2,E2) is said to be a supergraph of a graph G1(V1,E1) if and only if V2 = V1 and E2 ⊆ E1. A graph GS(VS,ES) is said to be a sandwich graph of a pair G1(V,E1), G2(V,E2) if and only if VS = V and E1 ⊆ ES ⊆ E2.

G1 G2 (supergraph of G1) GS (sandwich graph of G1,G2)

slide-3
SLIDE 3

Sandwich Problems

Input: two graphs G1(V,E1) and G2(V,E2) such that G2 is a supergraph of G1. Question: is there any sandwich graph GS of pair (G1,G2) that has property ∏ ?

G1 G2 (supergraph of G1)

An edge (x,y) is said to be

  • mandatory,

if (x,y) ∈ E1

  • forbidden,

if (x,y) ∉ E2

  • optional, if (x,y) ∈ E2 \ E1
slide-4
SLIDE 4

Homogeneous Sets

Let G (V, E) be a graph.

A set H ⊂ V is a homogeneous set of G if and only if all vertices in H have exactly the same neighborhood

  • utside H and 1 < |H| < |V|.

H (homogeneous set)

... h

The Homogeneous Set Sandwich Problem (HSSP): is there a sandwich graph of (G1,G2) which admits a homogeneous set?

slide-5
SLIDE 5

History

AUTHORS PUBLICATION ALGORITHM TIME DET./RAND. Cerioli, Everett, Figueiredo, Klein IPL, 1998 1 Ehaustive Envelopment O(n4) det. Tang, Wang, Yeh IPL, 2001 2 Strongly Connected Sinks O(Δ2 n2) det. Figueiredo,

  • P. de Sá

M.Sc., 2003 + IPL, 2004 3 Two-Phase O(m M) det. Figueiredo, Fonseca, P. de Sá, Spinrad LNCS, 2004 (WEA) 4 Balanced Subsets O(n3,5) det. 5 Monte Carlo O(n3) rand. Figueiredo, Fonseca, P. de Sá Algorithmica, 2005 6 Harmonic Series O(n3 log n) det. 7 Growing Cliques O(n3 log n) det. 8 Las Vegas O(n3) rand. 9 Quick Fill O(n3 log m/n) det. Bornstein, P. de Sá, Figueiredo IPL, 2006 10 Pair Completion O(m n log n) det. m = min {mM, mF} M = max {mM, mF} QUALIFYING O(M n2) O(m n)

slide-6
SLIDE 6

Randomized Monte Carlo algorithms

  • Give the correct answer with known probability p
  • Their time complexity is computed deterministically

One-sided error Monte Carlo algorithms

YES-biased Monte Carlo NO-biased Monte Carlo

  • Whenever the answer is YES,

the answer is correct for certain (a certificate is given)

Several independent runs ⇔ any desired error ratio

Defined analogously

slide-7
SLIDE 7

Bias vertices

Sandwich instance (HSSP input)

Let G1(V,E1), G2(V,E2) be an input instance for the HSSP. A vertex b ∈ V is said to be a bias vertex of set S ⊆ V \ { b } iff there exists at least one mandatory edge [b, x] ∈ E1 between b and some vertex x ∈ S and, also, at least

  • ne

forbidden edge [b, y] ∉ E2 between b and some vertex y ∈ S. The set B(S) containing all bias vertices of S is called its bias set.

Sandwich Homogeneous Sets Characterization

A set H ⊂ V is a sandwich homogeneous set of pair G1(V,E1), G2(V,E2) if and only if its bias set is the empty set.

slide-8
SLIDE 8

Bias Envelopment

x,y H1

slide-9
SLIDE 9

Bias Envelopment

x,y H1 H2 = H1 U B(H1)

slide-10
SLIDE 10

Bias Envelopment

x,y H1 H2 H3 = H2 U B(H2)

slide-11
SLIDE 11

Bias Envelopment

x,y H1 H2 H3 ... |Hq| = n

slide-12
SLIDE 12

Bias Envelopment

x,y H1 H2 H3 |Hq| = n

...

{x,y} is not contained in ANY sandwich homogeneous sets

  • f (G1,G2)

O(n2) time

slide-13
SLIDE 13

The Exhaustive Bias Envelopment algorithm (CERIOLI, EVERETT, FIGUEIREDO, KLEIN, 1998)

1. For each pair of vertices x, y ∈ V do 1.1. H ← { x, y } 1.2. While |H| < n do 1.2.1. Find the bias set T of H 1.2.2. If T = Ø then 1.2.1.1 Return YES. 1.2.3. H ← H U T

  • 2. Return NO.

Bias Envelopment

slide-14
SLIDE 14

Incomplete Bias Envelopment

x,y H1 H2 H3 |Hq| > k (k < n)

...

slide-15
SLIDE 15

Incomplete Bias Envelopment

x,y H1 H2 H3

...

|Hq| > k (k < n) {x,y} is not contained in ANY sandwich homogeneous sets

  • f (G1,G2) with k

vertices or less O(n.k) time

slide-16
SLIDE 16

The Monte Carlo HSSP algorithm

Let G1(V,E1), G2(V,E2) be an input instance for the HSSP. Suppose there is a sandwich homogeneous set H ⊂ V with h vertices or more. V (|V| = n)

H

|H| ≥ h

slide-17
SLIDE 17

The Monte Carlo HSSP algorithm

H

|H| ≥ h What is the probability p1 that a random pair of vertices {x,y} ⊂ V is NOT contained in H ? Hypothesis: V

slide-18
SLIDE 18

The Monte Carlo HSSP algorithm

H

|H| ≥ h What is the probability p1 that a random pair of vertices {x,y} ⊂ V is NOT contained in H ? Hypothesis: V

slide-19
SLIDE 19

The Monte Carlo HSSP algorithm

H

|H| ≥ h What is the probability p1 that a random pair of vertices {x,y} ⊂ V is NOT contained in H ? What is the probability pt that t random pairs of vertices fail to be contained in H ? Hypothesis: V

slide-20
SLIDE 20

The Monte Carlo HSSP algorithm

H

|H| ≥ h What is the probability p1 that a random pair of vertices {x,y} ⊂ V is NOT contained in H ? What is the probability pt that t random pairs of vertices fail to be contained in H ? Hypothesis: V

slide-21
SLIDE 21

The Monte Carlo HSSP algorithm

H

|H| ≥ h What is the probability p1 that a random pair of vertices {x,y} ⊂ V is NOT contained in H ? What is the probability pt that t random pairs of vertices fail to be contained in H ? Hypothesis: Now, what is the probability pt that, running t Bias Envelopment procedures (starting from t random pairs of vertices), a sandwich homogeneous set is successfully found? V

slide-22
SLIDE 22

The Monte Carlo HSSP algorithm

H

|H| ≥ h What is the probability p1 that a random pair of vertices {x,y} ⊂ V is NOT contained in H ? What is the probability pt that t random pairs of vertices fail to be contained in H ? Hypothesis: Now, what is the probability pt that, running t Bias Envelopment procedures (starting from t random pairs of vertices), a sandwich homogeneous set is successfully found? V

slide-23
SLIDE 23

The Monte Carlo HSSP algorithm

H

|H| ≥ h Hypothesis: V Fix pt ≥ p = 1 – ε Running the Bias Envelopment

  • n t random pairs suffices to find

a sandwich homogeneous set with probability at least p, in case there exists any with h(t) vertices or more.

slide-24
SLIDE 24

The Monte Carlo HSSP algorithm

But the algorithm is meant to find one, if there exists any, no matter its size. What is the number t’ of Bias Envelopment procedures (on random pairs) that grants this?

h(t’) = 2

slide-25
SLIDE 25

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n Number t of Bias Envelopment procedures undertaken on random pairs of vertices: Minimum integer h(t) such that t Bias Envelopment executions (on random pairs) suffice to find some sandwich homogeneous set, in case there exists any with h(t) vertices or more: we don’t know anything

slide-26
SLIDE 26

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n 1 we don’t know anything h(1) h(1) Number t of Bias Envelopment procedures undertaken on random pairs of vertices: Minimum integer h(t) such that t Bias Envelopment executions (on random pairs) suffice to find some sandwich homogeneous set, in case there exists any with h(t) vertices or more:

slide-27
SLIDE 27

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n 1 2 we don’t know anything h(1) h(2) h(1) h(2) Number t of Bias Envelopment procedures undertaken on random pairs of vertices: Minimum integer h(t) such that t Bias Envelopment executions (on random pairs) suffice to find some sandwich homogeneous set, in case there exists any with h(t) vertices or more:

slide-28
SLIDE 28

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n 1 2 ... we don’t know anything h(1) h(2) ... h(1) h(2)

... ...

Number t of Bias Envelopment procedures undertaken on random pairs of vertices: Minimum integer h(t) such that t Bias Envelopment executions (on random pairs) suffice to find some sandwich homogeneous set, in case there exists any with h(t) vertices or more:

slide-29
SLIDE 29

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n 1 2 ... t’ we don’t know anything h(1) h(2) ... h(t’) = 2 h(1) h(2)

... ...

h(t’) = 2 Number t of Bias Envelopment procedures undertaken on random pairs of vertices: Minimum integer h(t) such that t Bias Envelopment executions (on random pairs) suffice to find some sandwich homogeneous set, in case there exists any with h(t) vertices or more:

slide-30
SLIDE 30

The Monte Carlo HSSP algorithm

, given a fixed p = 1 – ε Determining t’ ...

slide-31
SLIDE 31

The Monte Carlo HSSP algorithm

, given a fixed p = 1 – ε Determining t’ ... But this leads to an O(n4) algorithm!!!!!!

slide-32
SLIDE 32

The Monte Carlo HSSP algorithm

, given a fixed p = 1 – ε Determining t’ ... But this leads to an O(n4) algorithm!!!!!! NO, IT DOESN’T.

slide-33
SLIDE 33

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n t = k

  • pick a random pair {xk,yk}
  • Bias Envelopment

h(1) xk,yk

...

H1 H2 |Hq| > h(k-1) h(k-1)

...

slide-34
SLIDE 34

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n t = k

  • pick a random pair {xk,yk}
  • Bias Envelopment

h(1) xk,yk

...

H1 H2 |Hq| > h(k-1) Two possibilities: (1) THERE IS a sandwich homogeneous set with more than h(k-1) vertices (2) THERE IS NO sandwich homogeneous set with more than h(k-1) vertices h(k-1)

...

slide-35
SLIDE 35

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n t = k

  • pick a random pair {xk,yk}
  • Bias Envelopment

h(1) xk,yk

...

H1 H2 |Hq| > h(k-1) h(k-1)

...

OK! Two possibilities: (1) THERE IS a sandwich homogeneous set with more than h(k-1) vertices (2) THERE IS NO sandwich homogeneous set with more than h(k-1) vertices

slide-36
SLIDE 36

The Monte Carlo HSSP algorithm

...

1 2 3 4 5 n-2 n-1 n t = k

  • pick a random pair {xk,yk}
  • Bias Envelopment

h(1) xk,yk

...

H1 H2 |Hq| > h(k-1) STOP! O[n . h(k-1)] h(k-1)

...

OK! Two possibilities: (1) THERE IS a sandwich homogeneous set with more than h(k-1) vertices (2) THERE IS NO sandwich homogeneous set with more than h(k-1) vertices

slide-37
SLIDE 37

The Monte Carlo HSSP algorithm

1. h ← n 3. t ← 0 4. While h > 2 do 3.1. t ← t + 1 3.2. (v1,v2) ← random pair of vertices 3.3. If Incomplete Bias Envelopment (v1,v2,h) = YES 3.3.1. Return YES. 3.4. h ←

  • 4. Return NO.
slide-38
SLIDE 38

The Monte Carlo HSSP algorithm

Analysis:

slide-39
SLIDE 39

The Monte Carlo HSSP algorithm

Analysis:

slide-40
SLIDE 40

Analysis:

The Monte Carlo HSSP algorithm

slide-41
SLIDE 41

The Monte Carlo HSSP algorithm

Analysis:

= O(n3)

slide-42
SLIDE 42

MUITO OBRIGADO. THANKS.