Algorithm - Dynamic programming solver for sensors/targets problem.