Maximum Independent Set
- Select a set of vertices from a graph to maximize the sum of weights selected, no two vertices are connected.
- NP-complete in general case, but linear time in a tree.
- Similarly: matching problem, in which edges are selected.
- Need to consider three values for one node
- : optimal matching of subtree at , included
- : not included.
To simplify the calculation of the second term, we have
so that can be expressed as