Two Sweeps Of Value Iteration

A three-state MDP with γ=0.9\gamma = 0.9. State GG is terminal with v(G)=0v(G) = 0 forever. All transitions are deterministic.

state action reward next state
s1s_1 right 0 s2s_2
s1s_1 stay 0.5 s1s_1
s2s_2 right 10 GG
s2s_2 left 0 s1s_1

Run synchronous value iteration, vk+1(s)=max⁡a[r(s,a)+γ vk(s′)]v_{k+1}(s) = \max_a \left[ r(s,a) + \gamma, v_k(s') \right], from v0=0v_0 = 0 everywhere. Give v2v_2 and the greedy action in s1s_1 after each sweep.

A

v2(s1)=10v_2(s_1) = 10, v2(s2)=10v_2(s_2) = 10; both states reach the goal, so both inherit its reward of 10.

B

v2(s1)=9v_2(s_1) = 9, v2(s2)=10v_2(s_2) = 10; the greedy action in s1s_1 is stay after sweep 1 and right after sweep 2.

C

v2(s1)=9v_2(s_1) = 9, v2(s2)=10v_2(s_2) = 10; the greedy action in s1s_1 is right after both sweeps, since each sweep already maximises over actions.

D

v2(s1)=0.95v_2(s_1) = 0.95, v2(s2)=10v_2(s_2) = 10; each sweep evaluates the action the current greedy policy selects, and in s1s_1 that action is stay.