Why does the choice of root not affect the result in some tree DP problems?

Правка en1, от Lavishe, 2025-05-01 10:49:30

Greetings everyone, I have a question regarding certain tree DP problems — for example, this one: https://cses.fi/problemset/task/1130. Why is it that we can arbitrarily choose node 1 as the root (rather than some other node $$$u$$$ without it affecting the final outcome?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Lavishe 2025-05-01 10:49:30 346 Initial revision (published)