defined the problem, and the algo