Nepedia
Back to Discover
Independent Reader
🔢

Halting problem

math Maturity 11-13 Next article →

Imagine you are running a computer program. Most programs finish their work and stop. We say these programs halt. But some programs get stuck. They might run in an infinite loop. This means they go on forever.

A big question in math is this: Can we write a master program to check others? This master program would look at any task. It would tell us if that task will stop or run forever.

In 1936, a thinker named Alan Turing studied this. He proved that such a master program cannot exist. This is called the halting problem. He showed that no set of steps can solve it for every case.

His proof uses a clever trick. He showed that if a master program did exist, we could make a new program to break it. This new program would do the exact opposite of what the master program predicts. If the master says it will stop, the new program loops forever. If the master says it will loop, the new program stops. This creates a puzzle with no right answer. Because of this, the problem is undecidable. It means some math puzzles simply cannot be solved by computers.

197 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.