InĀ mathematicsĀ andĀ computer science, anĀ algorithm is a finite sequence ofĀ well-definedĀ instructions, typically used to solve a class of specific problems or to perform a computation.
Algorithms are used as specifications for performingĀ calculations,Ā data processing,Ā automated reasoning,Ā automated decision-makingĀ and other tasks.
In contrast, a heuristic is a technique used in problem solving that uses practical methods and/or various estimates in order to produce solutions that may not be optimal but are sufficient given the circumstances.
Last Updated on 20 hours by pinc