need help regarding string algorithm
- From: mukesh tiwari <mukeshtiwari.iiitm@xxxxxxxxx>
- Date: Tue, 04 Sep 2007 23:16:20 -0000
hello everybody i am trying to solve this problem http://acm.uva.es/p/v9/902.html
but getting TLE (time limit exceed ) becoz the input string length
could be 10^6 .
now what i did to solve this problem .
for each substring of given lengh
find all possible occurence of substring in the string .
i used KMP algroithm but still getting . i think my algorithm is
order of n^2.
plz some body suggest me how to solve this problem.
thnkx .
.
- Follow-Ups:
- Re: need help regarding string algorithm
- From: Joshua Cranmer
- Re: need help regarding string algorithm
- Prev by Date: Re: help!
- Next by Date: Re: Question about logarithms
- Previous by thread: Concavity of functions of vectors
- Next by thread: Re: need help regarding string algorithm
- Index(es):
Relevant Pages
|