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

Solving the Edit Distance Problem Using The Dynamic Programming Approach

by Shakhawat Hossain7mMay 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.

People Mentioned

Mention Thumbnail
featured image - Solving the Edit Distance Problem Using The Dynamic Programming Approach
Shakhawat Hossain HackerNoon profile picture
Shakhawat Hossain

Shakhawat Hossain

@Shakhawat-Hossain

I am a Full Stack developer, experience with building websites and web applications.

Learn More
LEARN MORE ABOUT @SHAKHAWAT-HOSSAIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Shakhawat Hossain HackerNoon profile picture
Shakhawat Hossain@Shakhawat-Hossain
I am a Full Stack developer, experience with building websites and web applications.

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