Testing Convexity Properties of Tree Colorings Eldar Fischer and - - PowerPoint PPT Presentation

testing convexity properties of tree colorings
SMART_READER_LITE
LIVE PREVIEW

Testing Convexity Properties of Tree Colorings Eldar Fischer and - - PowerPoint PPT Presentation

STACS 2007, RWTH Aachen University, Germany Testing Convexity Properties of Tree Colorings Eldar Fischer and Orly Yahalom Technion IIT, Haifa, Israel Convex colorings A tree coloring is convex convex convex convex if it induces


slide-1
SLIDE 1

Testing Convexity Properties

  • f Tree Colorings

Eldar Fischer and Orly Yahalom

STACS 2007, RWTH Aachen University, Germany

Technion – IIT, Haifa, Israel

slide-2
SLIDE 2

Convex colorings

A tree coloring is convex

convex convex convex if it induces connected color components.

slide-3
SLIDE 3

Application: Phylogenetic trees

A Phylogenetic tree describes the

genetic relations between species.

Colorings represent characters.

  • !"#
slide-4
SLIDE 4

Application: Phylogenetic trees

A Phylogenetic tree describes the

genetic relations between species.

Colorings represent characters. Normally, these colorings are

convex.

  • !"#
slide-5
SLIDE 5

Given a domain D of inputs, a distance function

and , two inputs are called -

  • close

close close close if .

Property testing – General setting

2

: [0,1] d D →

D f f ∈ ' ,

> ε

ε

