Using these matrices, they calculated as follows
= (if deletion) = (if insertion) = (if substitution) = (if transposition)