during problem solving do you use primarily algorithms or heuristics what are advantages eac

During problem solving, do you use primarily algorithms or heuristics? What are the advantages of each?