• Keine Ergebnisse gefunden

Exercise Sheet 14

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise Sheet 14"

Copied!
3
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Applied Automata Theory (WS 2012/2013) Technische Universit¨at Kaiserslautern

Exercise Sheet 14

Jun.-Prof. Roland Meyer, Reiner H¨uchting, Georgel C˘alin Due: Thu, Feb 14

Exercise 14.1 Finite Words

(a) Consider a deck of cards (witharbitrary manycards) in which black and red cards alternate, and the top card is black. Cut the deck at any point into two piles, and then perform a riffle (also called a dovetail shuffle) to yield a new deck.

E.g., we can cut the deck with six cards 123456 into two piles 12 and 3456, and the riffle yields 132456 or 312456, depending on the pile we start the riffle with. Now, take the cards from the new deck two at a time (if the riffle yields 132456, then this exposes cards 3, 4, and 6; if it yields 314256, it exposes cards 1, 2, and 6).

Prove with help of regular expressions that all exposed cards have the same color.

Hint: the expression(BR)(+B) represents the possible initial decks (b) LetL be an arbitrary language over a 1-letter alphabet. Prove thatL is regular.

(c) Consider the following system of equations, where the variables X, Y represent languages over the alphabet Σ ={a, b, c, d, e, f}:

X={a}X∪ {b}Y ∪ {c}

Y ={d}X∪ {e}Y ∪ {f}

Find the unique minimal solution of the system with the help of Arden’s lemma.

(d) Let L, U, V ⊆Σ such that ∈ U. Prove that theL-solutions ofL = U L∪V are precisely the languages in the set {UV0|V ⊆V0 ⊆Σ}.

(e) Give a defining WMSO-formula, an automaton, and a regular expression for the following languages over {a, b}:

• the set of words of even length and containing only a’s or onlyb’s.

• the set of words, where between each twob’s with no other binbetween there is a block of an odd number of lettersa.

• the set of words with an odd length and an odd number of occurrences of a.

(f) For whichk∈N does the Duplicator winGk(u, v) for the following wordsu,v:

• u=aabaabaabaandv =abaabaabaa

• u=anban+1 and v=an+1ban forn∈N.

0this exercise sheet is not compulsory – most exercises are from the literature cited on the course page

(2)

(g) Compute the Parikh image Ψ (L(G)) for the following context free grammarG:

S→aSb|ab|S1S0 S0→SS2 S1 →a S2→b

(h) Give a languageL such that its Parikh image Ψ(L) is not semilinear.

Exercise 14.2 Infinite Words

(a) Givenkprocesses and automataA1, . . . , Ak representing them, present a fair sched- uler enforcing that process 1 is active for 10 CPU cycles at least every 100 cycles.

Keep the scheduler as general as possible.

(b) Consider the following statement: Let A be an NFA such that L(A) =L and /∈L.

If we see Aas an NBA, then L(A) =Lω. Find a counterexample for the statement.

(c) Let a = ∅, b = {p}, c = {q}, and d = {p, q}. Give LTL formulas to define the following languages over Σ = 2{p,q}:

• abcΣω

• (a+b+c+d+)ω

• {w∈Σω| |w|a=∞ implies |w|b =∞}

• (Σc)ω

• {q∈Σω|between anyd’s in wthere is at least ac}

(d) Consider the GNBA Gbelow over P ={a, b} withQ1F ={q1, q3}and Q2F ={q2}

q0 true q1 q2 q3

true

a∧b a

a

¬a

a∧b a∧b

• provide an LTL formula ϕsuch thatL(ϕ) =L(G)

• depict the NBA Aϕ such thatL(Aϕ) =L(G).

(e) Use the Vardi-Wolper construction to contruct the GNBA for (a∧ a)U ¬a.

(f) Determine the set of configurations from which an infinite accepting run is possible in the following B¨uchi-pushdown system:

p q r

δ/ε δ/ε

γ/δ γ/ε γ/γ

(3)

Exercise 14.3 Finite Trees and Parity Games

(a) Which of the following tree languages are accepted by some finite tree automaton over Σ ={a, b, c, d} withrk(a) =rk(b) = 2 and rk(c) =rk(d) = 0 ?

• L1:={t∈ TΣ|the path,0,01,010,0101, . . . int contains an even number ofa’s}

• L2:={t∈ TΣ|tis an unbalanced tree}

• L3:={t∈ TΣ|there are nodesu, v intwitht(u) =c, t(v) =dandu is left of v}

• L4:={t∈ TΣ|thas exactly 239 leaves, all of which are labelled by c}

(b) Let A = (Q,Σ, QF,→) be a normalized NHA. A is normalized if there is always a single rule regexp→aq for every a∈Σ and q∈Q. We further callA top-down deterministic, i.e. top-down DHA, if|QF|= 1 and for all transitions regexp→aq there is for eachnat most one word of length nin regexp.

Give a recognizable languageL⊆ TΣthat cannot be recognized by a top-down DHA.

(c) Determine the winning regions ofA and P for the following Parity games:

0 0 1

0

1 2

2 0

0 1 2 3 4 5 6 7

0 1 2 3 4 5 6 7

Referenzen

ÄHNLICHE DOKUMENTE

Die partielle Integration wird benutzt, um komplexe Funktionen einfacher zu

Since this is obvious in the product case, let (A, L) not be a product of elliptic curves. The odd halfperiods are base points of |L|.. The Property Nef. The last assertion

[r]

lih selbst gezeigt werden, so lange bis nur noh Axiome oder Prämissen

a) The message is encoded using an alphabet of 26 characters, where we map the letter “a” to 0, “b” to 1,. The most significant letter is written to the left. Do this using

Give a classification (with proof) of the primes of this form, and then examine (in terms of the prime factors of n) which integers n are of this form.. Hand in solutions to

The subshift X β is itself not of finite type, because there are infinitely many forbidden words 1110 k 1, k ≥ 0, but by some recoding it is easily seen to be conjugate to an SFT

As you can see, the question of existence of global (meaning defined on M × R ) (sub)solutions to the HJ-equation is very important and represent an interesting problem in the theory