Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase,...

42
Counting Problems for Parikh Images Christoph Haase Stefan Kiefer Markus Lohrey MFCS 2017, Aalborg 25 August 2017 Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 1

Transcript of Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase,...

Page 1: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Counting Problems for Parikh Images

Christoph Haase Stefan Kiefer Markus Lohrey

MFCS 2017, Aalborg25 August 2017

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 1

Page 2: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

The Cost Problem

310 : 15

710 : 20

210 : 5

810 : 10

What is the probability to reach the gate in 25–45min?Quantiles?

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

25 ≤ cost ≤ 45

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 2

Page 3: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

The Cost Problem

310 : 15

710 : 20

210 : 5

810 : 10

What is the probability to reach the gate in 25–45min?Quantiles?

Cost Problem :=

Input: Cost Markov chaincost formula ϕthreshold τ ∈ [0,1]

Output: Is Pr(ϕ) ≥ τ ?

25 ≤ cost ≤ 45

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 2

Page 4: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

Theorem (Laroussinie, Sproston, FoSSaCS’05)The cost problem is in EXPTIME.The cost problem is NP-hard

NP-hard

.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 3

by reduction from theK th largest subset problem

Theorem (HK, IPL’16)The K th largest subset problem is

PP

-complete.

CorollaryThe cost problem is PP-hard.

a superset of NP

Page 5: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

Theorem (Laroussinie, Sproston, FoSSaCS’05)The cost problem is in EXPTIME.The cost problem is NP-hardNP-hard.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 3

by reduction from theK th largest subset problem

Theorem (HK, IPL’16)The K th largest subset problem is

PP

-complete.

CorollaryThe cost problem is PP-hard.

a superset of NP

Page 6: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

Theorem (Laroussinie, Sproston, FoSSaCS’05)The cost problem is in EXPTIME.The cost problem is NP-hardNP-hard.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 3

by reduction from theK th largest subset problem

Theorem (HK, IPL’16)The K th largest subset problem is

PP

-complete.

CorollaryThe cost problem is PP-hard.

a superset of NP

Page 7: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

Theorem (Laroussinie, Sproston, FoSSaCS’05)The cost problem is in EXPTIME.The cost problem is NP-hardNP-hard.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 3

by reduction from theK th largest subset problem

Theorem (HK, IPL’16)The K th largest subset problem is PP-complete.

CorollaryThe cost problem is PP-hard.

a superset of NP

Page 8: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

EXPTIME

PSPACE

Cost

PP

NP

1 0

+ +

∗ −

circuit value

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4

Theorem (HK, ICALP’15)The cost problem is PosSLP-hard.

The cost problem is in PSPACE.

Theorem (HKL, LICS’17)The cost problem is in CH.

Page 9: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

EXPTIME

PSPACE

Cost

PP PosSLP

NP

1 0

+ +

∗ −

circuit value

:=Input: arithmetic circuitOutput: Is the value > 0 ?

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4

Theorem (HK, ICALP’15)The cost problem is PosSLP-hard.

The cost problem is in PSPACE.

Theorem (HKL, LICS’17)The cost problem is in CH.

Page 10: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

EXPTIME

PSPACE

Cost

PP PosSLP

NP

1 0

+ +

∗ −

circuit value

:=Input: arithmetic circuitOutput: Is the value > 0 ?

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4

Theorem (HK, ICALP’15)The cost problem is PosSLP-hard.

The cost problem is in PSPACE.

Theorem (HKL, LICS’17)The cost problem is in CH.

Page 11: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

EXPTIME

PSPACE

Cost

PP PosSLP

NP

1 0

+ +

∗ −

circuit value

:=Input: arithmetic circuitOutput: Is the value > 0 ?

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4

Theorem (HK, ICALP’15)The cost problem is PosSLP-hard.The cost problem is in PSPACE.

Theorem (HKL, LICS’17)The cost problem is in CH.

Page 12: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Complexity of the Cost Problem

EXPTIME

PSPACE

CH

Cost

PP PosSLP

NP

1 0

+ +

∗ −

circuit value

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4

Theorem (HK, ICALP’15)The cost problem is PosSLP-hard.The cost problem is in PSPACE.

Theorem (HKL, LICS’17)The cost problem is in CH.

Page 13: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Solving the Cost Problem

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

310 : 20

12 : 15

12 : 25

1 : 10

1 : 10

710 : 5

Enumerate the Parikh images.Problem: there might be multiple paths per Parikh image.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 5

Page 14: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Solving the Cost Problem

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

310 : 20

12 : 15

12 : 25

1 : 10

1 : 10

710 : 5

2

1

2

1

2

1

Enumerate the Parikh images.Problem: there might be multiple paths per Parikh image.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 5

Page 15: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Solving the Cost Problem

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

310 : 20

12 : 15

12 : 25

1 : 10

1 : 10

710 : 5

2

1

2

1

2

1

Enumerate the Parikh images.

Problem: there might be multiple paths per Parikh image.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 5

Page 16: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Solving the Cost Problem

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

310 : 20

12 : 15

12 : 25

1 : 10

1 : 10

710 : 5

2

1

2

1

2

1

Enumerate the Parikh images.Problem: there might be multiple paths per Parikh image.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 5

Page 17: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Solving the Cost Problem

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

Enumerate the Parikh images.Problem: there might be multiple paths per Parikh image.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 5

Page 18: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Solving the Cost Problem

Cost Problem :=

Input: Cost Markov chaincost formula ϕ

Output: Pr(ϕ)

Enumerate the Parikh images.Problem: there might be multiple paths per Parikh image.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 5