( , ') d f f ε ≤

slide-6
SLIDE 6

Given a domain D of inputs, a distance function

and , two inputs are called -

  • close

close close close if .

Property testing – General setting

2

: [0,1] d D →

D f f ∈ ' ,

> ε

ε

( , ') d f f ε ≤

f ' f

slide-7
SLIDE 7

Given a domain D of inputs, a distance function

and , two inputs are called -

  • close

close close close if .

Given a property and

, an input is -

  • close

close close close to if there exists which is -close to . Otherwise, is -far from .

Property testing – General setting

D P ⊆

2

: [0,1] d D →

D f f ∈ ' ,

> ε

ε

( , ') d f f ε ≤

D f ∈

P f ∈ '

f f

f

> ε

P P

ε ε ε

' f

slide-8
SLIDE 8

If then accepts

with probability at least 2/3.

If is -far from , then rejects

with probability at least 2/3.

Property testers

An -

  • test

test test test for a property and is an algorithm such that for every input :

> ε

D f ∈

f

P f ∈

f f T

P T T ε P ε

slide-9
SLIDE 9

Property testing vs. classical decision problems:

Relaxed requirements Reading only part of the input

Property testing in practice

slide-10
SLIDE 10

Property testing vs. classical decision problems:

Relaxed requirements Reading only part of the input

Property testing is useful for large data sets. Property testers are randomized algorithms

which query query query query the input in some locations.

Normally, the query complexity

query complexity query complexity query complexity is considered more crucial than the computational complexity.

Property testing in practice

slide-11
SLIDE 11

Property testers (cont.)

A test is called 1

1 1 1-

  • sided

sided sided sided if it accepts every input satisfying the property with probability 1.

A test is called non

non non non-

  • adaptive

adaptive adaptive adaptive if the choice of which locations to query does not depend on the answers for previous queries.

slide-12
SLIDE 12

Our settings – Colored trees

The structure

structure structure structure of the tree is fully known and unchangeable.

The k

k k k-

  • coloring

coloring coloring coloring is unknown.

A query of a vertex u returns c(u).

( , ) T V E =

{ }

: 1 ,..., c V k →

slide-13
SLIDE 13

We are given a weight function

such that (distribution function).

The distance between two colorings

and is .

Options for :

Given in advance Distribution free testing

Distance in our model

( )

: 0,1 V

( ) 1

u V

u

Σ =

1

c

2

c

{ }

1 2

( ) | ( ) ( ) u c u c u

slide-14
SLIDE 14

Our main results

A distribution free test for convexity

  • n trees

A lower bound for convexity on trees Tests for variants of convexity

slide-15
SLIDE 15

Our main results

A distribution free test for convexity

  • n trees

A lower bound for convexity on trees Tests for variants of convexity The query complexity of our tests

depends only on k and ε - not on n.

All our tests are 1-sided.

slide-16
SLIDE 16

Theorem: Testing convexity on trees

For every there exists a 1-sided, non-adaptive, distribution free -test for convexity of tree colorings with:

Query complexity Computational complexity: ,

  • r with a preprocessing

stage of .

ε ( / ) O k

ε ɶ ( / ) O k

( ) O n

( ) O n

> ε ε

slide-17
SLIDE 17

Testing convexity – main idea

Forbidden subpath

Forbidden subpath Forbidden subpath Forbidden subpath: 3 vertices of alternating colors on a path

slide-18
SLIDE 18

Testing convexity – main idea

Forbidden subpath

Forbidden subpath Forbidden subpath Forbidden subpath: 3 vertices of alternating colors on a path

Convex coloring ⇔ no forbidden subpath

slide-19
SLIDE 19

Testing convexity – main idea

Forbidden subpath

Forbidden subpath Forbidden subpath Forbidden subpath: 3 vertices of alternating colors on a path

Convex coloring ⇔ no forbidden subpaths Detecting a forbidden subpath:

Sampling a forbidden subpath

slide-20
SLIDE 20

Testing convexity – main idea

Forbidden subpath

Forbidden subpath Forbidden subpath Forbidden subpath: 3 vertices of alternating colors on a path

Convex coloring ⇔ no forbidden subpaths Detecting a forbidden subpath:

Sampling a forbidden subpath Sampling two ends of conflicting subpaths

Critical vertex

slide-21
SLIDE 21

The convexity tester

Query O(k/ε) vertices

uniformly and independently according to .

Search the sample for

forbidden subpaths, either explicit or implicit (for a critical vertex).

slide-22
SLIDE 22

The convexity tester

Query O(k/ε) vertices

uniformly and independently according to .

Search the sample for

forbidden subpaths, either explicit or implicit (for a critical vertex).

slide-23
SLIDE 23

The convexity tester

Query O(k/ε) vertices

uniformly and independently according to .

Search the sample for

forbidden subpaths, either explicit or implicit (for a critical vertex).

Reject iff a forbidden subpath

was detected or inferred.

slide-24
SLIDE 24

Testing convexity - correctness

A convex coloring does not include a

forbidden subpath – always accepted.

The bulk of the proof is to show that a

coloring which is ε-far from convexity is rejected with probability ≥ 2/3.

slide-25
SLIDE 25

i i i i-

  • balanced vertices

balanced vertices balanced vertices balanced vertices

For a vertex u, u

u u u-

  • trees

trees trees trees are the connected components of V \{u}.

u

slide-26
SLIDE 26

i i i i-

  • balanced vertices

balanced vertices balanced vertices balanced vertices

For a vertex u, u

u u u-

  • trees

trees trees trees are the connected components of V \{u}.

For a color i, a vertex

u is i i i i-

  • balanced

balanced balanced balanced if the u-trees can be partitioned into two subsets, where each subset has i-vertices

  • f weight ≥ ε/8k.

u

slide-27
SLIDE 27

i i i i-

  • balanced vertices

balanced vertices balanced vertices balanced vertices

For a vertex u, u

u u u-

  • trees

trees trees trees are the connected components of V \{u}.

For a color i, a vertex

u is i i i i-

  • balanced

balanced balanced balanced if the u-trees can be partitioned into two subsets, where each subset has i-vertices

  • f weight ≥ ε/8k.

u

slide-28
SLIDE 28

A color i is abundant

abundant abundant abundant if the total weight

  • f i-vertices is at least .

A vertex u is heavy

heavy heavy heavy if .

More definitions

/ 2k ε

k u 8 / ) ( ε

slide-29
SLIDE 29

Lemma:

All the sets Bi are non-empty and connected.

The sets Bi

$% %&' '%

slide-30
SLIDE 30

Examples

slide-31
SLIDE 31

Examples

B1 B2

slide-32
SLIDE 32

Examples

B1 B2

slide-33
SLIDE 33

Examples

B1 B2 B1

slide-34
SLIDE 34

Examples

B1 B2 B1 B2

slide-35
SLIDE 35

Proposition:

If a coloring c is ε-far from being convex then the Bi’s are not disjoint.

slide-36
SLIDE 36

Assume that the Bi’s (at least 2) are disjoint.

Proof of the Proposition - sketch

B1 B2 B3

slide-37
SLIDE 37

Assume that the Bi’s (at least 2) are disjoint. Define a coloring c’ :

c’(u) = i where Bi is the closest to u (choosing the minimal i in case of a tie).

Proof of the Proposition - sketch

B1 B2 B3

slide-38
SLIDE 38

Assume that the Bi’s (at least 2) are disjoint. Define a coloring c’ :

c’(u) = i where Bi is the closest to u (choosing the minimal i in case of a tie).

Proof of the Proposition - sketch

B1 B2 B3

slide-39
SLIDE 39

Assume that the Bi’s (at least 2) are disjoint. Define a coloring c’ :

c’(u) = i where Bi is the closest to u (choosing the minimal i in case of a tie).

Proof of the Proposition - sketch

B1 B2 B3

slide-40
SLIDE 40

Assume that the Bi’s (at least 2) are disjoint. Define a coloring c’ :

c’(u) = i where Bi is the closest to u (choosing the minimal i in case of a tie).

Proof of the Proposition - sketch

B1 B2 B3

c’ is convex. c’ is ε-close to c.

slide-41
SLIDE 41

Assume that the Bi’s (at least 2) are disjoint. Define a coloring c’ :

c’(u) = i where Bi is the closest to u (choosing the minimal i in case of a tie).

Proof of the Proposition - sketch

B1 B2 B3

c’ is convex. c’ is ε-close to c. => c is ε-close to

being convex.

slide-42
SLIDE 42

Assuming that a coloring c is ε-far from being

convex, we need to show that c is rejected with probability ≥ 2/3.

By the proposition, there exist two colors

and a vertex such that .

Proof of the theorem

i j ≠

u

i j

u B B ∈ ∩

slide-43
SLIDE 43

Assuming that a coloring c is ε-far from being

convex, we need to show that c is rejected with probability ≥ 2/3.

By the proposition, there exist two colors

and a vertex such that .

Case 1: u is a heavy i-vertex, and j-balanced Case 2: u is both i-balanced and j-balanced

Proof of the theorem

i j ≠

u

i j

u B B ∈ ∩

slide-44
SLIDE 44

Proof of the theorem (cont.)

To reject c, it suffices to sample one vertex

  • f each balance class (or a heavy vertex).

This happens with probability ≥ 2/3.

Case 1

slide-45
SLIDE 45

Proof of the theorem (cont.)

To reject c, it suffices to sample one vertex

  • f each balance class (or a heavy vertex).

This happens with probability ≥ 2/3.

Case 1 Case 2

slide-46
SLIDE 46

(!!

Shown here:

A distribution free test for convexity on

trees with query complexity of

ε ( / ) O k

slide-47
SLIDE 47

(!!

Shown here:

A distribution free test for convexity on

trees with query complexity of Not shown here:

A lower bound of for the query

complexity (for unweighted paths)

ε ( / ) O k

( )

/ k ε

slide-48
SLIDE 48

(!!

Shown here:

A distribution free test for convexity on

trees with query complexity of Not shown here:

A lower bound of for the query

complexity (for unweighted paths)

Tests for variants of convexity:

Quasi-convexity Relaxed convexity properties

ε ( / ) O k

( )

/ k ε