competitive evaluation of threshold functions and game

134
Competitive Evaluation of Threshold Functions and Game Trees in the Priced Information Model Ferdinando Cicalese Martin Milaniˇ c University of Salerno Bielefeld University DIMACS-RUTCOR Workshop on Boolean and Pseudo-Boolean Functions In Memory of Peter L. Hammer January 19, 2009 Cicalese–Milani ˇ c Threshold Functions and Game Trees

Upload: others

Post on 24-Jan-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Competitive Evaluation of Threshold Functions and Game

Competitive Evaluation ofThreshold Functions and Game Trees

in the Priced Information Model

Ferdinando Cicalese Martin Milanic

University of Salerno Bielefeld University

DIMACS-RUTCOR Workshop on Boolean and Pseudo-Boolean FunctionsIn Memory of Peter L. Hammer

January 19, 2009

Cicalese–Milani c Threshold Functions and Game Trees

Page 2: Competitive Evaluation of Threshold Functions and Game

The function evaluation problem

Input:

a function f over the variables x1, . . . , xn

each variable has a positive cost of reading its value

an unknown assignment x1 = a1, . . . , xn = an

Goal:

Determine f (a1, . . . an)

adaptively reading the values of the variablesincurring little cost

Cicalese–Milani c Threshold Functions and Game Trees

Page 3: Competitive Evaluation of Threshold Functions and Game

The function evaluation problem

f = (x and y) or (x and z)

x , y , z: binary variables

for some inputs it is possible to evaluate f without readingall variables

Example:

(x , y , z) = (0, 1, 1)

It is enough to know the value of x

Cicalese–Milani c Threshold Functions and Game Trees

Page 4: Competitive Evaluation of Threshold Functions and Game

The function evaluation problem

f = (x and y) or (x and z)

x , y , z: binary variables

for some inputs it is possible to evaluate f without readingall variables

Example:

(x , y , z) = (0, 1, 1)

It is enough to know the value of x

Cicalese–Milani c Threshold Functions and Game Trees

Page 5: Competitive Evaluation of Threshold Functions and Game

Algorithms for evaluating f

• Dynamically select the next variable based on the values ofthe variables read so far

• Stop when the value of f is determined

y

z x

x

0 1

0 10

1010

10

10

f = (x and y) or (x and z)

Cicalese–Milani c Threshold Functions and Game Trees

Page 6: Competitive Evaluation of Threshold Functions and Game

Evaluation measure

Evasive Functions

• For any possible algorithm, all the variables must be readin the worst case.

• f = (x and y) or (x and z)

• Some important functions are evasive (e.g. game trees,AND/OR trees and threshold trees).

Worst case analysis cannot distinguish among theperformance of different algorithms.

Instead, we use competitive analysis (Charikar etal. 2002)

Cicalese–Milani c Threshold Functions and Game Trees

Page 7: Competitive Evaluation of Threshold Functions and Game

Evaluation measure

Evasive Functions

• For any possible algorithm, all the variables must be readin the worst case.

• f = (x and y) or (x and z)

• Some important functions are evasive (e.g. game trees,AND/OR trees and threshold trees).

Worst case analysis cannot distinguish among theperformance of different algorithms.

Instead, we use competitive analysis (Charikar etal. 2002)

Cicalese–Milani c Threshold Functions and Game Trees

Page 8: Competitive Evaluation of Threshold Functions and Game

Cost of evaluation

f = (x and y) or (x and z)cost(x) = 3, cost(y) = 4, cost(z) = 5

Asignment (x , y , z) Value of f Cheapest Proof Cost(0,0,0) 0 {x} 3(1,1,0) 1 {x,y} 3+4=7

Cicalese–Milani c Threshold Functions and Game Trees

Page 9: Competitive Evaluation of Threshold Functions and Game

The competitive ratio

(x, y , z) f (x, y , z) Cost of Algorithm Ratio

Cheapest Cost

Proof

(0,0,0) 0 3 9 3(1,0,0) 0 9 9 1(0,1,0) 0 3 7 7/3(0,0,1) 0 3 12 4(1,1,0) 1 7 7 1(1,0,1) 1 8 12 3/2(0,1,1) 0 3 7 7/3(1,1,1) 1 7 7 1

y

z x

x

0 1

0 10

1010

10

10

4

5

9

Cicalese–Milani c Threshold Functions and Game Trees

Page 10: Competitive Evaluation of Threshold Functions and Game

The competitive ratio

(x, y , z) f (x, y , z) Cost of Algorithm Ratio

Cheapest Cost

Proof

(0,0,0) 0 3 9 3(1,0,0) 0 9 9 1(0,1,0) 0 3 7 7/3(0,0,1) 0 3 12 4(1,1,0) 1 7 7 1(1,0,1) 1 8 12 3/2(0,1,1) 0 3 7 7/3(1,1,1) 1 7 7 1

y

z x

x

0 1

0 10

1010

10

10

4

3

7

Cicalese–Milani c Threshold Functions and Game Trees

Page 11: Competitive Evaluation of Threshold Functions and Game

The competitive ratio

(x, y , z) f (x, y , z) Cost of Algorithm Ratio

Cheapest Cost

Proof

(0,0,0) 0 3 9 3(1,0,0) 0 9 9 1(0,1,0) 0 3 7 7/3(0,0,1) 0 3 12 4(1,1,0) 1 7 7 1(1,0,1) 1 8 12 3/2(0,1,1) 0 3 7 7/3(1,1,1) 1 7 7 1

y

z x

x

0 1

0 10

1010

10

10

4

5

3

3

9 7

12

7

12

Cicalese–Milani c Threshold Functions and Game Trees

Page 12: Competitive Evaluation of Threshold Functions and Game

Measures of algorithm’s performance

Competitive ratio of algorithm A for (f , c):

maxall assignments σ

cost of A to evaluate f on σ

cost of cheapest proof of f on σ

In this talk:Extremal competitive ratio of A for f :

maxall assignments σ,all cost vectors c

cost of A to evaluate f on (σ, c)

cost of cheapest proof of f on (σ, c)

Cicalese–Milani c Threshold Functions and Game Trees

Page 13: Competitive Evaluation of Threshold Functions and Game

Measures of algorithm’s performance

Competitive ratio of algorithm A for (f , c):

maxall assignments σ

cost of A to evaluate f on σ

cost of cheapest proof of f on σ

In this talk:Extremal competitive ratio of A for f :

maxall assignments σ,all cost vectors c

cost of A to evaluate f on (σ, c)

cost of cheapest proof of f on (σ, c)

Cicalese–Milani c Threshold Functions and Game Trees

Page 14: Competitive Evaluation of Threshold Functions and Game

Measure of function’s complexity

Extremal competitive ratio of f :

minall deterministic algorithms A

that evaluate f

{

extremal competitive ratio of A for f}

Cicalese–Milani c Threshold Functions and Game Trees

Page 15: Competitive Evaluation of Threshold Functions and Game

The function evaluation problem

Given:a function f over the variables x1, x2, . . . , xn

Combinatorial Goal:

• Determine the extremal competitive ratio of f

Algorithmic Goal:• Devise an algorithm for evaluating f that:

1. achieves the optimal (or close to optimal) extremalcompetitive ratio

2. is efficient (runs in time polynomial in the size of f )

The algorithm knows the reading costs.

Cicalese–Milani c Threshold Functions and Game Trees

Page 16: Competitive Evaluation of Threshold Functions and Game

The function evaluation problem

Given:a function f over the variables x1, x2, . . . , xn

Combinatorial Goal:

• Determine the extremal competitive ratio of f

Algorithmic Goal:• Devise an algorithm for evaluating f that:

1. achieves the optimal (or close to optimal) extremalcompetitive ratio

2. is efficient (runs in time polynomial in the size of f )

The algorithm knows the reading costs.

Cicalese–Milani c Threshold Functions and Game Trees

Page 17: Competitive Evaluation of Threshold Functions and Game

Applications

Applications of the function evaluation problem:

