I have a requirement to compare two lists, generating a third which is a
combination of both.
With the first list as the reference list and the second as the test
list, I want the each of the result list's elements to contain a moniker
denoting whether that element:
1..Exists only in the reference list
or
2..Exists in boths lists
or
3...Exists only in the test list
In particular, I would like to use the most efficient algorithm possible
using the least amount of iterations and the least amount of
comparisons.
Any ideas?
Ben Fidge
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
combination of both.
With the first list as the reference list and the second as the test
list, I want the each of the result list's elements to contain a moniker
denoting whether that element:
1..Exists only in the reference list
or
2..Exists in boths lists
or
3...Exists only in the test list
In particular, I would like to use the most efficient algorithm possible
using the least amount of iterations and the least amount of
comparisons.
Any ideas?
Ben Fidge
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment