In cognitive psychology, problem solving is an essential aspect that explores how individuals think and arrive at solutions. One common method used for problem solving is the algorithm, which provides a systematic, step-by-step procedure to find a solution. Which of the following best describes the use of an algorithm in problem solving?