Reliability testing / diagnosisTelecommunications: testing connectivity of networks

Manufacturing: testing machines before shipping

DatabasesQuery optimization

Artificial IntelligenceFinding optimal derivation strategies in knowledge-based systems

Decision-making strategies (AND-OR trees)

Computer-aided game playing for two-player zero-sum games with

perfect information, e.g. chess (game trees)

Cicalese–Milani c Threshold Functions and Game Trees

Page 18: Competitive Evaluation of Threshold Functions and Game

Related work - other models/measures

Non-uniform costs & competitive analysisCharikar et al. [STOC 2000, JCSS 2002]

Unknown costsCicalese and Laber [SODA 2006]

Restricted costs (selection and sorting)Gupta and Kumar [FOCS 2001], Kannan and Khanna [SODA 2003]

Randomized algorithmsSnir [TCS 1985], Saks and Wigderson [FOCS 1986], Laber [STACS 2004]

Stochastic modelsRandom input, uniform probabilities

Tarsi [JACM 1983], Boros and Unluyurt [AMAI 1999]Charikar et al. [STOC 2000, JCSS 2002], Greiner et al. [AI 2005]

Random input, arbitrary probabilitiesKaplan et al. [STOC 2005]

Random costsAngelov et al. [LATIN 2008]

Cicalese–Milani c Threshold Functions and Game Trees

Page 19: Competitive Evaluation of Threshold Functions and Game

How to evaluate general functions?

Good algorithms are expected to test. . .

• cheap variables

• important variables ???

We usea linear program that captures the impact of the variables

(C.-Laber 2008)

Cicalese–Milani c Threshold Functions and Game Trees

Page 20: Competitive Evaluation of Threshold Functions and Game

How to evaluate general functions?

Good algorithms are expected to test. . .

• cheap variables

• important variables ???

We usea linear program that captures the impact of the variables

(C.-Laber 2008)

Cicalese–Milani c Threshold Functions and Game Trees

Page 21: Competitive Evaluation of Threshold Functions and Game

The minimal proofs

f - a function over V = {x1, . . . , xn}

R - range of f

DefinitionLet r ∈ R. A minimal proof for f (x) = r is a minimal set ofvariables P ⊆ V such that there is an assignment σ of values tothe variables in P such that fσ is constantly equal to r .

Example: f (x1, x2, x3) = (x1 and x2) or (x1 and x3), R = {0, 1}

minimal proofs for f (x) = 1: {{x1, x2}, {x1, x3}}

minimal proofs for f (x) = 0: {{x1}, {x2, x3}}

Cicalese–Milani c Threshold Functions and Game Trees

Page 22: Competitive Evaluation of Threshold Functions and Game

The minimal proofs

f - a function over V = {x1, . . . , xn}

R - range of f

DefinitionLet r ∈ R. A minimal proof for f (x) = r is a minimal set ofvariables P ⊆ V such that there is an assignment σ of values tothe variables in P such that fσ is constantly equal to r .

Example: f (x1, x2, x3) = (x1 and x2) or (x1 and x3), R = {0, 1}

minimal proofs for f (x) = 1: {{x1, x2}, {x1, x3}}

minimal proofs for f (x) = 0: {{x1}, {x2, x3}}

Cicalese–Milani c Threshold Functions and Game Trees

Page 23: Competitive Evaluation of Threshold Functions and Game

The Linear Program (C.-Laber 2008)

LP(f )

Minimize∑

x∈V s(x)s.t.∑

x∈P s(x) ≥ 1 for every minimal proof P of fs(x) ≥ 0 for every x ∈ V

Intuitively, s(x) measures the impact of variable x .

The feasible solutions to the LP(f ) are precisely the fractionalhitting sets of the set of minimal proofs of f .

Cicalese–Milani c Threshold Functions and Game Trees

Page 24: Competitive Evaluation of Threshold Functions and Game

The Linear Program (C.-Laber 2008)

LP(f )

Minimize∑

x∈V s(x)s.t.∑

x∈P s(x) ≥ 1 for every minimal proof P of fs(x) ≥ 0 for every x ∈ V

Intuitively, s(x) measures the impact of variable x .

The feasible solutions to the LP(f ) are precisely the fractionalhitting sets of the set of minimal proofs of f .

Cicalese–Milani c Threshold Functions and Game Trees

Page 25: Competitive Evaluation of Threshold Functions and Game

LP(f ): example

f (x1, x2, x3) = (x1 and x2) or (x1 and x3)

minimal proofs for f = 1: {{x1, x2}, {x1, x3}}

minimal proofs for f = 0: {{x1}, {x2, x3}}

LP(f )

Minimize s1 + s2 + s3

s.t.s1 + s2 ≥ 1s1 + s3 ≥ 1

s1 ≥ 1s2 + s3 ≥ 1

s1, s2, s3 ≥ 0

Optimal solution: s = (1, 1/2, 1/2)

Cicalese–Milani c Threshold Functions and Game Trees

Page 26: Competitive Evaluation of Threshold Functions and Game

The Linear Programming Approach

LPA(f : function)

While the value of f is unknown

Select a feasible solution s() of LP(f )

Read the variable u which minimizes c(x)/s(x)(cost/impact)

c(x) = c(x)− s(x)c(u)/s(u)

f ← restriction of f after reading u

End While

Cicalese–Milani c Threshold Functions and Game Trees

Page 27: Competitive Evaluation of Threshold Functions and Game

The LPA bounds the extremal competitive ratio

The selection of solution s determines both the computationalefficiency and the performance (extremal competitive ratio) ofthe algorithm.

Key Lemma (C.-Laber 2008)

Let K be a positive number. If

ObjectiveFunctionValue(s) ≤ K ,

for every selected solution s

then

ExtremalCompetitiveRatio(f ) ≤ K .

Cicalese–Milani c Threshold Functions and Game Trees

Page 28: Competitive Evaluation of Threshold Functions and Game

Cross-intersecting families

A

B

• cross-intersecting: A ∈ A, B ∈ B ⇒ A ∩ B 6= ∅

Cicalese–Milani c Threshold Functions and Game Trees

Page 29: Competitive Evaluation of Threshold Functions and Game

Minimal proofs and cross-intersecting families

f : S1 × · · · × Sn → S, a function over V = {x1, . . . , xn}

R - range of f

For r ∈ R, let P(r) denote the set of minimal proofs forf (x) = r .

Then:

for every r 6= r ′, the families P(r) and P(r ′) arecross-intersecting

Cicalese–Milani c Threshold Functions and Game Trees

Page 30: Competitive Evaluation of Threshold Functions and Game

The Linear Program and cross-intersection

LP(f )

Minimize∑

x∈V s(x)s.t.∑

x∈P s(x) ≥ 1 for every P ∈ Ps(x) ≥ 0 for every x ∈ V

P = ∪r∈RP(r)

union of pairwise cross-intersecting families

For every function f : S1 × · · · × Sn → S, the LP(f ) seeks aminimal fractional hitting set of a union of pairwisecross-intersecting families.

Cicalese–Milani c Threshold Functions and Game Trees

Page 31: Competitive Evaluation of Threshold Functions and Game

Cross-intersecting lemma

Cross-Intersecting Lemma (C.-Laber 2008)

Let A and B be two non-empty cross-intersecting families ofsubsets of V .Then, there is a fractional hitting set s of A ∪ B such that

‖s‖1 =∑

x∈V

s(x) ≤ max{|P| : P ∈ A ∪ B} .

• geometric proof

• generalizes to any number of pairwise cross-intersectingfamilies

Cicalese–Milani c Threshold Functions and Game Trees

Page 32: Competitive Evaluation of Threshold Functions and Game

Applications of the cross-intersecting lemma

1 f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f )

(PROOF (f ) = size of the largest minimal proof of f )

2 Monotone Boolean functions:ExtremalCompetitiveRatio(f ) = PROOF (f )

3 Game trees: ExtremalCompetitiveRatio(f ) ≤ TBA

