At position , compare with : If they match: No operation needed. . If they don't match, choose the cheapest:
• Replace with : • Delete : • Insert : The transition is the core of any DP solution. All operations pull from previously computed cells, so filling the table row by row produces correct results.