• Keine Ergebnisse gefunden

Exercise 1: B¨ uchi Pushdown Systems

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 1: B¨ uchi Pushdown Systems"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Advanced Automata Theory Exercise Sheet 9

Prof Roland Meyer TU Braunschweig

Dr Prakash Saivasan Summer term 2016

Out: June 13 Due: June 19, 10:00

Exercise 1: B¨ uchi Pushdown Systems

Solve the accepting run problem for the B¨ uchi-pushdown system over Γ = {a, b} below:

p q r

b/ab a/ba

b/ε a/b

b/ab

b/ε

(a) Find some/all (s, γ) ∈ Q × Γ such that (s, γ) → + (r, u) → (s, γv) for some u, v ∈ Γ . (b) Compute A pre

(C) for C = {(s, γv) | v ∈ Γ , (s, γ) is a configuration found in (a)}.

Exercise 2: Model Checking BPDS

We extend B¨ uchi Pushdown Systems to accept words from a finite input alphabet Σ = P (P ) for some finite set of propositions P . The automaton definition now includes an initial configuration c 0 and transitions are now labeled, i.e. they take the form q −−−−→ γ/w: a q 0 with q, q 0 ∈ Q, γ ∈ Γ, w ∈ Γ and a ∈ Σ, with the corresponding semantic rule (q, γv) − → a (q 0 , wv ). Note that the constructions presented in the lecture are not affected by this change. The language of such a BPDS P is L(P ) := {a 0 a 1 a 2 . . . | c 0a

0

c 1a

1

c 2a

2

. . . is an accepting run}.

a) Given an NBA A over Σ and a BPDS P over Σ, construct a BPDS P k A over Σ with L(P k A) = L(A) ∩ L(P ).

b) Given an LTL formula ϕ and a BPDS P , show that L(P ) ⊆ L(ϕ) is decidable and comment on the complexity.

Exercise 3: Modelling Recursive Programs with (B)PDSs Consider the following pseudo-code:

def m() { x = 1 - x;

if(x == input()) { s();

m();

} }

def s() { x = 1 - x;

if(x != input()) { m();

s();

} }

Here, x is a global boolean variable (1 is true, 0 is false), input() randomly returns 0 or 1 (it

represents input from the user/environment modelled as non-determinism). Assume we start

the program by calling m() with x=0.

(2)

a) Design a PDS that models the given program. Use Γ = {s, m} to model the call stack.

b) Using a pre construction, describe how you would decide that m and s are always called in alternation.

Exercise 4: pre computation for PDS Consider a PDS P and a P -NFA A.

a) Show how to construct a P -NFA A 0 with CF(A 0 ) = CF(A) that has no transition leading to an initial state.

b) Show how to construct a P -NFA A pre with CF(A pre ) = pre(CF(A)).

Prove that your construction is correct.

Referenzen

ÄHNLICHE DOKUMENTE

After all, a European infantry battalion may not be the instrument needed, and the limited time of opera- tion (30-120 days) set by the BG concept is also an issue.. This argument

A touchstone was the prepara- tions for and management of the European Football Championship in Ukraine in 2012, which had been declared by members of the Ukrainian government

Ausführliche Informationen zur Bayerischen Ärzteversorgung und die Online-Version der Kurz- broschüre finden Sie im Internet unter www.bayerische-aerzteversorgung.de unter der Rubrik

In general, the competitiveness of the European forest cluster is a function of the competitiveness of its industries located in different countries, which necessitates a dual

An increase in coherence in the low α range does not just accompany healthy motor activity: the Parkinsonian resting tremor underlies a pathological 8 Hz oscillatory network in

61 The proposal was rejected by most of ASEAN member states for three main reasons. First, the multilateral defense cooperation would send a wrong signal to major powers. It

63 Such educational measures to train the armed forces in civilian skills accelerated the military’s involvement in economic activities that required not only conversion

· To understand the effects of male out-migration for labour on women’s and men’s participation in decision-making on household and community level.. The findings of the study