Cicalese–Milani c Threshold Functions and Game Trees

Page 33: Competitive Evaluation of Threshold Functions and Game

Applications of the cross-intersecting lemma

1 f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f )

(PROOF (f ) = size of the largest minimal proof of f )

2 Monotone Boolean functions:ExtremalCompetitiveRatio(f ) = PROOF (f )

3 Game trees: ExtremalCompetitiveRatio(f ) ≤ TBA

Cicalese–Milani c Threshold Functions and Game Trees

Page 34: Competitive Evaluation of Threshold Functions and Game

Applications of the cross-intersecting lemma

1 f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f )

(PROOF (f ) = size of the largest minimal proof of f )

2 Monotone Boolean functions:ExtremalCompetitiveRatio(f ) = PROOF (f )

3 Game trees: ExtremalCompetitiveRatio(f ) ≤ TBA

Cicalese–Milani c Threshold Functions and Game Trees

Page 35: Competitive Evaluation of Threshold Functions and Game

Game trees

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

game tree

Cicalese–Milani c Threshold Functions and Game Trees

Page 36: Competitive Evaluation of Threshold Functions and Game

Game trees

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

2

8 6

5 7 4 5

91

game tree

Cicalese–Milani c Threshold Functions and Game Trees

Page 37: Competitive Evaluation of Threshold Functions and Game

Game trees

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

2 8

8 6

5 7 4 59

91

game tree

Cicalese–Milani c Threshold Functions and Game Trees

Page 38: Competitive Evaluation of Threshold Functions and Game

Game trees

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN5 42

2 8

8 6

5 7 4 59

91

game tree

Cicalese–Milani c Threshold Functions and Game Trees

Page 39: Competitive Evaluation of Threshold Functions and Game

Game trees

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

5

5 42

2 8

8 6

5 7 4 59

91

game tree

Cicalese–Milani c Threshold Functions and Game Trees

Page 40: Competitive Evaluation of Threshold Functions and Game

Minterms of game trees

Minterm : minimal set A ⊆ V of variables such that

value of f ≥ value of A := min value of variables in A

Minterms can prove a lower bound for the value of f .

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

Cicalese–Milani c Threshold Functions and Game Trees

Page 41: Competitive Evaluation of Threshold Functions and Game

Minterms of game trees

Minterm : minimal set A ⊆ V of variables such that

value of f ≥ value of A := min value of variables in A

Minterms can prove a lower bound for the value of f .

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

Cicalese–Milani c Threshold Functions and Game Trees

Page 42: Competitive Evaluation of Threshold Functions and Game

Minterms of game trees

Minterm : minimal set A ⊆ V of variables such that

value of f ≥ value of A := min value of variables in A

Minterms can prove a lower bound for the value of f .

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

Cicalese–Milani c Threshold Functions and Game Trees

Page 43: Competitive Evaluation of Threshold Functions and Game

Maxterms of game trees

Maxterm : minimal set B ⊆ V of variables such that

value of f ≤ value of B := max value of variables in B

Maxterms can prove an upper bound for the value of f .

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

Cicalese–Milani c Threshold Functions and Game Trees

Page 44: Competitive Evaluation of Threshold Functions and Game

Maxterms of game trees

Maxterm : minimal set B ⊆ V of variables such that

value of f ≤ value of B := max value of variables in B

Maxterms can prove an upper bound for the value of f .

x3

x1 x5x4

x2

x9

x8

x6

x7

MIN MIN

MAX

MAX

MAX

MIN

Cicalese–Milani c Threshold Functions and Game Trees

Page 45: Competitive Evaluation of Threshold Functions and Game

Lower bound for the extremal competitive ratio

• k(f ) = max{|A| : A minterm of f}

• l(f ) = max{|B| : B maxterm of f}

Theorem (Cicalese-Laber 2005)

Let f be a game tree with no minterms or maxterms of size 1.Then,

ExtremalCompetitiveRatio(f ) ≥ max{k(f ), l(f )} .

Cicalese–Milani c Threshold Functions and Game Trees

Page 46: Competitive Evaluation of Threshold Functions and Game

Minimal proofs of game trees

To prove that the value of f is b, we need:

• a minterm of value b [proves f ≥ b]

• a maxterm of value b [proves f ≤ b]

Every minimal proof = union of a minterm and a maxterm

A - minterm

B - maxterm

x9

x4

x1

x7 x6

Cicalese–Milani c Threshold Functions and Game Trees

Page 47: Competitive Evaluation of Threshold Functions and Game

A first upper bound

It follows that

PROOF (f ) = size of the largest minimal proof of f= k(f ) + l(f )− 1.

Theorem (Cicalese-Laber 2008)

f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f )

For a game tree f ,ExtremalCompetitiveRatio(f ) ≤ k(f ) + l(f )− 1.

Lower bound: max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 48: Competitive Evaluation of Threshold Functions and Game

A first upper bound

It follows that

PROOF (f ) = size of the largest minimal proof of f= k(f ) + l(f )− 1.

Theorem (Cicalese-Laber 2008)

f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f )

For a game tree f ,ExtremalCompetitiveRatio(f ) ≤ k(f ) + l(f )− 1.

Lower bound: max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 49: Competitive Evaluation of Threshold Functions and Game

A first upper bound

It follows that

PROOF (f ) = size of the largest minimal proof of f= k(f ) + l(f )− 1.

Theorem (Cicalese-Laber 2008)

f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f )

For a game tree f ,ExtremalCompetitiveRatio(f ) ≤ k(f ) + l(f )− 1.

Lower bound: max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 50: Competitive Evaluation of Threshold Functions and Game

Can we close the gap?

Yes:

Claim

For every restriction f ′ of f , there is a fractional hitting set s ofthe set of minimal proofs of f ′ such that

‖s‖1 ≤ max{k(f ), l(f )} .

By the Key Lemma ,

ExtremalCompetitiveRatio(f ) ≤ max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 51: Competitive Evaluation of Threshold Functions and Game

Can we close the gap?

Yes:

Claim

For every restriction f ′ of f , there is a fractional hitting set s ofthe set of minimal proofs of f ′ such that

‖s‖1 ≤ max{k(f ), l(f )} .

By the Key Lemma ,

ExtremalCompetitiveRatio(f ) ≤ max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 52: Competitive Evaluation of Threshold Functions and Game

Restrictions of game trees

x3

7 x5

6

x9

x8

15

x7

MIN MIN

MAX

MAX

MAX

MIN

3

restriction of f

f ′(x3, x5, x7, x8, x9)

Cicalese–Milani c Threshold Functions and Game Trees

Page 53: Competitive Evaluation of Threshold Functions and Game

Restrictions of game trees

x3

7 x5

6

x9

x8

15

x7

MIN MIN

MAX

MAX

MAX

MIN

3

f (x3, x5, x7, x8, x9) ≥ 6

Cicalese–Milani c Threshold Functions and Game Trees

Page 54: Competitive Evaluation of Threshold Functions and Game

Restrictions of game trees

x3

7 x5

6

x9

x8

15

x7

MIN MIN

MAX

MAX

MAX

MIN

3

f (x3, x5, x7, x8, x9) ≤ 15

Cicalese–Milani c Threshold Functions and Game Trees

Page 55: Competitive Evaluation of Threshold Functions and Game

Restrictions of game trees

x3

7 x5

6

x9

x8

15

x7

MIN MIN

MAX

MAX

MAX

MIN

3

f (x3, x5, x7, x8, x9) ∈ [6, 15] = [LB, UB]

Cicalese–Milani c Threshold Functions and Game Trees

Page 56: Competitive Evaluation of Threshold Functions and Game

Minimal proofs of a restriction of a game tree

minterm

maxterm

15

7

3

x7 x9

minterm

maxterm

x7 x9

x8

3

7

15

maxterm proofs minterm proofs

combined proofs

b = LB b = UB

minterm

maxterm

7

x9

x3

33

minterm

maxterm

6 7

x3

x9

3

LB ≤ b ≤ UB

