mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-05-06 11:39:37 +02:00
Add new ingsw questions
This commit is contained in:
parent
258ee4e2cf
commit
0873165c52
800 changed files with 5605 additions and 0 deletions
1
Ingegneria del Software/0210_26/correct.txt
Normal file
1
Ingegneria del Software/0210_26/correct.txt
Normal file
|
@ -0,0 +1 @@
|
|||
c(0)/(1 - p)
|
6
Ingegneria del Software/0210_26/quest.txt
Normal file
6
Ingegneria del Software/0210_26/quest.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
img=https://unspectacular-subdi.000webhostapp.com/0210_domanda_26.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 costo dello stato (fase) x è c(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 c(1) = 0.
|
||||
Il costo di una istanza del processo software descritto sopra è la somma dei costi degli stati attraversati (tenendo presente che si parte sempre dallo stato 0.
|
||||
Quindi il costo C(X) della sequenza di stati X = x(0), x(1), x(2), .... è C(X) = c(x(0)) + c(x(1)) + c(x(2)) + ...
|
||||
Ad esempio se X = 0, 1 abbiamo C(X) = c(0) + c(1) = c(0) (poichè c(1) = 0).
|
||||
Quale delle seguenti formule calcola il valore atteso del costo per completare il processo software di cui sopra
|
1
Ingegneria del Software/0210_26/wrong1.txt
Normal file
1
Ingegneria del Software/0210_26/wrong1.txt
Normal file
|
@ -0,0 +1 @@
|
|||
c(0)/(p*(1 - p))
|
1
Ingegneria del Software/0210_26/wrong2.txt
Normal file
1
Ingegneria del Software/0210_26/wrong2.txt
Normal file
|
@ -0,0 +1 @@
|
|||
c(0)*(1 - p)/p
|
Loading…
Add table
Add a link
Reference in a new issue