Answer:
Using an algorithm guarantees a solution to the problem (as long as the algorithm is followed correctly and nothing interferes with the problem solving process).
Explanation:
Algorithms are a step-by-step guide on how to solve specific problems, and they have the same outcome every time they are used as long as you follow them exactly.
The heuristic strategy uses the experience of our past to solve a problem (when you identify the problem and you have an idea of how to solve it), but can't guarantee a correct solution.
Trial and error are when you try different options, one by one until the problem is solved.
Subgoaling consists of making a separation of the problem in smaller steps that are easier to solve.