You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
One of the most profound results in Computer Science is that there are problems which no computer can ever solve, regardless of how much time or memory is available. The most famous example is the Halting Problem, proved undecidable by Alan Turing in 1936.
| Classification | Definition | Example |
|---|---|---|
| Decidable | A problem for which an algorithm exists that always terminates with the correct Yes/No answer | "Is this number prime?" |
| Undecidable | No algorithm exists that can always terminate with the correct answer for all possible inputs | The Halting Problem |
A decidable problem has an algorithm that:
An undecidable problem has no such algorithm — for any proposed algorithm, there will always be some inputs for which it gives the wrong answer or never terminates.
Given a description of a program P and an input I, determine whether P will eventually halt (terminate) or run forever when executed on input I.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.