Problem Statement:
https://codeforces.com/problemset/problem/461/B
I need code for the condition when number of components where root node is black i.e. dp[node][1]
and also given that this time, [node] is white.
so the recurrence relation would be like:
dp[i][1] = Sum of ( dp[it][1] * ( dp[i][0] / ( dp[it][0] + dp[it][1] ) ) )
My doubt is, I didn’t aware of this inverse function. Can anyone know about the Inverse function or have some resources about this function?