Skip to content

DP on a tree

Choosing a set of nodes with no two adjacent, maximising their total, on a tree rather than a line.

What is the state, and in what order is it computed?