saba_tavdgiridze's blog

By saba_tavdgiridze, history, 10 years ago, In English

Hi , I was trying to solve this problem , which is about finding number of unique palindromic substrings in string of size n . As n can be large(10^5) ,only feasible is nlogn algorithm for this problem.Can you help me ? ( I was trying to solve with suffix array but don't succeed )

  • Vote: I like it
  • -5
  • Vote: I do not like it

»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The problem is just a simple application of eertree (palindromic tree).

»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

There are my very old code for this problem, that using hashes: http://pastebin.com/SZmQFEL2