Labs / Computer Science

Edit Distance

Type two words and watch a table fill in from the top-left corner. Each cell asks the same question — what is the cheapest way to turn this prefix into that one? When the grid is full, a path draws itself backward through the winning choices to show the exact edits that connect the two words.

Labs / Computer Science / Edit Distance

Computer Science20–30 minFoundation

Edit Distance

Type two words and watch a table fill in from the top-left corner. Each cell asks the same question — what is the cheapest way to turn this prefix into that one? When the grid is full, a path draws itself backward through the winning choices to show the exact edits that connect the two words.

Why it matters

Why explore this?

Computer science turns clear rules into reliable processes. This model lets you step through those rules and see how each decision changes the result.