I am trying to implement the Q-Learning. The general algorithm from here is as below
In the statement
I just don't get it that should i implement the above statement of the original pseudo-code recursively for all next states which current state/action can lead us to and max it every time
OR just choose the maximum value of the next state with current action from the Action-State Q-Value table?
Thanks in advance.