Cicalese–Milani c Threshold Functions and Game Trees

Page 57: Competitive Evaluation of Threshold Functions and Game

Case 1: No maxterm has been fully evaluated yet

minterm

maxterm

15

7

3

x7 x9

minterm

maxterm

x7 x9

x8

3

7

15

maxterm proofs minterm proofs

combined proofs

minterm

maxterm

7

x9

x3

33

minterm

maxterm

6 7

x3

x9

3

Cicalese–Milani c Threshold Functions and Game Trees

Page 58: Competitive Evaluation of Threshold Functions and Game

Case 1: No maxterm has been fully evaluated yet

minterm

maxterm

15

7

3

x7 x9

minterm

maxterm

x7 x9

x8

3

7

15

maxterm proofs minterm proofs

combined proofs

x7 x9

x8

3

7

15

minterm

maxterm

7

x9

x3

33

minterm

maxterm

6 7

3

x7

x8

x7

x8

x7

x8

x3

x9

x7

x8

x7

x8

Let s be (the characteristic vector of) a minimal hitting set ofthe shaded sets .

‖s‖1 ≤ k(f ) ≤ max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 59: Competitive Evaluation of Threshold Functions and Game

Case 2: There is a fully evaluated maxterm

minterm

maxterm

15

7

3

x7 x9

minterm

maxterm

x7 x9

x8

3

7

15

maxterm proofs minterm proofs

combined proofs

minterm

maxterm

7

x9

x3

33

minterm

maxterm

6 7

x3

x9

3

Cicalese–Milani c Threshold Functions and Game Trees

Page 60: Competitive Evaluation of Threshold Functions and Game

Case 2: There is a fully evaluated maxterm

minterm

maxterm

x7 x9

x8

3

7

15

maxterm proofs minterm proofs

combined proofs

x7 x9

x8

3

7

15

minterm

maxterm

7

x9

minterm

maxterm

15

7

3

x7 x9

x3

33

minterm

maxterm

6 7

3

x7

x8

x3

x9

x7

x8

x7

x8

R: the family of the minterm proofs

B: the family of the maxterm parts of the non-minterm proofs

Cicalese–Milani c Threshold Functions and Game Trees

Page 61: Competitive Evaluation of Threshold Functions and Game

Case 2: There is a fully evaluated maxterm

R and B are non-empty sets

R and B are cross-intersecting

every minimal proof contains a member of R ∪ B

By the Cross-intersecting lemma , there exists a feasiblesolution s to the LP(f′) such that

‖s‖1 ≤ max{|P| : P ∈ R ∪ B} ≤ max{k(f ), l(f )} .

Cicalese–Milani c Threshold Functions and Game Trees

Page 62: Competitive Evaluation of Threshold Functions and Game

Case 2: There is a fully evaluated maxterm

R and B are non-empty sets

R and B are cross-intersecting

every minimal proof contains a member of R ∪ B

By the Cross-intersecting lemma , there exists a feasiblesolution s to the LP(f′) such that

‖s‖1 ≤ max{|P| : P ∈ R ∪ B} ≤ max{k(f ), l(f )} .

Cicalese–Milani c Threshold Functions and Game Trees

Page 63: Competitive Evaluation of Threshold Functions and Game

The extremal competitive ratio for game trees

TheoremLet f be a game tree with no minterms or maxterms of size 1.Then,

ExtremalCompetitiveRatio(f ) = max{k(f ), l(f )} .

Cicalese–Milani c Threshold Functions and Game Trees

Page 64: Competitive Evaluation of Threshold Functions and Game

Value dependent costs

Suppose that the cost of reading a variable can depend onthe variable’s value:

c(x) =

