Short answer
The difference is whether a correct algorithm exists at all.
- An undecidable problem has no algorithm that gives the right answer for every possible input, no matter how much time it runs.
- An unreasonable-time problem does have a correct algorithm, but its running time grows so fast that large inputs are impractical.
What undecidable means
Undecidability is a statement about possibility, not speed. The halting problem asks whether a given program, run on a given input, will eventually stop. Alan Turing showed in 1936 that no algorithm can answer this correctly for every program and input.
Any proposed checker must get some case wrong. Some specific cases are easy. A program with no loops always stops, so you can answer that case directly. The impossibility is about the general problem, which covers every program.
What unreasonable time means
An unreasonable-time problem has a correct algorithm, so the right answer always arrives eventually. The issue is the cost. Brute force algorithm examples make this clear. Checking every subset of a list with n items means examining 2^n subsets, and each extra item doubles the work.
Rounded numbers, assuming a billion simple steps per second, show how quickly this grows:
- At n = 30, about 1 second.
- At n = 50, about 13 days.
- At n = 60, about 36 years.
Polynomial growth, such as n squared, is generally treated as reasonable. Exponential growth is generally treated as unreasonable once n gets large.
Key differences
| Undecidable problem | Unreasonable-time problem | |
|---|---|---|
| Correct algorithm for every input? | No | Yes |
| What is the limit? | Possibility | Cost, measured as running time |
| Does a faster computer help? | Not in principle | Only by a fixed factor, while growth continues |
| Typical example | The halting problem | Checking every subset |
Why the distinction matters
Knowing which kind of problem you have tells you what to do next. For an undecidable problem, you cannot build a perfect general tool. Results like Rice’s theorem show that a perfect checker for malicious programs is impossible in general. Practical security tools therefore use heuristics and accept some mistakes.
For an unreasonable-time problem, a correct method exists, so the work is to make it practical. Options include limiting the input size, using heuristics, or using approximation algorithms that give good answers quickly. To check which side an algorithm falls on, read about “how to know if an algorithm is reasonable or unreasonable”.
Can a problem be both?
Not in the same sense. An undecidable problem has no running time to speak of, because no algorithm solves it for all inputs. The idea of unreasonable time applies only to problems that can be solved. A solvable problem can still be unreasonable, but an undecidable one is outside that discussion entirely.
A quick test
Ask two questions:
- Is there a correct algorithm that works for every input? If not, the problem is undecidable.
- If there is, how does its running time grow as the input gets larger? Polynomial growth is usually reasonable. Exponential growth is usually unreasonable.