• Non ci sono risultati.

Test of Discrete Event Systems - 26.11.2013

N/A
N/A
Protected

Academic year: 2021

Condividi "Test of Discrete Event Systems - 26.11.2013"

Copied!
6
0
0

Testo completo

(1)

Test of Discrete Event Systems - 26.11.2013

Exercise 1

An electronic device driving the opening of a safe generates one of three numbers, 0, 1, or 2, according to the following rules:

i) if 0 was generated last, then the next number is 0 again with probability 1/2 or 1 with probability 1/2;

ii) if 1 was generated last, then the next number is 1 again with probability 2/5 or 2 with probability 3/5;

iii) if 2 was generated last, then the next number is either 0 with probability 7/10 or 1 with probability 3/10.

Moreover, the first generated number is 0 with probability 3/10, 1 with probability 3/10, and 2 with probability 2/5. The safe is opened the first time the sequence 120 takes place.

1. Define a discrete time Markov chain for the above described mechanism of opening the safe.

2. Compute the probability that the safe is opened with the fourth generated number.

3. Compute the average length of the sequence generated to open the safe.

Exercise 2

A communication node receives messages formed by sequences of bytes. The length L of a generic message (expressed in Kbytes) is a geometric random variable with parameter q = 2/3, namely P (L = n) = (1 − q)

n−1

q, n = 1, 2, . . .. The node has a dedicated buffer which may contain at most two messages waiting to be transmitted (independently of their length), and transmits over a dedicated line with constant channel capacity equal to 1000 Kbytes/s. During the time needed to transmit a single Kbyte, at most one new message may arrive with probability p = 3/5. If the buffer is full, the arriving message is rejected. It is assumed that the node is initially empty.

1. Define a discrete time Markov chain for the communication node.

2. Compute the probability that, after 5 ms from the initial time instant, there are exactly two messages in the node (one waiting and one being transmitted).

3. Compute the average number of messages in the node at steady state.

(2)
(3)
(4)
(5)
(6)

Riferimenti

Documenti correlati

Since the hair salon does not have a waiting room, customers arriving when both chairs are busy decide to abandon the hair salon.. Compute the probability that the third

Compute the probability that, the next time the lift truck arrives, it may load its maximum weight.. Compute the probability that the buffer is empty for at least one hour, and in

Customers arrive as generated by a Poisson process with average rate λ = 4 arrivals/hour, whereas the service time at the desk follows an exponential distribution with expected value

Compute the blocking probability of the system at steady state for those parts requiring preprocessing in M

A process in waiting state requests again the use of a CPU after a random time which follows an exponential distribution with expected value 1.12 ms.. At the moment of the request,

Assume that the customers arrive according to a Poisson process with rate λ = 0.1 arri- vals/min, and the service times in S are exponentially distributed with rate µ =

Compute the probability that the fourth calling customer is put on hold and, in such a case, the average waiting time to

The guest arrival process can be modeled as a Poisson process with rate 4 guests/hour, whereas the use of an equipment has an exponentially distributed duration with expected value