Question: Hi, I really need help using dynamic programming to find the edit distance between 2 strings in C++. But I also need to display where
Hi, I really need help using dynamic programming to find the edit distance between 2 strings in C++. But I also need to display where the insertion, replacement, and delete take place. Thanks in advance.



Design and implement a C/C++ program that uses a Dynamic Programming solution to comput the "minimum editing distance" between two strings and shows the operations necessary to transform the first string into the second string A problem description, analysis and an initial sample solution are shown in Kleinberg Textbook: Section 6.6 Sequence Alignment" 06DynamicProgrammingll-Wayne.ppto powerpoint slides (available from Canvas) http://www.geeksforgeeks.o amic programming set-5-edit-distanced algorithmist.com/index.ph Distance several other web locations The http/l sample solutions contain two functions to compute the minimum editing distance, a dynamic programming solution and a recursive solution that repeatedly re-computes partial solutions to smaller problems. You should also implement the recursive solution, and when you experiment executing the code, you'll notice how much more efficient the dynamic programming solution is compared to the other solution. Your primary task for this assignment is to make changes and additions to the dynamic programming solution to determine not only the "minimum editing distance" between two strings but also to determine the set of "single-character editing operations" that are required to transform the value of the first string into the value of the second string If you visually line the two strings up on consecutive lines, there are three possible editing operations that might be used 1. A character in the first string might be replaced by a different character in the second tring (r: a replacement); 2. A character that is present at a position in the first string might not be present in the second string ("d': a deletion); 3. A character that does not appear at a particular position in the first string may need to be inserted to complete the transformation into the second string (i: an insertion) As an example, to transform "Sundays" into "Saturday" minimally requires 4 editing operations S undays ii r symbols for the editing operatio Saturday e.g., insert the letters 'a' and 't' between the S' and the 'u replace the n' with the r, and delete the last 's' character. The other letters that are "lined up beneath each other appear in both strings in those positions. Note that other sequences of oditing operations are possible that would transform the first string into the second string (for example, delete all the characters in the first string and insert all the characters in the second string), however, the dynamic programming solution determines a solution requiring the fewest number of editing operations
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
