A heuristic is a problem-solving technique that offers a practical, often speedy solution when classic methods might be too slow or fail. While it might not always produce the best possible or perfect solution, it generates a satisfactory one in situations where a perfect solution might be impractical due to time or computational constraints.