Therefore , this is a heuristic solution . If one seeks to use a heuristic as a means of solving a search or knapsack problem , then one must be careful to make sure that the heuristic function which one is choosing to use is an admissible heuristic . Given a heuristic function labeled as :