|
Algorithm A2: Correct two consecutive insertion symbols |
-
Input:
.
-
Output:
.
-
1:
Calculate and as in Table 3.
-
2:
Set .
-
3:
if
then
-
4:
while do
-
5:
if mod then
-
6:
if then
-
7:
;
-
8:
ins2_correct2
-
9:
else
-
10:
-
11:
end if
-
12:
else
-
13:
if then
-
14:
;
-
15:
ins2_correct2
-
16:
else
-
17:
-
18:
end if
-
19:
end if
-
20:
end while
-
21:
else
-
22:
while do
-
23:
if mod then
-
24:
if then
-
25:
;
-
26:
ins2_correct2
-
27:
else
-
28:
-
29:
end if
-
30:
else
-
31:
if then
-
32:
;
-
33:
ins2_correct2
-
34:
else
-
35:
-
36:
end if
-
37:
end if
-
38:
end while
-
39:
end if
|