1. Deleting a character at an arbitrary position.
2. Inserting a character into an arbitrary position.
3. Replacing a character at an arbitrary position with another character.
4. Swapping two adjacent characters at an arbitrary position.
delete 'o' insert 'i'
omura ---------> mura --------> murai
swap 'a' and 'k' replace 'a' with 'o'
akasan ---------------> kaasan -------------------> kaason
swap 'a' and 'n' insert 'e'
ant ---------------> nat ---------> neat
n
d
name1
name2
...
namen
<font face="Times New Roman" size=3><pre>8
2
omura
toshio
raku
tanaka
imura
yoshoi
hayashi
miura
3
1
tasaka
nakata
tanaka
1
1
foo
5
2
psqt
abcdef
abzdefa
pqrst
abdxcef
0
</pre></font></p>
<font face="Times New Roman" size=3><pre>imura,miura
imura,omura
miura,omura
toshio,yoshoi
4
tanaka,tasaka
1
0
abcdef,abdxcef
abcdef,abzdefa
pqrst,psqt
3</pre></font></p>