The example that we will use to demonstrate Baker's technique is the maximum weight independent set problem.
Notice that the above algorithm is feasible because each S ℓ {\displaystyle S^{\ell }} is the union of disjoint independent sets.
Dynamic programming is used when we compute the maximum-weight independent set for each G i ℓ {\displaystyle G_{i}^{\ell }} . This dynamic program works because each G i ℓ {\displaystyle G_{i}^{\ell }} is a k {\displaystyle k} -outerplanar graph. Many NP-complete problems can be solved with dynamic programming on k {\displaystyle k} -outerplanar graphs. Baker's technique can be interpreted as covering the given planar graphs with subgraphs of this type, finding the solution to each subgraph using dynamic programming, and gluing the solutions together.