a) In this formula tn is most recent information. Tn stores past history.The parameter α controles the relative weights of recent and past history in out prediction. |
b) let α=0.5 T1 = T0 * α + ( 1 - α ) * t0 T1 = (0.5 x 7) + ( (1 - 0.5) x 6 ) T1 = T1 * α + ( 1 - α ) * t1 T3 = T2 * α + ( 1 - α ) *
t2 T4 = T3 * α + ( 1 - α ) *
t3 T5 = T4* α + ( 1 - α ) *
t4 |
c) 1) if α=0 Tn+1 = α tn + (α-1) Tn =0*tn + (0-1)Tn = 0 - Tn = - Tn (Time always is in postive) so = Tn
so T0 = T1 = T2 = T3 = T4...............=Tn = 100 milliseconds |
2) if α=1 Tn+1 = α tn + (α-1) Tn =1 *tn + (1 -1)Tn = tn - 0 * Tn = tn
so T0 = T1 = T2 = T3 = T4...............=Tn = tn = 10 milli seconds |
The exponential average formula used to predict the length of the next CPU burst is given...
Consider the exponential average formula used to predict the length of the next CPU burst. What are the implications of assigning the following values to the parameters used by the algorithm? a. ? = 0 and ?0 = 100 milliseconds b. ? = 0.5 and ?0 = 10 milliseconds