Minimum Insertion needed to make a string palindrome

Revision en1, by md.ashif313, 2017-08-19 19:02:06

I'm trying to find an algorithm for calculating Minimum Insertion needed to make a string palindrome. My Idea is to find the length of longest palindromic sub sequence for the given string and subtract it from the string length. Will it work? Or there is any cornered case where it will not work, Please help !!!!

Tags #strings, #palindrome, #dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English md.ashif313 2017-08-19 19:02:06 370 Initial revision (published)