• Keine Ergebnisse gefunden

Jun.-Prof. Roland Meyer, Reiner H¨ uchting, Georgel C˘ alin Due: Tue, Dec 11 (noon) Exercise 8.1 Disjunctive Well-Foundedness

N/A
N/A
Protected

Academic year: 2021

Aktie "Jun.-Prof. Roland Meyer, Reiner H¨ uchting, Georgel C˘ alin Due: Tue, Dec 11 (noon) Exercise 8.1 Disjunctive Well-Foundedness"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

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

Exercise Sheet 8

Jun.-Prof. Roland Meyer, Reiner H¨ uchting, Georgel C˘ alin Due: Tue, Dec 11 (noon) Exercise 8.1 Disjunctive Well-Foundedness

Consider the following program over integer variables and the corresponding automaton:

while x > 0 ∧ y > 0 do l

a

: (x, y) := (x − 1, x) or

l

b

: (x, y) := (y − 2, x + 1) endwhile

l

a

: if x > 0 ∧ y > 0 x

0

:= x − 1 y

0

:= x

l

b

: if x > 0 ∧ y > 0 x

0

:= y − 2 y

0

:= x + 1

A state S of this program is a vector giving a value to each variable. The execution of a command l

a

or l

b

leads to a labelled transition between states. For example:

S = (x = 2, y = 1) − −−−−

la

→ (1, 2) = S

0

.

One can show that between every pair of states S − →

w

S

0

, where w ∈ {l

a

, l

b

}

+

, one of the following relations holds:

T

1

x > 0 ∧ x > x

0

T

2

x + y > 0 ∧ x + y > x

0

+ y

0

T

3

y > 0 ∧ y > y

0

Show that this implies termination (from any starting state).

Exercise 8.2 Equivalence Classes as Circuit Boxes

Remember that, for any u ∈ Σ

ω

and NBA A, Box(u) is defined as R

[u]

A

∪ R

fin[u]

A

. (a) Prove that [u]

A

= [v]

A

if and only if Box(u) = Box(v).

(b) Prove that Box(uv) = Box(u) ; Box(v), where ”;” glues boxes together.

(c) Give an algorithm in pseudo code which computes all ∼

A

equivalence classes (boxes).

Exercise 8.3 NBA Emptiness and Membership

Let A be an NBA and uv

ω

be an ω-word. Give algorithms that decide whether:

L(A) = ∅ uv

ω

∈ L(A).

(2)

Exercise 8.4 NBA Complementation

Compute L(A) and L(A) for the NBA A below:

q

0

a q

1

a, b a

Referenzen

ÄHNLICHE DOKUMENTE

Applied Automata Theory (WS 2013/2014) Technische Universit¨ at Kaiserslautern. Exercise

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¨

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

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern.. Exercise

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern. Exercise

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern.. Exercise

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern.. Exercise

Applied Automata Theory (WS 2014/2015) Technische Universit¨ at Kaiserslautern. Exercise