"Scooping the Loop Snooper" - Futility Closet
Given a particular input, will a computer program eventually finish running, or will it continue forever? That sounds straightforward, but in 1936 Alan Turing showed that it’s undecidable: It’s impossible to devise a general algorithm that can answer this question for every possible program and input. The most charming proof of this was published in 2000 by University of Edinburgh linguist Geoffrey Pullum — he did it in the style of Dr. Seuss: No program can say what another will do. Now, I won’t just assert that, I’ll prove it to you: I will prove that although you might work...
Futility Closet