Reinforcement Learning: Theory and Algorithms