Answer:
An Algorithm is a clearly defined set of instructions to solve a problem, Heuristics involve utilising an approach of learning and discovery to reach a solution. So, if you know how to solve a problem then use an algorithm. If you need to develop a solution then it's heuristics.
Step-by-step explanation: