# Heuristic

*noun*

say it: **“hyoo-RIS-tik”** **/hjʊˈrɪstɪk/**

A simple rule of thumb, written from experience, used to make a decision quickly without exact calculation or a learned model.

## What is a **heuristic**?

A **heuristic** is a rule of thumb a person writes by hand, such as "Saturdays are busy, so bake more". A short
heuristic is often the right first step; machine learning earns its place when the rules get too many and too tangled
to keep up to date.

```python
def loaves_to_bake(day):
    return 60 if day == "Saturday" else 50   # a heuristic: no model
print(loaves_to_bake("Saturday"))   # 60
```

## In a sentence

- “The owner's **heuristic** was to bake more bread on Saturdays.”
- “A three-line **heuristic** beat the first model and was far easier to explain.”

Level: Apprentice · [More AI Basics terms at this level](https://www.ask-codey.com/glossary?category=ai&level=2)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/heuristic
