• Keine Ergebnisse gefunden

=(1 0 0 0) andthefinalmarkingis = ConsiderthePetrinet = withmultiplicitesasdepictedbelow.Theinitialmarkingofinterestis ( )= ( )= ( )=0terminatesinamarking with ( ) ConcurrencytheoryExercisesheet2

N/A
N/A
Protected

Academic year: 2021

Aktie "=(1 0 0 0) andthefinalmarkingis = ConsiderthePetrinet = withmultiplicitesasdepictedbelow.Theinitialmarkingofinterestis ( )= ( )= ( )=0terminatesinamarking with ( ) ConcurrencytheoryExercisesheet2"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Concurrency theory

Exercise sheet 2 TU Braunschweig

Peter Chini, Prakash Saivasan Winter term 2019/20

Out: November 06 Due: November 12

Submit your solutions until Tuesday, November 12, during the lecture. You may submit in groups up to three persons.

Exercise 1: Addition and multiplication

Consider the (incomplete) Petri net containing places x, y and out depicted below.

x

y

additional places, transitions and arcs out

a) Add places and transitions to the net such that any computation of the net starting in M

0

(x) = m, M

0

(y) = n, M

0

(out) = 0 terminates in a marking M

f

with M

f

(out) = m + n.

(Terminating means that no transition is enabled anymore.)

b) Add places and transitions to the net such that any computation of the net starting in M

0

(x) = m, M

0

(y) = n, M

0

(out) = 0 terminates in a marking M

f

with M

f

(out) ∈ {0, . . . , m · n}.

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

Exercise 2: Rackoff ’s bound

Consider the Petri net N = ({1, 2, 3, 4}, {a, b, c, x}, in, out) with multiplicites 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

2 c

4 3

a

b

3

4

Compute the values m(3, M

0

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

(2)

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

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

Show that the coverability problem for communication-free Petri nets is NP-hard by reducingi from 3-SAT.

To this end, show how to construct in polynomial time from a given Boolean formula ϕ in conjunctive normal form a communication-free Petri net (N, M

0

, M

f

) such that M

f

is coverable if and only if ϕ is satisfiable.

Hint: Introduce places for the parts of the formula. A computation of the net should first define a variable assignment, and then evaluate the formula under the assignment.

Remark: In fact, reachability and coverability for communication-free Petri nets are NP-

complete.

Referenzen

ÄHNLICHE DOKUMENTE

c., uhistegevuse professor (Eesti Uhistegelise Liidu poolt ulevalpeetav öppekoht). - Könetunnid: ulikooli lektooriumis peale loenguid. - Köne- tunnid: sealsamas peale

[r]

Druck: Bundesamt für Landestopographie

Nagu lugeja juba teab, toimub suurte tehnoloogiliste süsteemide areng vastavalt mustrile, mida kirjeldan käesoleva töö suure tehnoloogilise süsteemi arengumudeli

Infrared spectra of molecular complexes of fluoroalcohols with simple reference bases like DME in different phases provide information primarily from the 0-H

c) Formulieren Sie den detaillierten Mechanismus der Reaktion für die Bildung des Hauptproduktes inklusive der Bildung des Elektrophils (auch Grenzstrukturen des Elektrophils

Nun ist aber eine Division nur sinnvoll, wenn der Divisor nicht null ist.. Man kann nicht durch null

2.) Welche Wellenlänge entspricht einem Elektron, das sich gemäß der Bohrschen Theorie im Wasserstoffatom auf der ersten Bahn bewegt. Setzen Sie das Ergebnis zum. Umfang