Mutation where one symbol is replaced by another symbol


There are a number of other notions of edit distance available. For instance, we can allow, in addition to insertions and deletions, the following operations:

i. Mutation, where one symbol is replaced by another symbol. Note that a mutation can always be performed by an insertion followed by a deletion, but if we allow mutations, then this change counts for only 1, not 2, when computing the edit distance.

ii. Transposition, where two adjacent symbols have their positions swapped. Like a mutation, we can simulate a transposition by one insertion followed by one deletion, but here we count only 1 for these two steps.

Repeat Exercise 3.5.7 if edit distance is defined to be the number of insertions, deletions, mutations, and transpositions needed to transform one string into another.

Exercise 3.5.7

Find the edit distances (using only insertions and deletions) between the following pairs of strings.

1005_cb5d9e67-7b04-4cc1-9f5b-9eee5722855a.png

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Mutation where one symbol is replaced by another symbol
Reference No:- TGS01598792

Expected delivery within 24 Hours