Hi anshu, thats exactly wat i want........
On Sep 19, 4:22 am, anshu <[EMAIL PROTECTED]> wrote: > Can you please state more clearly, if in above e.g. > "bidd dd d", you want to tag occurrence of words - > bidd, dd and d in a para? > So for e.g. > if para is -- > "fjsd d fjwelkjw dd dwere bidd" > you want > "fjsd <mark>d</mark> fjwelkjw <mark>dd</mark> dwere <mark>bidd</mark>" > as output > > Please correct me if you meant something else... > Thanks, > -Anshu > > On Sep 16, 5:20 pm, gomsi <[EMAIL PROTECTED]> wrote: > > > hi, > > > i have a paragraph where i have to insert <mark> and </mark> tags to > > highlight the required words.i am implementing it in c++ i am > > currently doing it as follows.. > > > i take the corresponding position at which the word occurs within the > > paragraph and the word length and store it in a map(STL)..and start > > inserting the tags after i scan the paragraph for the words.... > > although it works fine for larger words problem occurs when the word > > to be marked are like "bidder dd d"..the tags start overlapping and > > become mixed up within the paragraph.. can someone provide a good > > algorithm and help please... asap.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---