-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmachine3.json
91 lines (91 loc) · 1.52 KB
/
machine3.json
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
{
"description":"This DFA accepts strings that contain the substring 'jeff' or 'ruben'.",
"states": ["q0","q2","q3","q4","q5","q6","q7","q8"],
"alphabet": ["j","e", "f", "r", "u", "b", "n"],
"transitions": {
"q0": {
"j": "q1",
"e": "q0",
"f": "q0",
"r": "q5",
"u": "q0",
"b": "q0",
"n": "q0"
},
"q1": {
"j": "q1",
"e": "q2",
"f": "q0",
"r": "q5",
"u": "q0",
"b": "q0",
"n": "q0"
},
"q2": {
"j": "q1",
"e": "q0",
"f": "q3",
"r": "q5",
"u": "q0",
"b": "q0",
"n": "q0"
},
"q3": {
"j": "q1",
"e": "q0",
"f": "q4",
"r": "q5",
"u": "q0",
"b": "q0",
"n": "q0"
},
"q4": {
"j": "q4",
"e": "q4",
"f": "q4",
"r": "q4",
"u": "q4",
"b": "q4",
"n": "q4"
},
"q5": {
"j": "q1",
"e": "q0",
"f": "q0",
"r": "q5",
"u": "q6",
"b": "q0",
"n": "q0"
},
"q6": {
"j": "q1",
"e": "q0",
"f": "q0",
"r": "q5",
"u": "q0",
"b": "q7",
"n": "q0"
},
"q7": {
"j": "q1",
"e": "q8",
"f": "q0",
"r": "q5",
"u": "q0",
"b": "q0",
"n": "q0"
},
"q8": {
"j": "q1",
"e": "q0",
"f": "q0",
"r": "q5",
"u": "q0",
"b": "q0",
"n": "q4"
}
},
"start": "q0",
"accept": ["q4"],
"inputs": ["jeff", "ruben", "jeeeeff", "ruuuben", "jefrubjeff"]
}