• Non ci sono risultati.

Exam of Discrete Event Systems - 31.01.2014

N/A
N/A
Protected

Academic year: 2021

Condividi "Exam of Discrete Event Systems - 31.01.2014"

Copied!
10
0
0

Testo completo

(1)

Exam of Discrete Event Systems - 31.01.2014

Exercise 1 (both parts/only first part)

A mobile robot without steering wheels receives three types of signals from a remote controller:

STOP, FORWARD and BACKWARD. If the robot is still, sending of the signal STOP is deac- tivated. Similarly, if the robot moves forward or backward, sending of the signals FORWARD and BACKWARD is deactivated, respectively. A timer is associated to each signal. When the corresponding timer expires, the signal is sent. The timer of a signal is reset every time the robot changes state (for instance, the robot is still and starts moving forward, etc.). For the sake of simplicity, it is assumed that the change of direction (for instance, from moving forward to moving backward) is instantaneous.

1. Taking as origin the position of the robot at time zero with robot still, determine the po- sition of the robot relative to the origin after 60 seconds, assuming that the robot moves with speed v = 1 m/s in both directions, and the timers associated with the three signals have the following durations expressed in seconds: VSTOP = {7, 14, 6, 5, . . .}, VFORWARD = {15, 12, 10, 9, . . .}, VBACKWARD = {20, 10, 8, 12, 15, 7, . . .}.

Assume that the timers associated with the signals STOP and BACKWARD follow uniform distri- butions over the intervals [7,14] and [5,10] seconds, respectively, while the timer associated with the signal FORWARD has constant durations equal to 8.5 seconds.

2. Compute the cumulative distribution function of the state holding time when the robot moves forward.

3. Compute the probability that the robot, initially still, moves backward and then stops again.

Exercise 2 (both parts/only first part)

Consider the production system in the figure, composed by two machines M1and M2, and a unitary buffer B. Raw parts arrive as generated by a Poisson process with rate λ = 0.2 parts/minute. An arriving part requires preprocessing in M1 with probability p = 1/3. If M1 is busy, an arriving part requiring preprocessing in M1 is rejected. Similarly, an arriving part not requiring preprocessing in M1 is rejected if B is full. After preprocessing in M1, the part must be processed in M2, provided that M2 is available. If this is not the case, the pre-processed part is either stored in B (provided that B is empty) or kept by M1(blocking state) until B becomes empty. Tasks in M1 and M2have random durations following exponential distributions with expected value 180 and 150 seconds, respectively.

M1

B M2

1. Compute the average state holding time when both machines are working and B is empty.

2. Assuming that both machines are working and B is full, compute the probability that the system is empty before a new arriving part is accepted.

(2)

3. Compute the probability that there are five arrivals of parts in 15 minutes and all require preprocessing in M1.

Only both parts:

4. Verify the condition λef f = µef f for the system at steady-state.

5. Compute the average waiting time in B of a generic part at steady state.

Exercise 3 (only second part)

Consider the queueing network in the figure, where each node is represented by a M/M/1 queueing system. Server S1 has a service rate µ1 = 16 services/minute, while server S2 has a service rate µ2 = 144 services/minute. External arrivals are generated by Poisson processes with rates λ1 = 7 arrivals/minute and λ2 = 1/9 arrivals/minute, respectively. A fraction p = 1/16 of parts processed by S1 is fed back to node 2, while a fraction q = 1/11 of parts processed by S2 is fed back to node 1.

S1

S2

λ1

λ2

p

q

1. Determine the average system time of a generic part at steady state.

Exercise 4 (both parts/only second part)

Four players sit around a table, and are numbered from 1 to 4 clockwise. They play according to the following rules. At each round of the game, the active player tosses two dies. If the sum of the results is an even number different from 12, the next active player will be the one on the right-hand side. If the sum of the results is an odd number, the next active player will be the one on the left-hand side. Otherwise, the next active player will be the one in front of the currently active player.

1. How many rounds of the game does a player wait on average before being active again?

Justify the answer.

2. Assuming that player 1 starts the game, compute the probability that player 4 is never active through the first 10 rounds of the game.

3. Assuming that player 1 starts the game, compute the probability that, when player 1 will be active again, the other three players have been active at least once.

(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)

Riferimenti

Documenti correlati

the Relational type are used to represent classical relationships between two nodes, T emporal edges are used to store represent the update of the content of a given node (it allows

escena (produciendo pues un efecto metateatral) para montar una folía muy peculiar: su propia fiesta de “nuevos entremeses” o piezas cómicas breves que aprovecha

L’attività microbicida delle frazioni è stata valuta- ta identificando la Minima Concentrazione Inibente (MIC) nei confronti dei ceppi di riferi- mento di tre microrganismi fra

While typical transient observations, such as those of GRBs, are at cosmological distances that hinder the detection prospects of very high-energy photons due to

The primary outcome of this study was stroke recurrence in pregnancy or the postpartum period defined as 6 weeks after delivery.. Results: Forty-eight pregnancies with a history

P atients undergoing primary percutaneous coronary inter- vention (pPCI) for ST-segment elevation myocardial infarction (STEMI) are at high risk of acute kidney injury (AKI),

The combination is based on analyses targeting the five main Higgs boson pro- duction mechanisms (gluon fusion, vector boson fusion, and associated production with a W or Z boson, or

Figure 4.1: Correlation heatmap of the following aggregate measures of Individual Mobility Net- works: Amount of IMNs (#nets), Average total distance driven in km (Km driven),