I am trying to understand the problem below, represented as an MDP with four states (PU, PF, RU, and RF) and two actions (AS).
Let's consider V(RF), the value of the state RF. At time-step $h$, V(RF) = 10. When we go to the previous time-step $h-1$, V(RF) increases to 19.
Why is the value of RF increasing backward, i.e. at time-step $h$, which is the last step, it's 10, but in $h-1$ it's 19?
Also, when I apply the Bellman equation, I am not getting the value of V(RF) at time-step $h-2$, which is 25.08, according to the table.
Below is my solution which I am applying on V(RF):
Lets suppose for RF, I know that
Vh (RF) = max {R(RF,A), R(RF,S)}
= max ({10,10}
Vh (RF) = 10
**for h-1**
Vh-1 (RF) = max R(RF,act) + gamma E (summation state) P(State|RF,act) Vh(State)
= max {10+0.9(1*0), 10+0.9(0.5(10)+0.5(10))}
= max (10,19)
**for h-2**
Vh-2(RF) = max R(RF,act) + gamma E(summation state) P(State|RF,act) Vh(State h-1)
= max {19+0.9(1*0), 19+0.9(0.5(10)+0.5(10))}
= 28.0
So, in the above scenario, the reward is 0.9, but I am not sure how we get the third result in V(RF) as 25.08. Where are we using this last part Vh(State)
from the equation?