strategy of algorithm problem solving