What is an Optimal Solution and How is it Different from a Heuristic?

  • Thread starter Thread starter steve22
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
steve22
Messages
4
Reaction score
0
Hi Guys

Can someone please explain what optimal solution is. I am a computing student and have to study algorithms.

I have done some research and i have the following information but i still don't know what op is. If anyone can explain what it is and were an example of a OP such as the travling salesmen or Suduko. :confused::confused:

Heres what i have at the moment

Optimal solution: In the context of the Optimizer, the optimal solution is the one with the lowest cost or highest return from among the set of scenarios analyzed by the Optimizer. Optimal solution which only uses a minimum possible number of moves.
 
Physics news on Phys.org
Optimal just means best. So the optimal solution would usually be the fastest or the one that produces the most accurate answer, although it could also be the solution which uses least memory or some other ocnsideration.

If you want to know the optimal solution to the traveling salesman problem that's a bit trickier.
 
steve22 said:
Heres what i have at the moment

Optimal solution: In the context of the Optimizer, the optimal solution is the one with the lowest cost or highest return from among the set of scenarios analyzed by the Optimizer.
This is a good working definition. To better understand what an optimal solution is, look up the difference between a heuristic and an optimal solution.