3.1.6: Halting States

Sets, Logic, Computation · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    3.1.6: Halting States

    Although we have defined our machines to halt only when there is no instruction to carry out, common representations of Turing machines have a dedicated halting state, \(h\), such that \(h \in Q\).

    The idea behind a halting state is simple: when the machine has finished operation (it is ready to accept input, or has finished writing the output), it goes into a state \(h\) where it halts. Some machines have two halting states, one that accepts input and one that rejects input.

    Example \(\PageIndex{1}\)

    Halting States. To elucidate this concept, let us begin with an alteration of the even machine. Instead of having the machine halt in state \(q_0\) if the input is even, we can add an instruction to send the machine into a halt state.

    12.6.1_evenhalt.png

    Let us further expand the example. When the machine determines that the input is odd, it never halts. We can alter the machine to include a reject state by replacing the looping instruction with an instruction to go to a reject state \(r\).

    12.6.2_evenreject.png

    Adding a dedicated halting state can be advantageous in cases like this, where it makes explicit when the machine accepts/rejects certain inputs. However, it is important to note that no computing power is gained by adding a dedicated halting state. Similarly, a less formal notion of halting has its own advantages. The definition of halting used so far in this chapter makes the proof of the Halting Problem intuitive and easy to demonstrate. For this reason, we continue with our original definition.


    This page titled 3.1.6: Halting States was last modified on Fri, 08 Mar 2024 05:56:24 GMT and is shared under a CC BY license and was authored, remixed, and/or curated by Richard Zach et al. (Open Logic Project) .