Hi,
I know this is really not the place for this, but there are some great
folks on this list... ;-)
The situation is this. I need some way to identify random length
deviations in two random length strings. An example:
ABC123
ABC234
Here the one and the four would be highlighted, because they are the
supposed anomalies - 23 is a substring which we are guessing is
supposed to be there, so is not highlighted. The elements of the
strings will not be unique (ie, aa11111 is ok), and we may well get
strings of different lengths (ie, abcd1234 and abc234, with d and 1
highlighted) we might also get stuff like
a. ABC123
b. ABC2312
In which case the b. 23 should be left as good and the one in a. and
both the one and two (last two chars) should be marked as bad.
So is there a nifty wee algorithm to do this, and I am just too stupid
to get it, or is it my boss who is expecting a little much for a
couple of hours work...?
Cheers
Antoine
--
G System, The Evolving GUniverse - http://www.g-system.at
--
gentoo-user@gentoo.org mailing list
I know this is really not the place for this, but there are some great
folks on this list... ;-)
The situation is this. I need some way to identify random length
deviations in two random length strings. An example:
ABC123
ABC234
Here the one and the four would be highlighted, because they are the
supposed anomalies - 23 is a substring which we are guessing is
supposed to be there, so is not highlighted. The elements of the
strings will not be unique (ie, aa11111 is ok), and we may well get
strings of different lengths (ie, abcd1234 and abc234, with d and 1
highlighted) we might also get stuff like
a. ABC123
b. ABC2312
In which case the b. 23 should be left as good and the one in a. and
both the one and two (last two chars) should be marked as bad.
So is there a nifty wee algorithm to do this, and I am just too stupid
to get it, or is it my boss who is expecting a little much for a
couple of hours work...?
Cheers
Antoine
--
G System, The Evolving GUniverse - http://www.g-system.at
--
gentoo-user@gentoo.org mailing list