{

50, if x = 0;1000, if x = 1.

TheoremLet f be a monotone Boolean function or a game tree. Then,

ExtremalCompetitiveRatio(f , r) = r · ECR(f )− r + 1 ,

where

r = maxx∈V

cmax (x)

cmin(x).

Cicalese–Milani c Threshold Functions and Game Trees

Page 65: Competitive Evaluation of Threshold Functions and Game

Value dependent costs

Suppose that the cost of reading a variable can depend onthe variable’s value:

c(x) =

{

50, if x = 0;1000, if x = 1.

TheoremLet f be a monotone Boolean function or a game tree. Then,

ExtremalCompetitiveRatio(f , r) = r · ECR(f )− r + 1 ,

where

r = maxx∈V

cmax (x)

cmin(x).

Cicalese–Milani c Threshold Functions and Game Trees

Page 66: Competitive Evaluation of Threshold Functions and Game

LPA has a very broad applicability

LPA does not depend on the structure of f

It can be used to derive upper bounds on the extremalcompetitive ratios of very different functions :

f = minimum of a list:ExtremalCompetitiveRatio(f ) ≤ n − 1 [Cicalese-Laber 2005]

f = the sorting function: ExtremalCompetitiveRatio(f ) ≤ n − 1[Cicalese-Laber 2008]

f : S1 × · · · × Sn → S, nonconstant:ExtremalCompetitiveRatio(f ) ≤ PROOF (f ) [Cicalese-Laber 2008]

f = monotone Boolean function:ExtremalCompetitiveRatio(f ) = PROOF (f ) [Cicalese-Laber 2008]

f = game tree: ExtremalCompetitiveRatio(f ) ≤ max{k(f ), l(f )}

Cicalese–Milani c Threshold Functions and Game Trees

Page 67: Competitive Evaluation of Threshold Functions and Game

Summary

We have seen:

the Linear Programming Approach for the development ofcompetitive algorithms for the function evaluation problem,

the extremal competitive ratio for game trees ,

the more general model of value dependent costs.

Cicalese–Milani c Threshold Functions and Game Trees

Page 68: Competitive Evaluation of Threshold Functions and Game

Part II

Threshold functionsand

Extended threshold tree functions

Cicalese–Milani c Threshold Functions and Game Trees

Page 69: Competitive Evaluation of Threshold Functions and Game

Algorithmic issues: the state of the art

Are there efficient algorithms with optimal competitiveness?

game trees: there is a polynomial-time algorithm

monotone Boolean functions ??? OPEN QUESTIONsubclasses of monotone Boolean functions:

AND/OR trees = game trees with 0-1 values[Charikar et al. 2002]threshold tree functions [Cicalese-Laber 2005]

This talk:threshold functions (a quadratic algorithm )extended threshold tree functions(a pseudo-polynomial algorithm )

Cicalese–Milani c Threshold Functions and Game Trees

Page 70: Competitive Evaluation of Threshold Functions and Game

Algorithmic issues: the state of the art

Are there efficient algorithms with optimal competitiveness?

game trees: there is a polynomial-time algorithm

monotone Boolean functions ??? OPEN QUESTIONsubclasses of monotone Boolean functions:

AND/OR trees = game trees with 0-1 values[Charikar et al. 2002]threshold tree functions [Cicalese-Laber 2005]

This talk:threshold functions (a quadratic algorithm )extended threshold tree functions(a pseudo-polynomial algorithm )

Cicalese–Milani c Threshold Functions and Game Trees

Page 71: Competitive Evaluation of Threshold Functions and Game

Algorithmic issues: the state of the art

Are there efficient algorithms with optimal competitiveness?

game trees: there is a polynomial-time algorithm

monotone Boolean functions ??? OPEN QUESTIONsubclasses of monotone Boolean functions:

AND/OR trees = game trees with 0-1 values[Charikar et al. 2002]threshold tree functions [Cicalese-Laber 2005]

This talk:threshold functions (a quadratic algorithm )extended threshold tree functions(a pseudo-polynomial algorithm )

Cicalese–Milani c Threshold Functions and Game Trees

Page 72: Competitive Evaluation of Threshold Functions and Game

Algorithmic issues: the state of the art

Are there efficient algorithms with optimal competitiveness?

game trees: there is a polynomial-time algorithm

monotone Boolean functions ??? OPEN QUESTIONsubclasses of monotone Boolean functions:

AND/OR trees = game trees with 0-1 values[Charikar et al. 2002]threshold tree functions [Cicalese-Laber 2005]

This talk:threshold functions (a quadratic algorithm )extended threshold tree functions(a pseudo-polynomial algorithm )

Cicalese–Milani c Threshold Functions and Game Trees

Page 73: Competitive Evaluation of Threshold Functions and Game

Algorithmic issues: the state of the art

Are there efficient algorithms with optimal competitiveness?

game trees: there is a polynomial-time algorithm

monotone Boolean functions ??? OPEN QUESTIONsubclasses of monotone Boolean functions:

AND/OR trees = game trees with 0-1 values[Charikar et al. 2002]threshold tree functions [Cicalese-Laber 2005]

This talk:threshold functions (a quadratic algorithm )extended threshold tree functions(a pseudo-polynomial algorithm )

Cicalese–Milani c Threshold Functions and Game Trees

Page 74: Competitive Evaluation of Threshold Functions and Game

Algorithmic issues: the state of the art

Are there efficient algorithms with optimal competitiveness?

game trees: there is a polynomial-time algorithm

monotone Boolean functions ??? OPEN QUESTIONsubclasses of monotone Boolean functions:

AND/OR trees = game trees with 0-1 values[Charikar et al. 2002]threshold tree functions [Cicalese-Laber 2005]

This talk:threshold functions (a quadratic algorithm )extended threshold tree functions(a pseudo-polynomial algorithm )

Cicalese–Milani c Threshold Functions and Game Trees

Page 75: Competitive Evaluation of Threshold Functions and Game

Threshold Functions

f : {0, 1}n → {0, 1} is a threshold function if ∃w1, . . . , wn, tintegers s.t.

f (x1, . . . , xn) =

{

1 if∑

i xiwi ≥ t0 otherwise

Separating structure

(w1, . . . , wn; t) is a separating structure of f

We assume that 1 ≤ wi ≤ t for all i .

Cicalese–Milani c Threshold Functions and Game Trees

Page 76: Competitive Evaluation of Threshold Functions and Game

Threshold Functions

f : {0, 1}n → {0, 1} is a threshold function if ∃w1, . . . , wn, tintegers s.t.

f (x1, . . . , xn) =

{

1 if∑

i xiwi ≥ t0 otherwise

Separating structure

(w1, . . . , wn; t) is a separating structure of f

We assume that 1 ≤ wi ≤ t for all i .

Cicalese–Milani c Threshold Functions and Game Trees

Page 77: Competitive Evaluation of Threshold Functions and Game

Applications

Switching networks

Automatic diagnosis

Mutually exclusive mechanisms

Decision-making strategies

Neural networks

Weighted majority games

Cicalese–Milani c Threshold Functions and Game Trees

Page 78: Competitive Evaluation of Threshold Functions and Game

Outline

Separating structures for f and feasible solutions for LP(f )Quadratic γ(f )-competitive algo for threshold functions

γ(f ) = extremal competitive ratio of f

The range of separating structures of f

Extended threshold tree functionsPseudo-polytime γ(f )-competitive algo for extendedthreshold tree functionsThe HLPf for studying function evaluation

Cicalese–Milani c Threshold Functions and Game Trees

Page 79: Competitive Evaluation of Threshold Functions and Game

Outline

Separating structures for f and feasible solutions for LP(f )Quadratic γ(f )-competitive algo for threshold functions

γ(f ) = extremal competitive ratio of f

The range of separating structures of f

Extended threshold tree functionsPseudo-polytime γ(f )-competitive algo for extendedthreshold tree functionsThe HLPf for studying function evaluation

Cicalese–Milani c Threshold Functions and Game Trees

Page 80: Competitive Evaluation of Threshold Functions and Game

Outline

Separating structures for f and feasible solutions for LP(f )Quadratic γ(f )-competitive algo for threshold functions

γ(f ) = extremal competitive ratio of f

The range of separating structures of f

Extended threshold tree functionsPseudo-polytime γ(f )-competitive algo for extendedthreshold tree functionsThe HLPf for studying function evaluation

Cicalese–Milani c Threshold Functions and Game Trees

Page 81: Competitive Evaluation of Threshold Functions and Game

Outline

Separating structures for f and feasible solutions for LP(f )Quadratic γ(f )-competitive algo for threshold functions

γ(f ) = extremal competitive ratio of f

The range of separating structures of f

Extended threshold tree functionsPseudo-polytime γ(f )-competitive algo for extendedthreshold tree functionsThe HLPf for studying function evaluation

Cicalese–Milani c Threshold Functions and Game Trees

Page 82: Competitive Evaluation of Threshold Functions and Game

Certificates of a threshold function

f threshold function with separating structure (w1, . . . , wn; t).

X is a minterm (prime implicant) of f∑

X

wi ≥ t and∑

X\{j}

wi < t for every j ∈ X

X is a maxterm (prime implicate) of f∑

V\X

wi < t and∑

V\X∪{j}

wi ≥ t for every j ∈ X

Technical assumption

t ≤ 12(

i wi + 1), i.e., f is dual majorthen every maxterm contains a minterm

Cicalese–Milani c Threshold Functions and Game Trees

Page 83: Competitive Evaluation of Threshold Functions and Game

Certificates of a threshold function

f threshold function with separating structure (w1, . . . , wn; t).

X is a minterm (prime implicant) of f∑

X

wi ≥ t and∑

X\{j}

wi < t for every j ∈ X

X is a maxterm (prime implicate) of f∑

V\X

wi < t and∑

V\X∪{j}

wi ≥ t for every j ∈ X

Technical assumption

t ≤ 12(

i wi + 1), i.e., f is dual majorthen every maxterm contains a minterm

Cicalese–Milani c Threshold Functions and Game Trees

Page 84: Competitive Evaluation of Threshold Functions and Game

Certificates of a threshold function

f threshold function with separating structure (w1, . . . , wn; t).

X is a minterm (prime implicant) of f∑

X

wi ≥ t and∑

X\{j}

wi < t for every j ∈ X

X is a maxterm (prime implicate) of f∑

V\X

wi < t and∑

V\X∪{j}

wi ≥ t for every j ∈ X

Technical assumption

t ≤ 12(

i wi + 1), i.e., f is dual majorthen every maxterm contains a minterm

Cicalese–Milani c Threshold Functions and Game Trees

Page 85: Competitive Evaluation of Threshold Functions and Game

Certificates of a threshold function

f threshold function with separating structure (w1, . . . , wn; t).

X is a minterm (prime implicant) of f∑

X

wi ≥ t and∑

X\{j}

wi < t for every j ∈ X

X is a maxterm (prime implicate) of f∑

V\X

wi < t and∑

V\X∪{j}

wi ≥ t for every j ∈ X

Technical assumption

t ≤ 12(

i wi + 1), i.e., f is dual majorthen every maxterm contains a minterm

Cicalese–Milani c Threshold Functions and Game Trees

Page 86: Competitive Evaluation of Threshold Functions and Game

Certificates of a threshold function

f threshold function with separating structure (w1, . . . , wn; t).

X is a minterm (prime implicant) of f∑

X

wi ≥ t and∑

X\{j}

wi < t for every j ∈ X

X is a maxterm (prime implicate) of f∑

V\X

wi < t and∑

V\X∪{j}

wi ≥ t for every j ∈ X

Technical assumption

t ≤ 12(

i wi + 1), i.e., f is dual majorthen every maxterm contains a minterm

Cicalese–Milani c Threshold Functions and Game Trees

Page 87: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

LemmaEvery separating structure (w1, . . . , wn; t) for f induces afeasible solution s = (s(x1), . . . , s(xn)) for LP(f ).

s(xi ) = wi/t

X is a minterm of f∑

i∈X

s(xi ) =∑

i∈X

wi

t≥ 1.

Y is a maxterm of f

∃X ⊆ Y s.t. X is a minterm ⇒∑

i∈Y

s(xi) ≥∑

i∈X

s(xi ) ≥ 1.

Cicalese–Milani c Threshold Functions and Game Trees

Page 88: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

LemmaEvery separating structure (w1, . . . , wn; t) for f induces afeasible solution s = (s(x1), . . . , s(xn)) for LP(f ).

s(xi ) = wi/t

X is a minterm of f∑

i∈X

s(xi ) =∑

i∈X

wi

t≥ 1.

Y is a maxterm of f

∃X ⊆ Y s.t. X is a minterm ⇒∑

i∈Y

s(xi) ≥∑

i∈X

s(xi ) ≥ 1.

Cicalese–Milani c Threshold Functions and Game Trees

Page 89: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

LemmaEvery separating structure (w1, . . . , wn; t) for f induces afeasible solution s = (s(x1), . . . , s(xn)) for LP(f ).

s(xi ) = wi/t

X is a minterm of f∑

i∈X

s(xi ) =∑

i∈X

wi

t≥ 1.

Y is a maxterm of f

∃X ⊆ Y s.t. X is a minterm ⇒∑

i∈Y

s(xi) ≥∑

i∈X

s(xi ) ≥ 1.

Cicalese–Milani c Threshold Functions and Game Trees

Page 90: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

LemmaEvery separating structure (w1, . . . , wn; t) for f induces afeasible solution s for LP(f ) s.t.

‖s‖1 = val(w; t) = 1/t∑

wi .

How bad can the best separating structure be for the purposeof the LPA?

Cicalese–Milani c Threshold Functions and Game Trees

Page 91: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

LemmaEvery separating structure (w1, . . . , wn; t) for f induces afeasible solution s for LP(f ) s.t.

‖s‖1 = val(w; t) = 1/t∑

wi .

How bad can the best separating structure be for the purposeof the LPA?

Cicalese–Milani c Threshold Functions and Game Trees

Page 92: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.val(w; t) =

wi/t ≤ max{k(f ), l(f )}.

induces an optimal implementation of the LPA

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{ ∑

wi/t∑

w ′i /t ′

,

w ′i /t ′

wi/t

}

≤ 2

Cicalese–Milani c Threshold Functions and Game Trees

Page 93: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.val(w; t) =

wi/t ≤ max{k(f ), l(f )}.

induces an optimal implementation of the LPA

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{ ∑

wi/t∑

w ′i /t ′

,

w ′i /t ′

wi/t

}

≤ 2

Cicalese–Milani c Threshold Functions and Game Trees

Page 94: Competitive Evaluation of Threshold Functions and Game

Separating Structure and LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.val(w; t) =

wi/t ≤ max{k(f ), l(f )}.

induces an optimal implementation of the LPA

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{ ∑

wi/t∑

w ′i /t ′

,

w ′i /t ′

wi/t

}

≤ 2

Cicalese–Milani c Threshold Functions and Game Trees

Page 95: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )}

Every maxterm has size l(f ) ≥ k(f )if not

V wi =∑

P wi +∑

V\P wi ≤ (l(f )− 1)t + t ≤ l(f )t(contradiction)

Every pair of maxterms P1, P2 satisfies |P1 ∩ P2| = l(f )− 1if not

V wi ≤∑

P1∩P2wi +

V\P1wi +

V\P2wi ≤

(l(f )− 2)t + 2t = l(f )t(contradiction)

Fix a maxterm P. Then ∀P ′ (maxterm) P ′ = P \ {x} ∪ {y}for some x ∈ P, y 6∈ P.

Cicalese–Milani c Threshold Functions and Game Trees

Page 96: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )}

