paint-brush
Solving the Edit Distance Problem Using The Dynamic Programming Approach by@Shakhawat-Hossain
1,444 reads
1,444 reads

Solving the Edit Distance Problem Using The Dynamic Programming Approach

by Shakhawat HossainMay 9th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A problem that can be broken into several chunks and then combined them to get the optimum solution is known as an optimal substructure. The problem we are going to solve has the same characteristic as recursion. The main task is to find the minimum number of operations needed to convert word1 to word2. We need to ask, have we incurred any operation, no. To convert a character into another, first, we need to figure out the number of actions that were needed. And somewhere we have to store the previous number of. actions to calculate the current one.
featured image - Solving the Edit Distance Problem Using The Dynamic Programming Approach
Shakhawat Hossain HackerNoon profile picture
Shakhawat Hossain

Shakhawat Hossain

@Shakhawat-Hossain

L O A D I N G
. . . comments & more!

About Author

Shakhawat Hossain HackerNoon profile picture
Shakhawat Hossain@Shakhawat-Hossain

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite