LogoLogo
1.0.0
  • Home
  • Install
  • Docs
  • Contribute
  • Journey
  • Welcome
  • The Varphi Language Standard
    • Welcome
    • State Names
    • Tallies and Blanks
    • Head Directions
    • Lines
    • Comments
    • Varphi Programs
    • Addressing Ambiguities
  • Writing Varphi Programs
    • Your First Varphi Program
    • Running Varphi Programs
    • Debugging Varphi Programs
    • The Varphi VS Code Extension
    • Good Practices
    • More Examples
      • Addition By One
      • Add Two Numbers
      • Multiplication By Two
      • Rock, Paper, Scissors
      • Coin Flip
  • Turing Machine Theory
    • The Unary Number System
    • Turing Machine Tapes
    • Turing Machine Heads
    • Turing Machine States
    • Turing Machines
    • Nondeterministic Turing Machines
Powered by GitBook
LogoLogo

© 2025 Hassan El-Sheikha

On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Turing Machine Theory

Turing Machine Heads

The Head

In the context of a Turing machine, the head is a component that can read from, write to, and traverse the tape.

The head is restricted to being stationed at exactly one tape cell at a time. That is, it cannot read or write a block of cells (more than one cell) at one time. Additionally, the head cannot "teleport" to a certain tape cell that is not immediately to the left or right of the tape cell it is currently stationed at. It can only move to the left or to the right by exactly one tape cell at a time.

As a device, the head can perform the following actions:

  1. Read the current tape cell

  2. Write a tally (111) to the current tape cell

  3. Make the current tape cell blank

  4. Move to the tape cell immediately to the right of the current one

  5. Move to the tape cell immediately to the left of the current one

However, the head only accepts instructions that are in one of the following formats:

  1. Read the current tape cell

  2. Write a tally to the current tape cell and move to the tape cell immediately to the right of the current one

  3. Write a tally to the current tape cell and move to the tape cell immediately to the left of the current one

  4. Make the current tape cell blank and move to the tape cell immediately to the right of the current one

  5. Make the current tape cell blank and move to the tape cell immediately to the left of the current one

The Turing machine will supply such instructions to the head as part of its operation.

PreviousTuring Machine TapesNextTuring Machine States

Last updated 4 months ago

Was this helpful?