Import of Beturing 1.1 revision 2011.1214 sources (just HTML fixes).
Cat's Eye Technologies
12 years ago
0 | <html> | |
1 | <head><title>Beturing - a Befunge-flavoured Turing machine</title></head> | |
0 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
1 | <!-- encoding: UTF-8 --> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
5 | <title>Beturing - a Befunge-flavoured Turing machine</title> | |
6 | <!-- begin html doc dynamic markup --> | |
7 | <script type="text/javascript" src="/contrib/jquery-1.6.4.min.js"></script> | |
8 | <script type="text/javascript" src="/scripts/documentation.js"></script> | |
9 | <!-- end html doc dynamic markup --> | |
10 | <style type="text/css"> | |
11 | td.grey { | |
12 | background: #d0d0d0; | |
13 | } | |
14 | table { | |
15 | align: center; | |
16 | } | |
17 | </style> | |
18 | </head> | |
2 | 19 | <body> |
3 | 20 | <h1>Beturing</h1> |
4 | 21 | <h2>a Befunge-flavoured Turing machine</h2> |
29 | 46 | <p>The state transition diagram is made up of <i>codes</i>. Each code is a |
30 | 47 | 2x2 block of cells in the following form:</p> |
31 | 48 | |
32 | <center><table border=0 bgcolor=#e0e0e0> | |
49 | <table border="0"> | |
33 | 50 | <tr><td><tt>a</tt></td><td><tt>b</tt></td></tr> |
34 | 51 | <tr><td><tt>></tt></td><td><tt>/</tt></td></tr> |
35 | </table></center> | |
52 | </table> | |
36 | 53 | |
37 | 54 | <p>The code head is considered to be over a code when it is over the upper-left cell of it. |
38 | 55 | The names and meanings of the four parts of the code are as follows:</p> |
108 | 125 | <p>The positive and negative interpretations of the data head movement and state transition |
109 | 126 | operators are given below:</p> |
110 | 127 | |
111 | <center><table border=1> | |
128 | <table border="1"> | |
112 | 129 | <tr><th>Symbol</th><th>Positive interpretation</th><th>Negative interpretation</th></tr> |
113 | 130 | <tr><td><tt>></tt></td><td>Move right</td><td>Move right</td></tr> |
114 | 131 | <tr><td><tt><</tt></td><td>Move left</td><td>Move left</td></tr> |
116 | 133 | <tr><td><tt>v</tt></td><td>Move down</td><td>Move down</td></tr> |
117 | 134 | <tr><td><tt>.</tt></td><td>Don't move</td><td>Don't move</td></tr> |
118 | 135 | <tr><td><tt>/</tt></td><td>Move right</td><td>Move down</td></tr> |
119 | <tr><td bgcolor=#d0d0d0><tt>\</tt></td><td>Move left</td><td>Move down</td></tr> | |
120 | <tr><td bgcolor=#d0d0d0><tt>|</tt></td><td>Move up</td><td>Move down</td></tr> | |
121 | <tr><td bgcolor=#d0d0d0><tt>-</tt></td><td>Move left</td><td>Move right</td></tr> | |
122 | <tr><td bgcolor=#d0d0d0><tt>`</tt></td><td>Move right</td><td>Move up</td></tr> | |
123 | <tr><td bgcolor=#d0d0d0><tt>'</tt></td><td>Move left</td><td>Move up</td></tr> | |
136 | <tr><td class="grey"><tt>\</tt></td><td>Move left</td><td>Move down</td></tr> | |
137 | <tr><td class="grey"><tt>|</tt></td><td>Move up</td><td>Move down</td></tr> | |
138 | <tr><td class="grey"><tt>-</tt></td><td>Move left</td><td>Move right</td></tr> | |
139 | <tr><td class="grey"><tt>`</tt></td><td>Move right</td><td>Move up</td></tr> | |
140 | <tr><td class="grey"><tt>'</tt></td><td>Move left</td><td>Move up</td></tr> | |
124 | 141 | <tr><td><tt>@</tt></td><td>Halt</td><td>Halt</td></tr> |
125 | </table></center> | |
142 | </table> | |
126 | 143 | |
127 | 144 | <p>Note that "x2" in the rules given above means to advance two cells in the given direction; |
128 | 145 | this is used everywhere for moving the code head because codes are 2x2 cell blocks.</p> |
147 | 164 | </ul> |
148 | 165 | |
149 | 166 | <p>All this added together means that a Beturing machine is incapable of having |
150 | a state transition diagram that is not a | |
151 | <a href="http://planetmath.org/?op=getobj&from=objects&name=PlanarGraph">planar graph</a>. | |
167 | a state transition diagram that is not a planar graph. | |
152 | 168 | A state transition diagram which is a complete 5-vertex graph, for example, is not planar.</p> |
153 | 169 | |
154 | 170 | <p>This <b>might</b> mean that it is impossible to construct a |