Problem: Given a binary tree, we install cameras on the nodes of the tree. Each camera at a node can monitor its parent, itself, and its immediate children. Calculate the minimum number of cameras needed to monitor all nodes of the tree.
Solution:
The basis of the induction is that leafs (if it is not trivial case) has no camera.
This is the key in this greedy approach.
The elegant way to express this, introduced by lee215, is by coloring not existing nodes by COVERED.