Answer:
On taking all the $4$ previous run times, the prediction
$\begin {align} =& (((40 + 20) / 2 + 40) /2 +15) / 2 \\ =& ((30 + 40 / 2 + 15 ) /2 \\=& (35 + 15)/2 \\=& 25 \end {align}$
On taking only $2$ previous executions, the prediction$ = \frac{40 + 15}{2} = 27.5$
`JEET Sir, to get the answer we also need the predicted times for the last four runs as well or at least the predicted time of the oldest run, Because the formula in ageing is this: T(n) = a*t(n-1) + (1-a)T(n-1) What do u say?
64.3k questions
77.9k answers
244k comments
80.0k users