|
1 | 1 | \begin{tikzpicture}[> = stealth,node distance=3.25cm, on grid, scale=0.8, every node/.style={scale=0.8}]
|
2 |
| - \node[draw=none, fill=none] at (-1.4, 1.2) {0}; |
3 |
| - \node[draw=none, fill=none] at (3.1, 0.55) {3}; |
4 |
| - \node[draw=none, fill=none] at (-1.4, -1.3) {1}; |
5 |
| - \node[draw=none, fill=none] at (-1.4, -3.8) {2}; |
6 |
| - \node[draw=none, fill=none] at (2.9, -1.95) {4}; |
7 |
| - \node[draw=none, fill=none] at (2.9, -4.45) {5}; |
8 |
| - \node[draw=none, fill=none] at (6.7, -1.3) {6}; |
9 |
| - \node[draw=none, fill=none] at (6.7, -3.8) {7}; |
10 |
| - \node[draw=none, fill=none] at (11, -1.95) {8}; |
11 |
| - \node[draw=none, fill=none] at (11, -4.45) {9}; |
12 | 2 | \node[r_state] (s_0)
|
13 | 3 | {
|
14 | 4 | $
|
|
19 | 9 | \end{aligned}
|
20 | 10 | $
|
21 | 11 | };
|
22 |
| - \node[r_state] (s_1) [below=2cm of s_0] |
| 12 | + \node[r_state] (s_1) [below=2.5cm of s_0] |
23 | 13 | {
|
24 | 14 | $
|
25 | 15 | \begin{aligned}
|
|
29 | 19 | \end{aligned}
|
30 | 20 | $
|
31 | 21 | };
|
32 |
| - \node[r_state] (s_2) [below=2cm of s_1] |
| 22 | + \node[r_state] (s_2) [below=2.5cm of s_1] |
33 | 23 | {
|
34 | 24 | $
|
35 | 25 | \begin{aligned}
|
|
80 | 70 | $ S \to a S b S \cdot, \{b\} $
|
81 | 71 | };
|
82 | 72 |
|
| 73 | + \node[num_state] at (s_0.north west) {0}; |
| 74 | + \node[num_state] at (s_1.north west) {1}; |
| 75 | + \node[num_state] at (s_2.north west) {2}; |
| 76 | + \node[num_state] at (s_3.north west) {3}; |
| 77 | + \node[num_state] at (s_4.north west) {4}; |
| 78 | + \node[num_state] at (s_5.north west) {5}; |
| 79 | + \node[num_state] at (s_6.north west) {6}; |
| 80 | + \node[num_state] at (s_7.north west) {7}; |
| 81 | + \node[num_state] at (s_8.north west) {8}; |
| 82 | + \node[num_state] at (s_9.north west) {9}; |
| 83 | + |
| 84 | + |
83 | 85 | \path[->]
|
84 | 86 | (s_0) edge [left] node {$a$} (s_1)
|
85 | 87 | edge [above] node {$S$} (s_3)
|
|
0 commit comments