Minimum Insertion needed to make a string palindrome

Правка en1, от 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 !!!!

Теги #strings, #palindrome, #dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский md.ashif313 2017-08-19 19:02:06 370 Initial revision (published)