• Keine Ergebnisse gefunden

Exercise 10.1 PDS Modeling

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 10.1 PDS Modeling"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

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

Exercise Sheet 10

Prof. Dr. Roland Meyer, Reiner H¨ uchting Due: Tue, Jan 20

Exercise 10.1 PDS Modeling

Give a pushdown system that models the following program where r() is a function that randomly returns 0 or 1. Describe how you represent the program counter and the value of the variable x. Hint: In a first step, assign each line in the code a unique label.

void m() x=1;

if(r()==1) s();

void s() x=0;

if(r()==1) m();

int x=0;

void main() m();

Exercise 10.2 pre

Computation

Use the algorithm given in the lecture notes to determine pre

(C) in the pushdown system below, where C = {(q, w) | w ∈ {γ, δ}

and |w| is even}.

p q

γ/ε

γ/ε δ/ε

Exercise 10.3 pre

Computation

Compute A

pre

starting from A (left) and P (right) given below.

p

q r

s

1

s

2

γ γ

p

q

r γ/δ

1

γ δ

1

2

γ δ

1

δ

2

1

(2)

Exercise 10.4 B¨ uchi Pushdown Systems

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

p q r

δ/γδ γ/δγ

δ/ε γ/δ

δ/γδ

δ/ε

(a) Find all (s, γ) ∈ Q × Γ such that (s, γ) →

+

(r, u) →

(s, γ · v) for some u, v ∈ Γ

. (b) Compute A

pre(C)

for C = {(s, γ · Γ

) | (s, γ) is a configuration found in (a)}.

Note: the lowercase γ ∈ Γ in (a) and (b) is an arbitrary symbol.

Referenzen

ÄHNLICHE DOKUMENTE

a certain graph, is shown, and he wants to understand what it means — this corre- sponds to reception, though it involves the understanding of a non-linguistic sign;

 ce aşteaptă stakeholderii de la întreprindere. O întreprindere responsabilă din punct de vedere etic dezvoltă standarde, proceduri şi politici prin înţelegerea completă

☛ As long as you are a minor (less than 18 years old) and have an Aufenthaltserlaubnis acording to the new residence right regulations (§ 25a Aufenthaltsgesetz), your parents and

Remark: For the exercises where you have to dene primitive recursive functions, you are allowed to use all functions that were proved to be primitive recursice in the lecture or in

En búsqueda del perfeccionamiento del sistema GES para los privados, es posible considerar un estudio realizado por la Superintendencia de Salud con un censo en relación a

Bereanu, The continuity of the optimum in parametric programming and applications to stochastic programming, J.Optim.Theory Applic. Robinson, A characterization of stability

PrADO (Preliminary aircraft Design and Optimisation Program) is a program of the institute for Aircraft Construction and Lightweight Construction of the Technical University of

They are executed one by one, and they all computes the so-called dependant design variables (e.g. fuel mass, static thrust, or MTOW ) and exchange data only with the database. The