🧭Heuristic
Also known as Rule of Thumb, Heuristic Method
A rule of thumb. It finds a good answer fast, but not always the best one.
Think of it like
Think of it like looking for lost keys. You look first in the last place you had them.
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.
Definition
Common mistake
Key takeaways
- 1Fast, not perfect. Good enough, and in time.
- 2Cuts the choices. Tries likely paths first.
- 3Can be wrong. The best answer is not promised.