@Marcio, I get your algo now. So a substring match is also a match. I get your approach. Thank you. Any ideas for the second problem?
On 20 May 2010 10:45, vignesh radhakrishnan <[email protected]> wrote: > @Mario Your estimate of no. of strings, I guess doesn't consider strings of > length less than length H or W. > it would order(4H^2+4W^2) approximately. > > I guess I 've understood it right. correct me if I'm wrong > > > On 20 May 2010 07:23, Mario Ynocente Castro <[email protected]> wrote: > >> I don't think 1014 needs any special algorithm, if we've got an H x W >> matrix, then we've got (4H+4W-2) strings in which you must look, and you can >> do this with a greedy strategy. >> >> 2010/5/19 vignesh radhakrishnan <[email protected]> >> >>> I'm trying to solve some string problems somewat efficiently. Can >>> someone tell me what would be efficient DS for solving these problems >>> http://acm.jlu.edu.cn/joj/showproblem.php?pid=1014 >>> http://acm.jlu.edu.cn/joj/showproblem.php?pid=1873 >>> >>> Thanks, >>> Regards, >>> Vignesh >>> -- >>> There are two kinds of people. Those who care for others and The others >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<algogeeks%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> >> >> -- >> Mario Ynocente Castro >> Undergraduate Student of System Engineering >> National University of Engineering, Peru >> >> http://sites.google.com/site/ycmario >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<algogeeks%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > There are two kinds of people. Those who care for others and The others > -- There are two kinds of people. Those who care for others and The others -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
