I have a rather trivial doubt in SARSA and Q learning. Looking at the pseudocode of the two algorithms in Sutton&Barto book, I see the policy improvement step is missing.
How will I get the optimal policy by the two algorithms? Are they used to find only the optimal action values? In that case, at the end of training, should we iterate over all states to find the optimal policy by policy improvement theorem?