-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturing1.xml
36 lines (36 loc) · 2.79 KB
/
turing1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" ?>
<TuringMachine>
<Alphabet>
<Symbol>1</Symbol>
<Symbol>x</Symbol>
<Symbol>=</Symbol>
<Symbol>a</Symbol>
<Symbol>*</Symbol>
</Alphabet>
<Rules MaxStates="9">
<Rule CurentSymbol="1" CurrentState="0" SymbolToWrite="1" NextState="0" IsRule="1" Direction="R" />
<Rule CurentSymbol="x" CurrentState="0" SymbolToWrite="x" NextState="1" IsRule="1" Direction="R" />
<Rule CurentSymbol="*" CurrentState="0" SymbolToWrite="*" NextState="0" IsRule="1" Direction="R" />
<Rule CurentSymbol="1" CurrentState="1" SymbolToWrite="a" NextState="2" IsRule="1" Direction="R" />
<Rule CurentSymbol="1" CurrentState="2" SymbolToWrite="1" NextState="2" IsRule="1" Direction="L" />
<Rule CurentSymbol="x" CurrentState="2" SymbolToWrite="x" NextState="3" IsRule="1" Direction="L" />
<Rule CurentSymbol="=" CurrentState="2" SymbolToWrite="=" NextState="2" IsRule="1" Direction="L" />
<Rule CurentSymbol="a" CurrentState="2" SymbolToWrite="a" NextState="2" IsRule="1" Direction="L" />
<Rule CurentSymbol="1" CurrentState="3" SymbolToWrite="a" NextState="4" IsRule="1" Direction="R" />
<Rule CurentSymbol="a" CurrentState="3" SymbolToWrite="a" NextState="3" IsRule="1" Direction="L" />
<Rule CurentSymbol="*" CurrentState="3" SymbolToWrite="*" NextState="6" IsRule="1" Direction="R" />
<Rule CurentSymbol="1" CurrentState="4" SymbolToWrite="1" NextState="4" IsRule="1" Direction="R" />
<Rule CurentSymbol="x" CurrentState="4" SymbolToWrite="x" NextState="4" IsRule="1" Direction="R" />
<Rule CurentSymbol="=" CurrentState="4" SymbolToWrite="=" NextState="4" IsRule="1" Direction="R" />
<Rule CurentSymbol="a" CurrentState="4" SymbolToWrite="a" NextState="4" IsRule="1" Direction="R" />
<Rule CurentSymbol="*" CurrentState="4" SymbolToWrite="1" NextState="5" IsRule="1" Direction="R" />
<Rule CurentSymbol="8" CurrentState="5" SymbolToWrite="*" NextState="2" IsRule="1" Direction="L" />
<Rule CurentSymbol="x" CurrentState="6" SymbolToWrite="x" NextState="7" IsRule="1" Direction="R" />
<Rule CurentSymbol="a" CurrentState="6" SymbolToWrite="1" NextState="6" IsRule="1" Direction="R" />
<Rule CurentSymbol="1" CurrentState="7" SymbolToWrite="a" NextState="2" IsRule="1" Direction="R" />
<Rule CurentSymbol="=" CurrentState="7" SymbolToWrite="=" NextState="8" IsRule="1" Direction="L" />
<Rule CurentSymbol="a" CurrentState="7" SymbolToWrite="a" NextState="7" IsRule="1" Direction="R" />
<Rule CurentSymbol="x" CurrentState="8" SymbolToWrite="x" NextState="9" IsRule="1" Direction="N" />
<Rule CurentSymbol="a" CurrentState="8" SymbolToWrite="1" NextState="8" IsRule="1" Direction="L" />
</Rules>
</TuringMachine>