|
Algorithm A1 Correct one insertion symbol |
-
Input:
.
-
Output:
.
-
1:
Calculate and as in Table 3.
-
2:
Set .
-
3:
while
do
-
4:
if then
-
5:
if then
-
6:
if then
-
7:
ins1_correct1
-
8:
else
-
9:
-
10:
end if
-
11:
else
-
12:
if then
-
13:
ins1_correct1
-
14:
else
-
15:
-
16:
end if
-
17:
end if
-
18:
else
-
19:
if then
-
20:
ins1_correct1
-
21:
else
-
22:
-
23:
end if
-
24:
end if
-
25:
end while
|