Chapter 1 - Modeling Flashcards

Lecture 1

1
Q

Transformational systems

A
  • transform input values to output values
  • inputs are given at the start of the computation
  • output are returned when computation terminates

Examples: computing greatest common divisor, solving traveling salesman problem

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

Interactive systems

A
  • the system interacts with its environment (may include human users)
  • the system asks for new input during computation
  • usually, computation terminates at some point - but may also conceptually, run forever

Examples: online shops, flight booking application

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

Reactive systems

A
  • the system interacts with its environment (may include human users)
  • the system must react to input, external events (instead of asking for it)
  • often, the computation has no definitive end - system may, conceptually, run forever

Examples: control SW for planes, cars, robots, satellites, trains, power plants, ATMs, telecommunication systems

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

Discrete behavior

A
  • behavior interpreted as sequence of events and states

- states remain unchanged between events

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

Continuous behavior

A
  • the state of the system changes continuously over time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Hybrid behavior

A
  • continuous and discrete aspects are relevant

- in Cyber-Physical Systems

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

Timed behavior

A
  • events must / must not occur within certain time bounds
  • time scales can be different, example: flight booking > check in 24h before start
    airbag > open within milliseconds
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Stochastic behavior

A

in some systems where some events are known to occur with certain probabilities.

Examples: probabilities of hw faults,
data package lost, behavior of users, probability of virus infection

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

Data-intensiveness

A
  • some system are modeled with simple events > Coffee machine
  • more complex concepts must be modeled with more complex data structures > flight data in flight booking application

DIESE EVENTS SIND data intensive.

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

Labeled Transition Systems (LTSs)

A

is a basic modeling language for modeling reactive systems and are simple variant of automata.

  • consisting of states and transitions
  • transitions are labeled by actions
  • suited for modeling the discrete behavior of concurrent systems (systems with several modules/processes that are executed concurrently and communicate with each other)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

LTS (formal def.)

A

TS = (S, Σ, T, I)

  • S is a set of states
  • I ⊆ S is the set of initial states
  • Sigma is an alphabet. > An element in Sigma is called a symbol (or input, event, action)
  • T ⊆ S x Σ x S is a transition relation
  • A TS is called finite if S and Σ are finite.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Path in LTS

A

is a sequence of transitions (si, ai, s’i) that follow each other.

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

Word accepted by an LTS

A

— w = e0, e1, e2,… will be accepted if there exists a sequence of states in S, where the first state in sequence is an initial State and (si, ei, si+1) ∈ T from all i ≥ 0.

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

Language accepted by TS

A

-the set of maximal words accepted by an LTS, written L(TS).

> words have infinite length if there are no deadlocks
words can be finite if there are deadlocks

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

When modeling real-life systems, it is often convenient to…

A
  • consider variables
  • consider guarded transitions
  • side-effects of transitions on variables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do the processes communicate?

A

by sending messages over channels.

17
Q

Asynchronous messages:

A

messages can be stored in a FIFO buffer.

18
Q

Synchronous messages:

A

sending and receiving together are single event. (Special case of asynchronous msgs with buffer of size 0)

19
Q

what does “c!press” mean?

A

‘press’ is sent over channel c

20
Q

what does “c?press” mean?

A

‘press’ is received over channel c

21
Q

summary LTSs

A

LTSs are simple modeling language for modeling concurrent reactive systems.

  • concurrent processes can communicate via handshaking or shared variables
  • a network of concurrent LTSs can be composed (|| operator): mapped to another LTS that models the equivalent behavior

LTSs are simple, but

  • variables/conditions/assignments extension for richer modeling
  • programs written in other languages cam be mapped to LTSs

Certain properties of LTS models can be proven automatically via model-checking.