A1. The meaning of k [2 points]
A. k counts completed synchronous sweeps.
Detailed Chinese explanation →Concise English answers for checking and exam phrasing. See the Chinese worked solutions for all intermediate steps and common mistakes.
A. k counts completed synchronous sweeps.
Detailed Chinese explanation →B. Include key possession in the state so that it contains the information needed to predict the next outcome.
Detailed Chinese explanation →A. y = 5.
Detailed Chinese explanation →D. vπ(s) = 5.
Detailed Chinese explanation →C. The one-step TD target bootstraps from V(Sₜ₊₁).
Detailed Chinese explanation →B. E[∇ log π(A|s) b(s) | s] = 0.
Detailed Chinese explanation →C. G₀ = 2.
Detailed Chinese explanation →D. Shared parameters allow updates to generalize across states.
Detailed Chinese explanation →B. Each greedy action has probability 0.45.
Detailed Chinese explanation →C. Q = (5, 1).
Detailed Chinese explanation →Prediction evaluates a fixed policy; control searches for an optimal policy. Policy iteration alternates evaluation and greedy improvement. max returns a value, whereas argmax returns an action attaining that value.
Detailed Chinese explanation →GLIE requires infinite exploration and a policy that becomes greedy in the limit. It is a property of a policy sequence. Fixed positive ε generally violates the second condition; εₜ → 0 alone does not ensure the first.
Detailed Chinese explanation →DQN selects and evaluates with the target network. Double DQN selects with the online network and evaluates with the target network, reducing the coupling that contributes to maximization bias.
Detailed Chinese explanation →PER samples experiences according to priorities such as absolute TD errors. Positive offsets retain sampling support; importance weights compensate for nonuniform sampling, with β controlling the correction strength.
Detailed Chinese explanation →REINFORCE weights the score-function gradient by Gₜ−b(Sₜ). The actor learns the policy; the critic estimates values. A one-step TD error can serve as an approximate advantage signal.
Detailed Chinese explanation →P rows: (1/2,1/2,0), (1/2,0,1/2), (0,0,1). r=(2,-1,0). Returns: (1.5,-1). v=(28/11,-4/11). V₁=(2,-1), V₂=(2.25,-0.5).
Detailed Chinese explanation →vπ=(16/11,26/11); qπ=(19/11,13/11;4,8/11). π′=(stay,cash), vπ′=(2,4). At S both actions are greedy with respect to vπ′.
Detailed Chinese explanation →V₁=[0,-1,-1; -1,-1,0]. V₂=[0,-1.75,-1.75; -1.75,-1.75,0]. Both requested V₃ values equal -2.3125. Action values at (1,2): (-2.75,-2.75,-1,-2.75); greedy action: left.
Detailed Chinese explanation →Returns: (2.5,1,4). First-visit MC: (1.25,1.5). Every-visit sample means: (3.25,1). Online TD: A→1.5, B→0.875, A→2.75.
Detailed Chinese explanation →Probabilities: (0.8,0.1,0.1). SARSA: y=0.6, Qnew=0.9. Q-learning: y=3, Qnew=1.5. DQN: 2.2 (a₂); Double DQN: -0.2 (a₁). Terminal: y=-1, Qnew=0.5.
Detailed Chinese explanation →vπ₀=(2/3,4/3). qπ₀=(2,2/3;4,4/3). π₁=(safe,collect), v*=(2,4). Both (safe,collect) and (travel,collect) are optimal. V₁=V₂=(2,4).
Detailed Chinese explanation →