<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Halting problem - Page 29 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=halting_problem&amp;p=28">1.Previous</a><br />
<a accesskey="3" href="page.php?w=halting_problem&amp;p=30">3.Next</a>
</p>
<p>a total computable function, any element of the array can be calculated using f. The construction of the function g can be visualized using the main diagonal of this array.  If the array has a 0 at position (i,i), then g(i) is 0. Otherwise, g(i) is undefined. The contradiction comes from the fact that there is some column e of the array corresponding to g itself. Now assume f was the halting function h. If g(e) is defined (g(e) = 0 in this case), then the program e halts on input e, thus f(e,e) = 1.  But g(e) = 0 only when f(e,e) = 0, contradicting</p><p>
<a accesskey="1" href="page.php?w=halting_problem&amp;p=28">1.Previous</a><br />
<a accesskey="3" href="page.php?w=halting_problem&amp;p=30">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
