#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Suggest any Maximum Match Algorithm Program, Please


    Here is the lines of string in a file

    abxyz
    abpqr
    abmno
    abcxyz
    abcpqr
    abcmno


    I want the output as:-
    ab+[xyz,pqr,mno]
    abc+[xyz,pqr,mno]



    Here is the real time data which should be in dictionary order:-

    AduwoMxita
    AduwoMxirA
    AduwoMxileVMdi
    AduwoMxile

    I want the Output as:-

    AduwoMxi+[ta,rA]
    AduwoMxile[VMdi, ]

    File the real time data in the attachment........
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,005
    Rep Power
    9398
    What if the input is
    Code:
    a
    ab
    abc
    abcd
    Also, what have you come up with so far?

IMN logo majestic logo threadwatch logo seochat tools logo