Every maxterm has size l(f ) ≥ k(f )if not

V wi =∑

P wi +∑

V\P wi ≤ (l(f )− 1)t + t ≤ l(f )t(contradiction)

Every pair of maxterms P1, P2 satisfies |P1 ∩ P2| = l(f )− 1if not

V wi ≤∑

P1∩P2wi +

V\P1wi +

V\P2wi ≤

(l(f )− 2)t + 2t = l(f )t(contradiction)

Fix a maxterm P. Then ∀P ′ (maxterm) P ′ = P \ {x} ∪ {y}for some x ∈ P, y 6∈ P.

Cicalese–Milani c Threshold Functions and Game Trees

Page 97: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )}

Every maxterm has size l(f ) ≥ k(f )if not

V wi =∑

P wi +∑

V\P wi ≤ (l(f )− 1)t + t ≤ l(f )t(contradiction)

Every pair of maxterms P1, P2 satisfies |P1 ∩ P2| = l(f )− 1if not

V wi ≤∑

P1∩P2wi +

V\P1wi +

V\P2wi ≤

(l(f )− 2)t + 2t = l(f )t(contradiction)

Fix a maxterm P. Then ∀P ′ (maxterm) P ′ = P \ {x} ∪ {y}for some x ∈ P, y 6∈ P.

Cicalese–Milani c Threshold Functions and Game Trees

Page 98: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )}

Every maxterm has size l(f ) ≥ k(f )if not

V wi =∑

P wi +∑

V\P wi ≤ (l(f )− 1)t + t ≤ l(f )t(contradiction)

Every pair of maxterms P1, P2 satisfies |P1 ∩ P2| = l(f )− 1if not

V wi ≤∑

P1∩P2wi +

V\P1wi +

V\P2wi ≤

(l(f )− 2)t + 2t = l(f )t(contradiction)

Fix a maxterm P. Then ∀P ′ (maxterm) P ′ = P \ {x} ∪ {y}for some x ∈ P, y 6∈ P.

Cicalese–Milani c Threshold Functions and Game Trees

Page 99: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )}

Every maxterm has size l(f ) ≥ k(f )if not

V wi =∑

P wi +∑

V\P wi ≤ (l(f )− 1)t + t ≤ l(f )t(contradiction)

Every pair of maxterms P1, P2 satisfies |P1 ∩ P2| = l(f )− 1if not

V wi ≤∑

P1∩P2wi +

V\P1wi +

V\P2wi ≤

(l(f )− 2)t + 2t = l(f )t(contradiction)

Fix a maxterm P. Then ∀P ′ (maxterm) P ′ = P \ {x} ∪ {y}for some x ∈ P, y 6∈ P.

Cicalese–Milani c Threshold Functions and Game Trees

Page 100: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )

Every maxterm has size l(f ) ≥ k(f )

Every two maxterms P1, P2 satisfy |P1 ∩ P2| = l(f )− 1

Fix a maxterm P. Then ∀P ′ (maxterm) P ′ = P \ {x} ∪ {y}

for some x ∈ P, y 6∈ P.

x

y

z

u

P

Cicalese–Milani c Threshold Functions and Game Trees

Page 101: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Let f : (w; t) and suppose that∑

