|
Algorithm 1 Correct one deletion symbol. |
-
Input:
.
-
Output:
.
-
1:
.
-
2:
Get the binary sequence and the run-length vector of .
-
3:
Get the total number of elements of as .
-
4:
.
-
5:
Set .
-
6:
while
do
-
7:
if then
-
8:
if then
-
9:
del_correct1
-
10:
else
-
11:
-
12:
end if
-
13:
else
-
14:
if then
-
15:
del_correct1
-
16:
else
-
17:
-
18:
end if
-
19:
end if
-
20:
end while
|