π

All Subjects

Β >Β

β¨οΈΒ

AP Comp Sci P

Β >Β

π±

Big Idea 3: Algorithms and Programming

Undecidable Problems

Minna Chow

AP Computer Science PrinciplesΒ β¨οΈ

BookmarkedΒ 2.6kΒ β’Β 69Β resources
See Units

Image source: GIPHY

A decidable problem is a decision problem (one that has a yes/no answer) where an algorithm can be written to produce a correct output for all inputs.
If an algorithm can't be written that's always capable of providing a correct yes or no answer, it's an undecidable problem. An undecidable problem might be able to be solved in some cases, but not in all of them.
The classic example of an undecidable problem is the halting problem, created by Alan Turing in 1936. The halting problem asks that if a computer is given a random program, can an algorithm ever be written that will answer the question, will this program ever stop running?, for all programs? By proving that there wasn't, Turing demonstrated that some problems can't be completely solved with an algorithm.

Conclusion

There's a crash course in programming, AP CSP style! In our next guide, we'll be discussing the Internet.

Studying with Hours = the ultimate focus mode
Start a free study session
Browse Study Guides By Unit
πΉBig Idea 1: Creative Development
βοΈBig Idea 2: Data
π±Big Idea 3: Algorithms and Programming
π₯Big Idea 4: Computer Systems and Networks
β¨οΈBig Idea 5: Impact of Computing