Professional Documents
Culture Documents
Lec2 Discrete
Lec2 Discrete
Discrete Dynamics
Indranil Saha
Examples:
a state of a traffic light indicates the current color of the
light.
a state of a sequential computer program indicates the
current values of all program variables together with the
current value of the program counter that indicates the next
program statement to be executed.
In a synchronous hardware circuit, a state typically
represents the current value of the registers together with
the values of the input bits.
Transitions specify how the system can evolve from one state to
another.
Examples:
In the case of the traffic light, a transition may indicate a
switch from one color to another.
For the sequential program, a transition typically
corresponds to the execution of a statement and may
involve the change of some variables and the program
counter.
In the case of the synchronous hardware circuit, a
transition models the change of the registers and output
bits on a new set of inputs.
Examples:
x equals 0 or x is smaller than 200 for some given integer
variable x.
The velocity of a vehicle is more than 60 km/hr.
A robot is present in a location.
α
[
Post(s, α) = {s0 ∈ S | s −
→ s0 }, Post(s) = Post(s, α),
α∈Act
[ [
Post(C, α) = Post(s, α), Post(C) = Post(s).
s∈C s∈C
α
[
Pre(s, α) = {s0 ∈ S | s0 −
→ s}, Pre(s) = Pre(s, α),
α∈Act
[ [
Pre(C, α) = Pre(s, α), Pre(C) = Pre(s).
s∈C s∈C
Post(s) = ∅.
Definition (Execution)
An execution of a transition system is an initial, maximal
execution fragment.
The state graph is obtained by omitting the state labels and the
transition labels from the transition system.
Definition (Path)
A path of transition system TS is an initial, maximal path
fragment.
Definition (Trace)
Let TS be a transition system (S, Act, →, I, AP, L) without
terminal state.
The trace of the infinite path fragment π = s0 s1 . . . is defined as
Trace(π) = L(s0 )L(s1 ) . . ..
The trace of the finite path fragment π̂ = s0 s1 . . . sn is defined
as Trace(π̂) = L(s0 )L(s1 ) . . . L(sn ).
Mutual Exclusion
Traffic Light