-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp1.txt
107 lines (76 loc) · 970 Bytes
/
p1.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: 2 pow n
init: q0
accept: q21
// Inicializar
q0, _, _
q1, _, _, >, -
q1, _, _
q2, _, _, -, -
q1, I, _
q1, I, _, >, -
//Copia 1 en 2
q2,_,_
q3,_,_,<,<
q3,I,_
q3,I,I,<,<
q3,_,_
q4,_,_,>,>
//Me devuelvo por protocolo
q4, _, _
q5, _,_,-,-
q4, I, I
q4, I, I, >, >
//Borro
q5,_,_
q6,_,_,<,-
q6,I,_
q6,_,_,<,-
q6,_,_
q7,_,_,-,-
//escribo 1
q7,_,_
q8,I,_,>,-
//If
q8,_,_
q9,_,_,<,<
//Si hay un 1 en la segunda borro ese 1 y me quedo donde estoy
q9,I,I
q10,I,_,>,-
//Copiadora
q10,_,_
q11,_,_,<,-
q10,I,_
q11,I,_,<,-
//Si hay un 1
q11,I,_
q12,_,_,-,-
//borro y busco un gato
q12, _, _
q13, _, _, >, -
q13, _, _
q14, _, _, -, -
q13, I, _
q13, I, _, >, -
// escribo e1
q14,_,_
q15,I,_,>,-
//busco gato a la izquierda
q15, _, _
q16, _, _, <, -
q16, _, _
q17, _, _, -, -
q16, I, _
q16, I, _, <, -
//escribo un 1
q17,_,_
q10,I,_,-,-
q11, _, _
q19, _, _, >, -
q19, _, _
q20, _, _, -, -
q19, I, _
q19, I, _, >, -
q20,_,_
q8,_,_,-,-
q9,I,_
q21,I,_,>,-