wi/t > max{k(f ), l(f )

Every maxterm has size l(f ) ≥ k(f )

Every maxterms P1, P2 satisfy |P1 ∩ P2| = l(f )− 1

Fix a maxterm P. There are two possible cases:

x

y1

z

u

P

y2

y2 � y1

z

u

P

x

y1

z

u

P

y2

Cicalese–Milani c Threshold Functions and Game Trees

Page 102: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Fix a maxterm P, we have two cases

1. One variable of P is substitutable

x

y1

z

u

P

y2

y2

Cicalese–Milani c Threshold Functions and Game Trees

Page 103: Competitive Evaluation of Threshold Functions and Game

Separating Structure optimal for the LP (f )

TheoremFor any thr. func. f , there exists sep. str. (w; t) s.t.∑

wi/t ≤ max{k(f ), l(f )}.

Fix a maxterm P, we have two cases

Case 2: Only one variable outside P

x

y1

z

u

P

Cicalese–Milani c Threshold Functions and Game Trees

Page 104: Competitive Evaluation of Threshold Functions and Game

Linear algorithm for the opt. Separating Structure

f : given by (w; t)

Verify if f belongs to one of the two above cases(can be done in linear time).

If so: construct an explicit sep. str. (w′; t ′)

If not: the given sep. str. (w; t) is optimal for LP(f ).

Combined with the LPA framework:quadratic γ(f )-competitive algorithm for threshold functions

Cicalese–Milani c Threshold Functions and Game Trees

Page 105: Competitive Evaluation of Threshold Functions and Game

Linear algorithm for the opt. Separating Structure

f : given by (w; t)

Verify if f belongs to one of the two above cases(can be done in linear time).

If so: construct an explicit sep. str. (w′; t ′)

If not: the given sep. str. (w; t) is optimal for LP(f ).

Combined with the LPA framework:quadratic γ(f )-competitive algorithm for threshold functions

Cicalese–Milani c Threshold Functions and Game Trees

Page 106: Competitive Evaluation of Threshold Functions and Game

Linear algorithm for the opt. Separating Structure

f : given by (w; t)

Verify if f belongs to one of the two above cases(can be done in linear time).

If so: construct an explicit sep. str. (w′; t ′)

If not: the given sep. str. (w; t) is optimal for LP(f ).

Combined with the LPA framework:quadratic γ(f )-competitive algorithm for threshold functions

Cicalese–Milani c Threshold Functions and Game Trees

Page 107: Competitive Evaluation of Threshold Functions and Game

Linear algorithm for the opt. Separating Structure

f : given by (w; t)

Verify if f belongs to one of the two above cases(can be done in linear time).

If so: construct an explicit sep. str. (w′; t ′)

If not: the given sep. str. (w; t) is optimal for LP(f ).

Combined with the LPA framework:quadratic γ(f )-competitive algorithm for threshold functions

Cicalese–Milani c Threshold Functions and Game Trees

Page 108: Competitive Evaluation of Threshold Functions and Game

Any separating structure guarantees 2γ(f )

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{

val(w; t)val(w′; t ′)

,val(w′; t ′)val(w; t)

}

≤ 2

τ∗(H) ≤ val(w; t) ≤ χ∗(H) ≤ χ(H) ≤ 2τ∗(H)

This bound is sharp:

(t , t ; t + 1) for t ≥ 1 all define the same f

for t = 1, we get val(w; t) = 1

val(w; t)→ 2 as t →∞

Cicalese–Milani c Threshold Functions and Game Trees

Page 109: Competitive Evaluation of Threshold Functions and Game

Any separating structure guarantees 2γ(f )

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{

val(w; t)val(w′; t ′)

,val(w′; t ′)val(w; t)

}

≤ 2

τ∗(H) ≤ val(w; t) ≤ χ∗(H) ≤ χ(H) ≤ 2τ∗(H)

This bound is sharp:

(t , t ; t + 1) for t ≥ 1 all define the same f

for t = 1, we get val(w; t) = 1

val(w; t)→ 2 as t →∞

Cicalese–Milani c Threshold Functions and Game Trees

Page 110: Competitive Evaluation of Threshold Functions and Game

Any separating structure guarantees 2γ(f )

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{

val(w; t)val(w′; t ′)

,val(w′; t ′)val(w; t)

}

≤ 2

τ∗(H) ≤ val(w; t) ≤ χ∗(H) ≤ χ(H) ≤ 2τ∗(H)

This bound is sharp:

(t , t ; t + 1) for t ≥ 1 all define the same f

for t = 1, we get val(w; t) = 1

val(w; t)→ 2 as t →∞

Cicalese–Milani c Threshold Functions and Game Trees

Page 111: Competitive Evaluation of Threshold Functions and Game

Any separating structure guarantees 2γ(f )

Theorem

Every pair of separating structures (w; t), (w′; t ′) satisfies

max{

val(w; t)val(w′; t ′)

,val(w′; t ′)val(w; t)

}

≤ 2

τ∗(H) ≤ val(w; t) ≤ χ∗(H) ≤ χ(H) ≤ 2τ∗(H)

This bound is sharp:

(t , t ; t + 1) for t ≥ 1 all define the same f

for t = 1, we get val(w; t) = 1

val(w; t)→ 2 as t →∞

Cicalese–Milani c Threshold Functions and Game Trees

Page 112: Competitive Evaluation of Threshold Functions and Game

Extended threshold tree functions

x3

x1

x2

x8

(1, 2, 2, 3; 5)

(1, 1; 2)

x11x10

x5x4x9

(1, 1; 2)(1, 1; 2)

(1, 1; 1)

(3, 2, 2, 1; 6)

x7

x6

Threshold tree functions: w = (1, . . . , 1) at every nodeExtended threshold tree functions: no such restriction

Cicalese–Milani c Threshold Functions and Game Trees

Page 113: Competitive Evaluation of Threshold Functions and Game

Extended threshold tree functions

x3

x1

x2

x8

(1, 2, 2, 3; 5)

(1, 1; 2)

x11x10

x5x4x9

(1, 1; 2) (1, 1; 2)

(1, 1; 1)

(3, 2, 2, 1; 6)

x7

x6 1

1 01

1

10

1

1

10

Threshold tree functions: w = (1, . . . , 1) at every nodeExtended threshold tree functions: no such restriction

Cicalese–Milani c Threshold Functions and Game Trees

Page 114: Competitive Evaluation of Threshold Functions and Game

Extended threshold tree functions

x3

x1

x2

x8

(1, 2, 2, 3; 5)

(1, 1; 2)

x11x10

x5x4x9

(1, 1; 2) (1, 1; 2)

(1, 1; 1)

(3, 2, 2, 1; 6)

x7

x6 1

1

1 01

1

11 0

1

1

10

Threshold tree functions: w = (1, . . . , 1) at every nodeExtended threshold tree functions: no such restriction

Cicalese–Milani c Threshold Functions and Game Trees

Page 115: Competitive Evaluation of Threshold Functions and Game

Extended threshold tree functions

x3

x1

x2

x8

(1, 2, 2, 3; 5)

(1, 1; 2)

x11x10

x5x4x9

(1, 1; 2) (1, 1; 2)

(1, 1; 1)

(3, 2, 2, 1; 6)

x7

x61 0 11

1

1 01

1

11 0

1

1

10

Threshold tree functions: w = (1, . . . , 1) at every nodeExtended threshold tree functions: no such restriction

Cicalese–Milani c Threshold Functions and Game Trees

Page 116: Competitive Evaluation of Threshold Functions and Game

Extended threshold tree functions

x3

x1

x2

x8

(1, 2, 2, 3; 5)

(1, 1; 2)

x11x10

x5x4x9

(1, 1; 2) (1, 1; 2)

(1, 1; 1)

(3, 2, 2, 1; 6)

x7

x6

1

1 0 11

1

1 01

1

11 0

1

1

10

Threshold tree functions: w = (1, . . . , 1) at every nodeExtended threshold tree functions: no such restriction

Cicalese–Milani c Threshold Functions and Game Trees

Page 117: Competitive Evaluation of Threshold Functions and Game

Relation to threshold functionsand threshold tree functions

This class properly contains the classes of threshold functionsand threshold tree functions:

Threshold tree functions

Extended threshold tree functions

Threshold functions

x1x2 ∨ x3x4(2,2,3,1;5)

Cicalese–Milani c Threshold Functions and Game Trees

Page 118: Competitive Evaluation of Threshold Functions and Game

Pseudo-polynomial algorithm based on LPA

LPA(f : function)

While the value of f is unknown

Select a feasible solution s() of LP(f )

Read the variable u which minimizes c(x)/s(x)(cost/impact)

c(x) = c(x)− s(x)c(u)/s(u)

f ← restriction of f after reading u

End While

Cicalese–Milani c Threshold Functions and Game Trees

Page 119: Competitive Evaluation of Threshold Functions and Game

Constructing s

Ti

ki, li, ci, di

si

g : (w1, . . . , wr; t)

T

si : the solution to the LPTi

ki , li : maximum size of a minterm (maxterm) in Ti

ci , di ≥ 1

Cicalese–Milani c Threshold Functions and Game Trees

Page 120: Competitive Evaluation of Threshold Functions and Game

Constructing s

Ti

ki, li, ci, di

si

g : (w1, . . . , wr; t)

T

s(x) =zi · si(x)

δ

δ > 0: scaling factorz: a nontrivial solution of HLPg

Cicalese–Milani c Threshold Functions and Game Trees

Page 121: Competitive Evaluation of Threshold Functions and Game

Constructing s (main steps)

1. compute k(T ) and l(T ): dynamic programming,using (w; t), the ki ’s and the the li ’s

2. compute a solution z 6= 0 to the following system HLPg:

HLPg∑

ciki zi ≤ k(T ) ·∑

P cizi ∀maxterm P of g,∑

di lizi ≤ l(T ) ·∑

P dizi ∀minterm P of g,zi ≥ 0 ∀ i = 1, . . . , r

dynamic prog. algorithm for the separation problem(linearly many knapsack problems)

3. compute s:

s(x) =zi · si(x)

δ

Cicalese–Milani c Threshold Functions and Game Trees

Page 122: Competitive Evaluation of Threshold Functions and Game

Constructing s (main steps)

1. compute k(T ) and l(T ): dynamic programming,using (w; t), the ki ’s and the the li ’s

2. compute a solution z 6= 0 to the following system HLPg:

HLPg∑

ciki zi ≤ k(T ) ·∑

P cizi ∀maxterm P of g,∑

di lizi ≤ l(T ) ·∑

P dizi ∀minterm P of g,zi ≥ 0 ∀ i = 1, . . . , r

dynamic prog. algorithm for the separation problem(linearly many knapsack problems)

3. compute s:

s(x) =zi · si(x)

δ

Cicalese–Milani c Threshold Functions and Game Trees

Page 123: Competitive Evaluation of Threshold Functions and Game

Constructing s (main steps)

1. compute k(T ) and l(T ): dynamic programming,using (w; t), the ki ’s and the the li ’s

2. compute a solution z 6= 0 to the following system HLPg:

HLPg∑

ciki zi ≤ k(T ) ·∑

P cizi ∀maxterm P of g,∑

di lizi ≤ l(T ) ·∑

P dizi ∀minterm P of g,zi ≥ 0 ∀ i = 1, . . . , r

dynamic prog. algorithm for the separation problem(linearly many knapsack problems)

3. compute s:

s(x) =zi · si(x)

δ

Cicalese–Milani c Threshold Functions and Game Trees

Page 124: Competitive Evaluation of Threshold Functions and Game

Generalization

The algorithm can be generalized to work for any tree functionwhose node connectives are monotone Boolean functions.

G: a class of functions closed under restrictions

Suppose that all functions at the nodes belong to G.

The complexity of the algo depends on the complexity of:

Finding a cheapest minterm (maxterm) of a given g ∈ G.

Computing a restriction of a given g ∈ G.

Testing whether g ≡ 0 (g ≡ 1) for a given g ∈ G.

Cicalese–Milani c Threshold Functions and Game Trees

Page 125: Competitive Evaluation of Threshold Functions and Game

Generalization

The algorithm can be generalized to work for any tree functionwhose node connectives are monotone Boolean functions.

G: a class of functions closed under restrictions

Suppose that all functions at the nodes belong to G.

The complexity of the algo depends on the complexity of:

Finding a cheapest minterm (maxterm) of a given g ∈ G.

Computing a restriction of a given g ∈ G.

Testing whether g ≡ 0 (g ≡ 1) for a given g ∈ G.

Cicalese–Milani c Threshold Functions and Game Trees

Page 126: Competitive Evaluation of Threshold Functions and Game

Generalization

The algorithm can be generalized to work for any tree functionwhose node connectives are monotone Boolean functions.

G: a class of functions closed under restrictions

Suppose that all functions at the nodes belong to G.

The complexity of the algo depends on the complexity of:

Finding a cheapest minterm (maxterm) of a given g ∈ G.

Computing a restriction of a given g ∈ G.

Testing whether g ≡ 0 (g ≡ 1) for a given g ∈ G.

Cicalese–Milani c Threshold Functions and Game Trees

Page 127: Competitive Evaluation of Threshold Functions and Game

The HLPf for studying function evaluation

f : a monotone Boolean function over {x1, . . . , xn}Consider the homogeneous linear system HLPf :

HLPf∑

zi ≤ k(f ) ·∑

P zi ∀maxterm P of f ,∑

zi ≤ l(f ) ·∑

P zi ∀minterm P of f ,zi ≥ 0 ∀ i = 1, . . . , n

always has a nontrivial solution

Corollary:

For every monotone Boolean function f :

There exists a γ(f )-competitive implementation ofthe LPA.

γ(f ) = max{k(f ), l(f )}.

Cicalese–Milani c Threshold Functions and Game Trees

Page 128: Competitive Evaluation of Threshold Functions and Game

The HLPf for studying function evaluation

f : a monotone Boolean function over {x1, . . . , xn}Consider the homogeneous linear system HLPf :

HLPf∑

zi ≤ k(f ) ·∑

P zi ∀maxterm P of f ,∑

zi ≤ l(f ) ·∑

P zi ∀minterm P of f ,zi ≥ 0 ∀ i = 1, . . . , n

always has a nontrivial solution

Corollary:

For every monotone Boolean function f :

There exists a γ(f )-competitive implementation ofthe LPA.

γ(f ) = max{k(f ), l(f )}.

Cicalese–Milani c Threshold Functions and Game Trees

Page 129: Competitive Evaluation of Threshold Functions and Game

The HLPf for studying function evaluation

f : a monotone Boolean function over {x1, . . . , xn}Consider the homogeneous linear system HLPf :

HLPf∑

zi ≤ k(f ) ·∑

P zi ∀maxterm P of f ,∑

zi ≤ l(f ) ·∑

P zi ∀minterm P of f ,zi ≥ 0 ∀ i = 1, . . . , n

always has a nontrivial solution

Corollary:

For every monotone Boolean function f :

There exists a γ(f )-competitive implementation ofthe LPA.

γ(f ) = max{k(f ), l(f )}.

Cicalese–Milani c Threshold Functions and Game Trees

Page 130: Competitive Evaluation of Threshold Functions and Game

Some Open Questions

Can threshold functions be optimally evaluated in lineartime?

Is the extremal competitive ratio always integer?

Find the extremal comp. ratio of general Boolean functions.

Is there a polynomial algorithm with optimal extremalcomp. ratio for evaluating monotone Boolean functions(given by an oracle/by the list of minterms)?

Cicalese–Milani c Threshold Functions and Game Trees

Page 131: Competitive Evaluation of Threshold Functions and Game

Some Open Questions

Can threshold functions be optimally evaluated in lineartime?

Is the extremal competitive ratio always integer?

Find the extremal comp. ratio of general Boolean functions.

Is there a polynomial algorithm with optimal extremalcomp. ratio for evaluating monotone Boolean functions(given by an oracle/by the list of minterms)?

Cicalese–Milani c Threshold Functions and Game Trees

Page 132: Competitive Evaluation of Threshold Functions and Game

Some Open Questions

Can threshold functions be optimally evaluated in lineartime?

Is the extremal competitive ratio always integer?

Find the extremal comp. ratio of general Boolean functions.

Is there a polynomial algorithm with optimal extremalcomp. ratio for evaluating monotone Boolean functions(given by an oracle/by the list of minterms)?

Cicalese–Milani c Threshold Functions and Game Trees

Page 133: Competitive Evaluation of Threshold Functions and Game

Some Open Questions

Can threshold functions be optimally evaluated in lineartime?

Is the extremal competitive ratio always integer?

Find the extremal comp. ratio of general Boolean functions.

Is there a polynomial algorithm with optimal extremalcomp. ratio for evaluating monotone Boolean functions(given by an oracle/by the list of minterms)?

Cicalese–Milani c Threshold Functions and Game Trees

Page 134: Competitive Evaluation of Threshold Functions and Game

The end

THANK YOU

Cicalese–Milani c Threshold Functions and Game Trees