01Three operations, one number
You may insert a letter, delete a letter, or substitute one letter for another, each at cost 1. The edit distance from A to B is the fewest operations that turn A into B.
KITTEN → SITTING takes 3: substitute K → S, substitute E → I, insert G at the end. The figure lines the two words up so you can see it: equal letters stacked on each other cost nothing, mismatched pairs are substitutions, and a letter facing a gap is an insertion (or a deletion in the other direction).
Every way of editing A into B is such an alignment, so the question becomes: which alignment has the fewest mismatches and gaps? Trying them all is exponential. As with LCS, the way in is to ask the question about prefixes.