Example Of Dynamic Programming Algorithms For Biological Hazard