Probability (expectation) dp-a kind of dp

Mathematical expectation P=Σ each state * the corresponding probability.
The conventional dp[x] may indicate how much the state has reached x, and the final answer is dp[n]. The mathematical expectation of dp[x] generally indicates how much worse the state of x is, and the final answer is dp[0].
Insert picture description hereAnd so on

https://blog.csdn.net/LLL_yx/article/details/81262564
The best learning probability dp article I have seen so far

Guess you like

Origin blog.csdn.net/qq_42882717/article/details/100752758