What is an Edit Distance Visualizer?
An edit distance visualizer shows how many single-character edits are needed to transform one string into another. The standard Levenshtein distance allows insertion, deletion, and substitution.
This tool lets you enter two strings, fill the dynamic programming table cell by cell, and inspect the final edit script after backtracking from the bottom-right cell.
For the full algorithm set, browse the Data Structure Visualizers hub.
How to use this edit distance visualizer
- Enter the source string.
- Enter the target string.
- Click Run Edit Distance to fill the table and show the final distance.
- Step forward to inspect each deletion, insertion, substitution, or match decision.
- Review the edit script to see one shortest transformation path.
Edit distance and dynamic programming
Edit distance is a useful dynamic programming example because every cell combines three smaller subproblems: delete from the source, insert into the source, or substitute one character for another.
If you want related string algorithms, compare it with the Longest Common Subsequence Visualizer, Z Algorithm Visualizer, KMP String Matching Visualizer, and Rabin Karp Visualizer.