I would make two routines,
first which would give me substrings of string ( similar to strtok )
Then I would either use finite state automata while searching reverse
way , that should work ?

About window solution , I am getting few ideas but not sure how would
I differentiate for 'eo' to get correcet results in case of
"eeo"  and  "eoo"  though with FS automata I don't see this issue.

thoughts ?



On May 17, 4:52 pm, divya jain <[email protected]> wrote:
> the output shd be epo..
>
> hint to the problem :   PROBLEM DO NOT READ IF U WANT TO SOLVE THE URSELF
> it involves the concept of finding window
> u hv to 1st search for the window which contains all characters of string.
> then u have to alter window so as to get minmum length window..
>
> On 17 May 2010 16:44, Modeling Expert <[email protected]> wrote:
>
>
>
> > @Divya
> > BigS =" Hellepo What's up"
> > SmallS = 'eo'
> > o/p should be ?  "ellepo" OR "epo" ?
>
> > if its "ellepo" DP would work fine . If its "eo" probably need some
> > modification in DP.
>
> > -Manish
>
> > On May 16, 8:36 pm, Navin Naidu <[email protected]> wrote:
> > > @Sharad: yup
>
> > > On Sun, May 16, 2010 at 8:36 PM, Rohit Saraf <
> > [email protected]>wrote:
>
> > > > @Navin: and that works ! :)
> > > > @all : i am sure no heuristic/greedy strategy can be applied.
> > > > @divya : did you check your array partitioning algorithm with my
> > example !
>
> > > > --------------------------------------------------
> > > > Rohit Saraf
> > > > Second Year Undergraduate,
> > > > Dept. of Computer Science and Engineering
> > > > IIT Bombay
> > > >http://www.cse.iitb.ac.in/~rohitfeb14<http://www.cse.iitb.ac.in/%7Erohitfeb14>
> > <http://www.cse.iitb.ac.in/%7Erohitfeb14>
>
> > > >  --
> > > > 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]>
> > <algogeeks%[email protected]<algogeeks%[email protected]>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/algogeeks?hl=en.
>
> > > --
> > > Thanks & Regards,
>
> > > - NMN
>
> > > --
> > > 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 athttp://
> > groups.google.com/group/algogeeks?hl=en.
>
> > --
> > 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.
>
> --
> 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 
> athttp://groups.google.com/group/algogeeks?hl=en.

-- 
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.

Reply via email to