# Heuristic

> A rule of thumb. It finds a good answer fast, but not always the best one.

**Field:** Artificial Intelligence  
**Category:** Foundations  
**Also known as:** Rule of Thumb, Heuristic Method

## Think of it like

Think of it like looking for lost keys. You look first in the last place you had them.

## Definition

A heuristic is a rule of thumb that finds a good answer fast without promising the best one. It cuts down how many choices a program has to try. A map app might first try roads that point toward the goal. Chess programs score a board by counting pieces instead of playing every game to the end. Heuristics trade a little accuracy for a lot of speed.

## Example

Jack's delivery app plans 40 stops. Checking every order would take years, so it always drives to the nearest stop not yet visited. The route is good, not perfect.

## Why it matters

Many problems are too big to solve perfectly. Heuristics are how programs give an answer in time.

## Common mistake

Trusting a heuristic as if it were always right. It can miss the best answer, and sometimes badly.

## Three principles

- **Fast, not perfect.** Good enough, and in time.
- **Cuts the choices.** Tries likely paths first.
- **Can be wrong.** The best answer is not promised.

## Related terms

- [Symbolic AI](https://learn.benibix.com/term/ai/symbolic-ai)
- [Greedy Algorithm](https://learn.benibix.com/term/development/greedy-algorithm)
- [Algorithm](https://learn.benibix.com/term/development/algorithm)
- [Evolutionary Algorithm](https://learn.benibix.com/term/ai/evolutionary-algorithm)

## Taught in

- [Heuristics and Evolutionary AI](https://learn.benibix.com/learn/ai-foundations/heuristics-and-evolutionary-ai): AI Basics, 4/10

![The same seven delivery stops drawn twice. On the left a route found by always going to the nearest next stop, with one long jump back across the map. On the right the best route, a tidy loop, found by checking every order.](https://learn.benibix.com/diagrams/ai-heuristic-route.svg)

---

Source: https://learn.benibix.com/term/ai/heuristic
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
