Wodenic has asked for the wisdom of the Perl Monks concerning the following question:
RPL AUSTRIA AR REPORTING
RPL AUSTRIA AR REV ACCT
..
..
I'm trying to get the script to return the smallest number of characters to uniquely identify each line.
eg the script should return
RPL AUSTRIA AR REP
RPL AUSTRIA AR REV
the Algorithm::Diff package is too greedy and returns ALL common characters in order
eg RPL AUSTRIA AR RE T
Anyone have any ideas ? or do I feel a new Algorithm coming on :)
Thanks
Wodenic
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: longest common substring... almost?
by kvale (Monsignor) on Apr 18, 2004 at 18:06 UTC | |
Re: longest common substring... almost?
by haoess (Curate) on Apr 18, 2004 at 19:26 UTC | |
by ambrus (Abbot) on Apr 19, 2004 at 09:03 UTC | |
Re: longest common substring... almost?
by borisz (Canon) on Apr 18, 2004 at 17:47 UTC | |
Re: longest common substring... almost?
by ambrus (Abbot) on Apr 23, 2004 at 13:35 UTC | |
Re: longest common substring... almost?
by Wassercrats (Initiate) on Apr 20, 2004 at 14:06 UTC |