-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquick.dot
127 lines (127 loc) · 1.59 KB
/
quick.dot
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
digraph quick {
"Entry
"->"No.1
if _t1 < _t2 goto 3
";
"No.1
if _t1 < _t2 goto 3
"->"No.2
return
";
"No.2
return
"->"Exit
";
"No.1
if _t1 < _t2 goto 3
"->"No.3
i = _t1 + 1
j = _t2
pivot = _t0[_t1]
";
"No.3
i = _t1 + 1
j = _t2
pivot = _t0[_t1]
"->"No.4
if i > j goto 12
";
"No.4
if i > j goto 12
"->"No.5
_t3 = _t0[j]
if _t3 > pivot goto 11
";
"No.5
_t3 = _t0[j]
if _t3 > pivot goto 11
"->"No.6
if i > j goto 8
";
"No.6
if i > j goto 8
"->"No.7
_t4 = _t0[i]
if _t4 < pivot goto 10
";
"No.7
_t4 = _t0[i]
if _t4 < pivot goto 10
"->"No.8
if i > j goto 4
";
"No.8
if i > j goto 4
"->"No.9
temp = _t0[i]
_t0[i] = _t0[j]
_t0[j] = temp
goto 4
";
"No.9
temp = _t0[i]
_t0[i] = _t0[j]
_t0[j] = temp
goto 4
"->"No.4
if i > j goto 12
";
"No.8
if i > j goto 4
"->"No.4
if i > j goto 12
";
"No.7
_t4 = _t0[i]
if _t4 < pivot goto 10
"->"No.10
i = i + 1
goto 6
";
"No.10
i = i + 1
goto 6
"->"No.6
if i > j goto 8
";
"No.6
if i > j goto 8
"->"No.8
if i > j goto 4
";
"No.5
_t3 = _t0[j]
if _t3 > pivot goto 11
"->"No.11
j = j - 1
goto 5
";
"No.11
j = j - 1
goto 5
"->"No.5
_t3 = _t0[j]
if _t3 > pivot goto 11
";
"No.4
if i > j goto 12
"->"No.12
_t0[_t1] = _t0[j]
_t0[j] = pivot
_t5 = j - 1
quick [(int[], int, int) : void](_t0, _t1, _t5)
_t6 = j + 1
quick [(int[], int, int) : void](_t0, _t6, _t2)
return
";
"No.12
_t0[_t1] = _t0[j]
_t0[j] = pivot
_t5 = j - 1
quick [(int[], int, int) : void](_t0, _t1, _t5)
_t6 = j + 1
quick [(int[], int, int) : void](_t0, _t6, _t2)
return
"->"Exit
";
}