• Keine Ergebnisse gefunden

Out: November 22 Due: November 28

N/A
N/A
Protected

Academic year: 2021

Aktie "Out: November 22 Due: November 28"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Concurrency theory

Exercise sheet 1 TU Braunschweig

Roland Meyer, Elisabeth Neumann Winter term 2017/18

Out: November 22 Due: November 28

Submit your solutions until Wednesday, November 28 12:00 am. You may submit in groups up to three persons.

Exercise 1: Expand, Enlarge and Check Consider the following lossy channel system LCS :

q

0

c!0 q

1

q

2

d!1

c!1

c?0

d!1 d!1

together with Γ = {(q

0

, ε), (q

1

, ε), (q

2

, ε)} and limit domains

L

0

=

>, q

0

, 1

ε

, q

0

, ε 1

!

, q

1

, (0 + 1)

0

.1

!

, q

1

, (0 + 1)

1

.0

!

L

1

= L

0

q

0

, 1

1

!

, q

1

, 1

.(0 + ε) 1

!

, q

2

, ε 1

! .

a) Compute Over (LCS , Γ, L

0

). Provide an execution tree.

b) Compute Over (LCS , Γ, L

1

). Argue why configuration (q

2

, 1 ε

!

) is not coverable.

Exercise 2: Traffic lights and Petri nets

Consider the Petri net given by the following graphic representation.

r

y

g

y → r r → ry

g → y ry → g

a) Write down the net as a tuple N = (P, T, i, o).

b) The net should model a traffic light, but it contains a bug and exhibits unwanted be- havior. Show a valid firing sequence (from the initial marking indicated in the graphic representation) reaching a bad marking.

Modify the net to fix the problem. The resulting net should be 1-safe.

(2)

c) Model two traffic lights handling a road crossing by using two such Petri nets.

Exercise 3: The Ackermann function

a) The three-argument Ackermann function ϕ is defined recursively as follows.

ϕ: N

3

→ N

ϕ(m, n, 0) = m + n ϕ(m, 0, 1) = 0 ϕ(m, 0, 2) = 1

ϕ(m, 0, x) = m for x > 2

ϕ(m, n, x) = ϕ(m, ϕ(m, n − 1, x), x − 1) for n > 0 and x > 0 Formally prove the following equalities (e.g. using induction):

ϕ(m, n, 0) = m + n, ϕ(m, n, 1) = m · n, ϕ(m, n, 2) = m

n

.

b) Nowadays, one usually considers the following two-parameter variant.

A : N

2

→ N

A(0, n) = n + 1

A(m, 0) = A(m − 1, 1) for m > 0

A(m, n) = A(m − 1, A(m, n − 1)) for m > 0 and n > 0 For example, we have

A(1, 2) = A(0, A(1, 1)) = A(0, A(0, A(1, 0))) = A(0, A(0, A(0, 1))) = A(0, A(0, 2)) = A(0, 3) = 4 .

Similar to this computation, write down a full evaluation of A(2, 3).

Referenzen

ÄHNLICHE DOKUMENTE

For example, in 2005, Nazarbayev told the attendees of an international conference entitled Strategy Kazakhstan-2030, that, “I see Kazakhstan as a junction country in

While laser technologies may or may not eventually replace tradi- tional stamping practices, they can in any case be used to add complemen- tary or item-specific information to

Reliance on external donations has resulted in sporadic marking, with long periods of dormancy whilst states await new donor funds. These dormant periods not only slow the

Kontrollen können auch kurzfristig an anderen

10 Japan Agency for Marine-Earth Science and Technology, Yokohama, Japan, 11 Max Planck Institute for Meteorology, Hamburg, Germany, 12 Pacific Northwest National

Explain the difference between the accusative and the ergative case marking system.. Name two languages for each of

While the policy response to date has concentrated on calls for austerity to deliver fiscal sustainability and structural reform to boost growth and competitiveness, there have

[r]