Queue automaton explained

A queue machine, queue automaton, or pullup automaton (PUA) is a finite state machine with the ability to store and retrieve data from an infinite-memory queue. It is a model of computation equivalent to a Turing machine, and therefore it can process the same class of formal languages.

Theory

A queue machine can be defined as a six-tuple

M=(Q,\Sigma,\Gamma,\$,s,\delta)

where

Q

is a finite set of states;

\Sigma\subset\Gamma

is the finite set of the input alphabet;

\Gamma

is the finite queue alphabet;

\$\in\Gamma\setminus\Sigma

is the initial queue symbol;

s\inQ

is the start state;

\delta:Q x \GammaQ x \Gamma*

is the transition function.

A machine configuration is an ordered pair of its state and queue contents

(q,\gamma)\inQ x \Gamma*

, where

\Gamma*

denotes the Kleene closure of

\Gamma

. The starting configuration on an input string

x

is defined as

(s,x\$)

, and the transition
1
M
from one configuration to the next is defined as:

(p,A\alpha)

1
M

(q,\alpha\gamma)

where

A

is a symbol from the queue alphabet,

\alpha

is a sequence of queue symbols (

\alpha\in\Gamma*

), and

(q,\gamma)=\delta(p,A)

. Note the "first-in-first-out" property of the queue in the relation.

The machine accepts a string

x\in\Sigma*

if after a finite number of transitions the starting configuration evolves to exhaust the string (reaching the null string

\epsilon

), or otherwise stated, if
*(q,\epsilon).
(s,x\$)
M
[1]

Turing completeness

We can prove that a queue machine is equivalent to a Turing machine by showing that a queue machine can simulate a Turing machine and vice versa.

A Turing machine can be simulated by a queue machine that keeps a copy of the Turing machine's contents in its queue at all times, with two special markers: one for the Turing machine's head position, and one for the end of the tape; its transitions simulate those of the Turing machine by running through the whole queue, popping off each of its symbols and re-enqueing either the popped symbol, or, near the head position, the equivalent of the Turing machine transition's effect.

A queue machine can be simulated by a Turing machine, but more easily by a multi-tape Turing machine, which is known to be equivalent to a normal single-tape machine.The simulating queue machine reads input on one tape and stores the queue on the second, with pushes and pops defined by simple transitions to the beginning and end symbols of the tape.[2] A formal proof of this is often an exercise in theoretical computer science courses.

Applications

Queue machines offer a simple model on which to base computer architectures,[3] [4] programming languages, or algorithms.[5] [6]

See also

Notes and References

  1. Book: Kozen, Dexter C. . Dexter Kozen

    . Dexter Kozen. David Gries, Fred B. Schneider . Automata and Computability . limited . 1951 . hardcover . 1 . Undergraduate Texts in Computer Science . 1997 . Springer-Verlag . New York . 978-0-387-94907-9 . 368–370.

  2. Web site: Variants of Turing Machines . 2007-11-06 . Rus . Teodor . Lecture Notes Covering Theory of Computation . University of Iowa, Iowa City, IA, 52242-1419 . dead . https://web.archive.org/web/20080921051611/http://www.cs.uiowa.edu/~rus/Courses/Theory/Notes/turing3.pdf . 2008-09-21 .
  3. Book: Feller, M. . M.D. Ercegovac . Conpar 81 . Queue machines: An organization for parallel computation . Lecture Notes in Computer Science . 1981 . 111. 37–47. 10.1007/BFb0105108. 978-3-540-10827-6 .
  4. Book: 10.1109/FPGA.2002.1106670. 978-0-7695-1801-5 . 10.1.1.6.7718 . Queue machines: Hardware compilation in hardware . Proceedings. 10th Annual IEEE Symposium on Field-Programmable Custom Computing Machines . 152–160 . 2002 . Schmit . H. . Levine . B. . Ylvisaker . B. . 8993845 .
  5. Web site: Queues, Stacks, and Transcendentality at the Transition to Chaos . 2007-11-06 . Moore . Christopher . Cristopher Moore. 1999-09-20 . Algorithms Project's Seminar . INRIA.
  6. Web site: A queue machine for evaluating expressions . 2007-11-06 . von Thun . Manfred . 2007 . . dead . https://web.archive.org/web/20070807192327/http://www.latrobe.edu.au/philosophy/phimvt/misc/queue.html . 2007-08-07 .