Page 19: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

The BEST Theorem

Theorem (de Bruijn, van Aardenne-Ehrenfest, Smith, Tutte)The number of Eulerian cycles in an Eulerian graph G equals

t(G) ·∏v∈V

(d(v)− 1

)!

Theorem (Tutte’s matrix-tree theorem)

t(G) = det(L(G)11)

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 6

number of directedspanning trees in G

Laplacian of G

Page 20: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Theorem ([HK, ICALP’15], [HK, IPL’16], [HKL, LICS’17])The cost problem is hard for PP and PosSLP.The cost problem is in CH.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 7

Page 21: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 22: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 23: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 24: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 25: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 26: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 27: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 28: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 8

0.45 : (1,0)

0.45 : (0,1)

0.1 : (0,0)

What is Pr(cost ∈ [4,6]2)?

Page 29: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

dimension d

time in sec

3 4 5 6 7 80

50

100

150

200

QUANT [8,10]dQUANT [13,15]dQUANT [18,20]d

PRISM [8,10]d

PRISM [13,15]d

PRISM [18,20]d

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 9

Page 30: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

dimension d

time in sec

3 4 5 6 7 80

50

100

150

200

QUANT [8,10]dQUANT [13,15]dQUANT [18,20]d

PRISM [8,10]d

PRISM [13,15]d

PRISM [18,20]d

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 9

Page 31: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

dimension d

time in sec

3 4 5 6 7 80

50

100

150

200

QUANT [8,10]dQUANT [13,15]dQUANT [18,20]d

PRISM [8,10]d

PRISM [13,15]d

PRISM [18,20]d

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 9

Page 32: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 10

Page 33: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

QUANT: A Tool for the Cost Problem

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 10

Page 34: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Counting Parikh Images

Σ: finite alphabet

p ∈ NΣ: vector

A: language generator (DFA, NFA, CFG)

N(A,p): number of words accepted by A with Parikh image p

Example: for A = a∗ba∗ and p = (2,1): N(A,p) = 3

PosParikh :=

Input: Language generators A,Bvector p ∈ NΣ

Output: Is N(A,p) > N(B,p) ?

Different variants:language generator: DFA, NFA, CFGunary or binary encoding of pfixed or variable alphabet Σ

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 11

Page 35: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Results of This Paper: Complexity of PosParikh

vector p size of Σ DFA NFA CFG

unaryencoding

unary in L NL-c. P-c.fixed PL-c.

variable PP-c.

binaryencoding

unary in L NL-c. DP-c.

fixedPosMatPow-hard,

in CHPSPACE-c. PEXP-c.

variable PosSLP-hard,in CH

BitParikh :=

Input: Language generator Avector p ∈ NΣ

number i ∈ N in binary

Output: Is the i-th bit of N(A,p) equal to 1 ?

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 12

Page 36: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Results of This Paper: Complexity of PosParikh

vector p size of Σ DFA NFA CFG

unaryencoding

unary in L NL-c. P-c.fixed PL-c.

variable PP-c.

binaryencoding

unary in L NL-c. DP-c.

fixedPosMatPow-hard,

in CHPSPACE-c. PEXP-c.

variable PosSLP-hard,in CH

BitParikh :=

Input: Language generator Avector p ∈ NΣ

number i ∈ N in binary

Output: Is the i-th bit of N(A,p) equal to 1 ?

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 12

Page 37: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

PosMatPow

PosMatPow :=

Input: m×m integer matrix M (in binary)number n ∈ N (in binary)

Output: Is (Mn)1,m ≥ 0 ?

The entries of Mn are of exponential size.

Theorem (Galby, Ouaknine, Worrell, 2015)PosMatPow is in P for m = 2.PosMatPow is in P for m = 3 and M given in unary.

PosMatPow reduces to PosSLP.

Theorem (HKL, 2017)PosMatPow reduces toPosParikh with DFAs, binary encoding of p, even for |Σ| = 2.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 13

Page 38: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

From Matrix Powers to Graphs

G: multi-graph with edges labelled by multiplicitiesN(G,u, v ,n) : number of paths from u to v of length n

LemmaGiven an integer matrix M and indices i , j , one can compute inlogspace a multi-graph G with vertices u, v+, v− such that

(Mn)i,j = N(G,u, v+,n)− N(G,u, v−,n) for all n ∈ N.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 14

Page 39: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Getting Rid of Edge Weights

Replace u v21

by

10101 1010 101 10 1

u v

The edge weights are removed at the expense of longer paths.

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 15

Page 40: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

From Graphs to DFAs

Replace v

v1

v2

v3

v4

by

v

v1

v2

v3

v4

a

b

b b b

ab b

ba

b

b

a

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 16

Page 41: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Summary

Counting Parikh images is closely related to performanceanalysis of probabilistic systems.

The complexity depends strongly on various parameters:language generator: DFA, NFA, CFGunary or binary encoding of pfixed or variable alphabet Σ

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 17

Page 42: Counting Problems for Parikh ImagesCH Cost PP PosSLP NP 1 0 + + circuit value Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 4 Theorem (HK, ICALP’15)

Results of This Paper: Complexity of PosParikh

vector p size of Σ DFA NFA CFG

unaryencoding

unary in L NL-c. P-c.fixed PL-c.

variable PP-c.

binaryencoding

unary in L NL-c. DP-c.

fixedPosMatPow-hard,

in CHPSPACE-c. PEXP-c.

variable PosSLP-hard,in CH

Christoph Haase, Stefan Kiefer, Markus Lohrey Counting Problems for Parikh Images 18