• Keine Ergebnisse gefunden

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

N/A
N/A
Protected

Academic year: 2021

Aktie "Submit your solutions until Wednesday, December 19, 12:00 am. You may submit in groups up to three persons."

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Concurrency theory

Exercise sheet 7 TU Braunschweig

Roland Meyer, Elisabeth Neumann Winter term 2018/19

Out: December 12 Due: December 19

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

Exercise 1: Rackoff ’s bound

Consider the Petri net N = ({1, 2, 3, 4}, {a, b, c, x}, i, o) with multiplicities as depicted below. The initial marking of interest is M

0

= (1, 0, 0, 0)

T

and the final marking is M

f

= (1, 0, 10, 100)

T

.

1 x

2

c a

b

3 4

Compute the values m(3, M

0

) and f(3) and argue why they are correct.

Exercise 2: Counter programs

You may use additional counter variables to solve these problems. In each part of this exercise, you may use the previous parts as subroutines.

Let n be some fixed number.

a) Present a counter program Set

n

(x

j

) that sets the value of counter variable x

j

to n.

b) Present a counter program Double(x

j

) that doubles the current value of counter variable x

j

.

c) Present a counter program Power

n

(x

j

) that sets the value of counter variable x

j

to 2

n

. d) Present a counter program Square(x

j

) that squares the value of counter variable x

j

, i.e. the

new value is v

2

, where v is the old value.

In each part of this exercise, argue briefly that your program is correct.

Exercise 3: Communication-free Petri nets and SAT

A communication-free Petri net (or BPP net) is a Petri net in which each transition consumes at most one token, i.e. we have ∀t ∈ T : P

p∈P

i(t, p) ∈ {0, 1}.

Show that the coverability problem for communication-free Petri nets is NP-hard by reducing

SAT. To this end, show how to construct in polynomial time from a given Boolean formula

ϕ in conjunctive normal form communication-free Petri net (N, M

0

, M

f

) such that M

f

is

coverable if and only if ϕ is satisfiable.

Referenzen

ÄHNLICHE DOKUMENTE

a) Present a reachability/safety game whose winning condition encodes the following property:. A play is won by the universal player if it does not visit both x

Hint: To avoid the following construction becoming excessively large, restrict the domain to vectors of states that can actually occur.. b) Construct the parity word automaton

Let G = (G, win) be a game such that each maximal play of G has finite length. Then G is deter- mined, i.e. We consider the reachability game on G with respect to B. As in the

The application should be complete in that it contains a main-window and optinally menus, a toolbar as well as a statusbar.. Also, the program should feature the

Finite Element Ocean Model (FEOM). Finite Element Sea Ice Ocean

Research institutions like the African Centre for Technology Studies (ACTS), the Africa Sand Dam Foundation (ASDF), the African Technology Policy Studies Network (ATPS),

In addition, there will be a dedicated MARGO poster session and we would like to invite all members of the group to take up this opportunity to present the latest results

Beside the huge amount of saltwater coming in, their oxygen content is of high importance: On December 18, the whole water body in the Arkona Basin was well supplied with oxygen..