3. Petri net properties Flashcards

1
Q

What is soundness?

A
  • For every marking reachable from [i], you can reach the marking [f]
  • No marking m can be reached with m > [f] (If there is 1 token in f then should only be one token there, no more tokens there or in rest of the net)
  • There are no dead transitions (for every transition t, a marking m can be reached from [i] such that m enables t, i.e. m ≥ *t)

**The short circuited net (adding tau transition from end place to start place) needs to be live and bounded! (so no deadlocks). **
i.e. bounded, no dead transitions, only deadlock = [f], short circuit connects f to i

Would also be strongly connected.
(will be reversible but not sure where we derived this)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between workflow nets and petri nets?

A

Workflow nets are a particular type of petri nets meeting certain conditions:
- Single source place i (p_0 usually)
- Single final place f
- Every node is on a path from i to f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What should I not forget to do with petri nets?

A

Label every place and transition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is soundness important?

A
  • Unsound models may get stuck (deadlocks)- first condition avoids this
  • Unsound models may never be able to terminate (livelocks)- second condition avoids this- there is always a way to terminate
  • Unsound models cannot be simulated / analyzed (because too big?)
  • Unsound models cause problems in the processes they model! (how?)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is reachability?

A

Given a Petri net in a marking m1. Is it possible to execute a sequence of transitions to reach some marking m2?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is boundedness?

A

If we have marking m1, is the number of tokens in each place p less than k in all reachable markings m2 (for all m2 and p holds m2(p) ≤ k)

If we can draw the marking/ reachability graph for a petri net then it must be bounded

Based on certain initial marking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a dead transitions?

A

If we have marking m1, is it possible to reach a marking m2 in which transition t is enabled (or m2 ≥ preset of t)? If so, t is not dead.

Based on certain initial marking

dead at a marking m if it is NEVER enabled at any marking reachable from m

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a deadlock?

A

If we have marking m1, is it possible to reach a marking in which no transition is enabled (or for all transitions t, m2 < preset of t)

There is a state from which you cannot fire any transitions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is reversibility?

A

If the initial marking is m1, does it hold that for all reachable markings m2, we can always reach m1 again?

Cannot be reversible and have a deadlock (except if have empty place with arc to empty transition)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is liveness?

A

For every reachable marking m1 and transition t, Is it possible to reach a marking m2 in which t is enabled (m2 ≥ *t)

Can always fire every transition again

For example, cyclic petri nets or petri nets starting with a transition with an empty preset (can always fire again)

Cannot be live and have a deadlock, cannot have a dead transition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does it mean if a petri net is terminating?

A

Will always reach a marking where no transitions are enabled

**If there is ANY infinite run then it is not terminating

If reachability graph is finite and acyclic (can’t just keep going back to the beginning, have to have terminating states)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a home marking?

A

A marking that you can always return to (reachable from every reachable state). Could be a deadlock!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the difference between deadlock free and liveness?

A

Deadlock free: can always make progress. Liveness: can always make progress and fire every transition again

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does a petri net having a deadlock mean for boundedness, dead transitions, reversibility and liveness?

A

boundedness: nothing, could still have empty preset transition somewhere in PN and keep firing this so avoid deadlock
dead transitions: if in deadlock state then all transitions dead (but in prior markings no relation)
reversibility: cannot be reversible if have deadlock, would not be able to return to initial marking (unless deadlock is in initial marking?)
liveness: no because cannot return to another marking once in deadlock state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can you be bounded and reversible?

A

Yes, limit on number of tokens and just need to get back to same marking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can you be bounded and not reversible?

A

Yes, limit on number of tokens and not able to get back to certain marking (probably initial)

17
Q

Can you be not bounded and reversible?

A

Yes, allow infinite number of tokens but allow us to consume them as well (so can get back to same marking)

18
Q

Can you be not bounded and not reversible?

A

Yes, allow infinite number of tokens but we cannot consume them so just get more and more tokens (can’t go back to initial marking)

19
Q

Can you be live and deadlock free?

A

Yes, deadlock free is required for liveness! We should always be able to reach some marking where we can trigger transition t. If we are in a deadlock then no transition is enabled so we cannot reach such a marking

20
Q

Can you be live and not deadlock free?

A

No, deadlock free is required for liveness! We should always be able to reach some marking where we can trigger transition t. If we are in a deadlock then no transition is enabled so we cannot reach such a marking

21
Q

Can you be not live but still deadlock free? Consider this also in combination with reversibility

A

Yes!
Two possible approaches using cycles:
1- Reversible: Just have one transition that can never be enabled with the current marking (we can get back to all markings we reach, and keep firing, but always one transition we can’t fire)
2- Irreversible: Have one transition that we can fire at start but never again (cannot get back to original marking and always have one transition we can’t fire but cycle ensures no deadlock)

22
Q

You have an empty place with an arc to a transition. What properties does this have?

A

Bounded, reversible, not live, not deadlock free

CONFUSED BY THIS- it’s not reversible right??- yes think so, cause we can always reach the initial marking (cause we can’t leave it)

23
Q

How to represent a petri net as a linear equation system?

A

Vector m1 represents the current marking (number of tokens in each place)

Incidence matrix C (places = rows, transitions = rows) with number -1, 0, 1 depending on the effect of tokens in place from firing transition

Marking equation:
m1+ Cx = m2 (x is a vector with the firing of transitions)

24
Q

If we have a petri net, incidence matrix C , and m’ marking reachable from marking m then what?

A

Then m + Cx = m’ has an integer solution for vector x

(Inverse is not true!)

So if no integer solution then definitely not reachable. But if integer solution then possible still not reachable… (the integer solution might not actually be feasible in petri net)

25
Q

What is a free choice petri net?

A

If two transitions share elements in a preset then they should have the exact same input places or not share any input places

Non free choice will be (more?) dependent on order in which transitions enabled at the same time are fired

Since any two transitions have the same preset (or do not share any nodes), when there are tokens at every place in the preset all these transitions are enabled. There is therefore free choice of which transaction will fire.

All decisions are made locally by transitions sharing input places

Liveness and boundedness can be decided in polynomial time

26
Q

If we have a sound, free-choice workflow net and know that m + Cx = m’ has an integer solution for vector x then?

A

Then m’ is reachable from m (so can do inverse)

27
Q

Go over pictures in doc

A

Yes?

28
Q

What are block structured Petri nets?

A

A special case of free-choice Petri nets.

Basis is a trivial workflow net with a single transition. (Then merge input and output places?)

29
Q

If you have a marking which enables one transition but firing this transition does not change the marking. Is this a deadlock/ terminating?

A

No, because can still fire a transition (more a livelock)

30
Q

What would the properties be of a set of places without transitions?

A

Would have terminal state but also still be live

31
Q

What is the definition of a safe petri net?

A

The maximum number of tokens in each place does not exceed 1

32
Q

What is a place without transitions?

A

Live