Gap Strategy In Dynamic Programming