The Geek Atlas by John Graham-Cumming
Author:John Graham-Cumming
Language: eng
Format: epub, pdf
Tags: ISBN: 978-0-596-52320-6
Publisher: O'Reilly Media
Published: 2009-06-15T16:00:00+00:00
Equation 66-1. The Halting Function
Equation 66-2. The Diagonal Function
g(i) only has one parameter, i, which is just a number. It is used by h(i,i) to find both the program numbered i and the input numbered i. And g(i) is 0 if the program numbered i does not halt with input i; otherwise, g(i) is undefined. Now for the mind-bending bit. Suppose that there is a computer program for h(p,i). It’s fairly easy to see two things:
1. There must be a program for g(i) because it is defined in terms of h(p,i).
2. g(i) is computed by the program number j for some number j.
So what happens if you try to calculate g(j)? What happens if we feed g(j) to itself?
1. If g(j) is 0, then it means that h(j,j) is 0, which means that program j does not halt with input j. But program j is the program for g(j) , which we’ve just said is 0. This is contradictory, and hence g(j) cannot ever be 0.
2. If g(j) is undefined, then it means that h(j,j) is 1, which means that program j does halt with input j. But program j is the program for g(j), which we’ve just said is undefined (doesn’t halt). Another contradiction.
This reasoning leads to contradictions and means that the original assumption was incorrect: there is no program to compute h(p,i). The Halting Problem was significant because it showed that Turing’s Machines could not be used to solve important unsolved mathematical problems.
It also tells us that no computer is going to be able to predict whether a program will stop responding. So at least we humans aren’t totally out of a job when it comes to debugging.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Crystal Cove by Lisa Kleypas(38483)
Spell It Out by David Crystal(35852)
Underground: A Human History of the Worlds Beneath Our Feet by Will Hunt(11844)
For the Love of Europe by Rick Steves(11545)
Tools of Titans by Timothy Ferriss(7824)
Giovanni's Room by James Baldwin(6818)
The Rosie Project by Graeme Simsion(5847)
A Year in the Merde by Stephen Clarke(5080)
Perfect Rhythm by Jae(5077)
Beach Read by Emily Henry(5005)
Spare by Prince Harry The Duke of Sussex(4799)
The Body: A Guide for Occupants by Bill Bryson(4590)
Endurance: Shackleton's Incredible Voyage by Alfred Lansing(4513)
China Rich Girlfriend by Kwan Kevin(4298)
The Silk Roads by Peter Frankopan(4275)
A Game of Thrones 1 by George R R Martin(3988)
Tokyo Vice: An American Reporter on the Police Beat in Japan by Jake Adelstein(3867)
The Motorcycle Diaries by Ernesto Che Guevara(3790)
Alive: The Story of the Andes Survivors by Piers Paul Read(3738)
