P′′
P′′
Main page

P′′

logo
Community Hub0 subscribers
What are your thoughts?
Be the first to start a discussion here.
Be the first to start a discussion here.
P′′

P′′ (P double prime) is a primitive computer programming language created by Corrado Böhm in 1964 to describe a family of Turing machines. It provided one of the earliest formulations of the single-entry single-exit principle central to structured programming.

P′′ is formally defined as a set of words on the four-instruction alphabet , as follows:

Let a finite alphabet , with , be given, together with a Turing Machine equipped with a tape that is infinite to the left and divided into squares, only finitely many of which initially contain non-blank symbols. The remaining squares contain the blank symbol . The machine has a single head that can read and write one square at a time and move along the tape.

For formalization, the alphabet symbols are identified with their indices . The integer corresponds to the blank symbol (). Arithmetic on squares is performed modulo , so incrementing produces and decrementing produces . This formulation matches Böhm’s definition and differs only in notation, replacing symbolic alphabet elements with their numerical indices.

A program (called: "word") operates on a tape configuration consisting of a given initial tape together with the position of the head. Each tape square contains a value from the set . All but finitely many squares initially contain the value .

Instructions

Define as repeated application of an instruction sequence. For example, .

Böhm defines three macro's r, r' and L:

See all
User Avatar
No comments yet.