Tree DP. A simple bug brings up lots of trouble.