• Keine Ergebnisse gefunden

Advanced Automata Theory Exercise Sheet 4

N/A
N/A
Protected

Academic year: 2021

Aktie "Advanced Automata Theory Exercise Sheet 4"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Advanced Automata Theory Exercise Sheet 4

Emanuele D’Osualdo TU Kaiserslautern

Sebastian Muskalla Summer term 2016

Out: May 11 (Updated version, May 12) Due: May 17, 10:00

Because of the holiday on Monday, you can bring your submissions to the exercise class (Tuesday 10:00). If you submit (parts of your) solution on Friday, we can return them on Tuesday.

Exercise 1: Presburger formulas & Parikh images

a) Present a Presburger formula φ such that every bound variable occurs in precisely one atomic expression and such that

Sol(φ) =

{( 2n + 1

n + 3

) n N }

{( 3n + 1

2n + 2

) n N }

.

b) The Parikh image Ψ : Σ

→ N

Σ

mapps each word w to the vector Ψ(w), where the com- ponents store the number of occurrences of each letter in w. For a language L ⊆ Σ

, let Ψ( L ) = {

Ψ(w) | w ∈ L }

. For example for Σ = {

a, b, c } :

Ψ(ababcb) =

  2 3 1

  and Ψ((aa)

(bbb)

) =

 

 

  2n 3m

0

 

n, m N

 

  .

Give an NFA A so that Ψ(L ( A )

) = Sol(φ) for the Presburger formula φ from a).

Exercise 2: ”PresburgerNFA”-Algorithm

a) Prove the correctness of the construction given in class:

For every q Z and w ( B

n

)

, the automaton accepts w starting from q iff w encodes c with a c q .

b) Construct a finite automaton over B for the atomic Presburger formula x - 3y 1.

Exercise 3: ”PresburgerNFA” for atomic formulas with equality

One can modify the algorithm for a x b to produce an NFA for a x = b by making the state 0 Z the only accepting state and by changing the transition relation so that a transition

q →

β

1

2 (q - a β) is only added if q - a β is even.

a) Use the modified algorithm to construct a finite automaton for x - 2y = 1.

b) Verify your result in a) by checking that

L (

A

x-2y=1

)

= L (

A

x-2y≤1

)

∩ L (

A

-x+2y≤-1

)

.

(2)

Exercise 4: Semilinear sets

Let c N

n

be a vector and let P = {

p

0

, . . . , p

m

}

N

n

be a finite set of vectors. We define

L ( c, P )

= {

c +

m i=0

k

i

· p

i

N

n

k

1

, ..., k

m

N }

.

A set is called linear if it is of the form L ( c, P )

for some c N

n

and finite P N

n

. A set is called semi-linear if it is a union of finitely many linear sets.

a) Prove that semi-linear sets are Presburger definable:

For any semi-linear set S N

n

there exists a Presburger formula φ

S

such that S = Sol(φ

S

) . b) A function f : N

n

→ N

m

is linear if f(x + y) = f(x) + f(y) and f(k · x) = k · f(x) for all k N .

Prove that semi-linear sets are closed under linear functions, i.e. if S N

n

is semi-linear and

f : N

n

→ N

m

is a linear function then f(S) N

m

is semi-linear.

Referenzen

ÄHNLICHE DOKUMENTE

Prove that (V, E) contains an infinite

The idea is to accept a run if the set of states that occur infinitely often matches one of the Q i

b) B¨ uchi’s theorem (I) can be adapted to show that every NBA-definable language is S1S- definable. Illustrate the main ingredients needed to adapt B¨ uchi’s proof.. c) B¨

[r]

[r]

c) Prove using structural induction that every star-free language

Adapting Parikh’s proof, show that reachability in counter machines with one unrestricted counter and n r-reversal bounded counters

The words in the language will however respect the actions on the unrestricted counter because they correspond to actual effects on the counter of M 00 , which can make sure we