Machine Learning, Markov Decision Process, Reinforcement Learning.
but in short, we can use the Bellman Equations. These equations allow us to express the values of states as values of other states. Meaning if we know the value of some state, we can use it to calculate the value of other states. We can use these equations to derive the Bellman equation for both