mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 16:59:36 +02:00
move legacy code to separate branch
This commit is contained in:
parent
68a30c8ee6
commit
11b4c48c3a
3528 changed files with 14477 additions and 53258 deletions
1
Data/Questions/ingsw/1122_30/correct.txt
Normal file
1
Data/Questions/ingsw/1122_30/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
time(0)/(1 - p)
|
10
Data/Questions/ingsw/1122_30/quest.txt
Normal file
10
Data/Questions/ingsw/1122_30/quest.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
img=https://i.imgur.com/jQT3J83.png
|
||||
Si consideri il processo software con due fasi (0 ed 1) rappresentato con la Markov chain in figura. Lo stato iniziale 0 e p è in (0, 1). Il tempo necessario per completare la fase x è time(x). La fase 0 è la fase di design, che ha probabilità p di dover essere ripetuta causa errori. La fase 1 rappreenta il completamento del processo software, e quindi time(1) = 0.
|
||||
|
||||
Il tempo di una istanza del processo software descritto sopra è la somma dei tempi degli stati (fasi) attraversati (tenendo presente che si parte sempre dallo stato 0.
|
||||
|
||||
Quindi il costo Time(X) della sequenza di stati X = x(0), x(1), x(2), .... è Time(X) = time(x(0)) + time(x(1)) + time(x(2)) + ...
|
||||
|
||||
Ad esempio se X = 0, 1 abbiamo Time(X) = time(0) + time(1) = time(0) (poichè time(1) = 0).
|
||||
|
||||
Quale delle seguenti formule calcola il valore atteso del costo per completare il processo software di cui sopra
|
1
Data/Questions/ingsw/1122_30/wrong 1.txt
Normal file
1
Data/Questions/ingsw/1122_30/wrong 1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
time(0)/(p*(1 - p))
|
1
Data/Questions/ingsw/1122_30/wrong 2.txt
Normal file
1
Data/Questions/ingsw/1122_30/wrong 2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
time(0)*(1 - p)/p
|
Loading…
Add table
Add a link
Reference in a new issue