Hello Everyone ,I am trying to solve this problem for some time now.I could not find an explanation in English for it anywhere . The question is related to DP (on trees) . In Brief the problem asks you to find the minimum number of edges to be removed to isolate a subtree of size p .The original problem statement can be seen here.Thanks in advance :)
I think it is a dp[v][sz] with knapsack-like recalc
Thanks adelkhalilov .But Can you please elaborate on how to do transitons ??
no
A similar problem Barricades appeared in Algorithmic Engagements 2007. That has been discussed in the book Looking For A Challenge, the preview of which includes this problem. :)
Thank you satyaki3794 for help.
you are welcome