A heuristic is a practical approach or rule of thumb used to solve problems efficiently when an optimal solution is impractical or unknown. Heuristics are commonly used in artificial intelligence and decision-making processes to guide problem-solving.