T
Terry
I've got a situation where I have a set of data, and later take another
snapshot to obtain a second set of data. There will be one or more
changes in the second set of data and I need to be able to tell which
items were in the first set missing from the second set and which items
were added to the second set.
Can anyone recommend an algorithm for this, or a collection class in C#
that may be of help?
My first inclination is the take two arrays and just start looping
through one at a time, but it seems like this is something that would
have to done all the time and that there would be a more efficient
algorithm for doing so.
In the end, I'd like to be able to say that between that time and this
time, "x" and "y" were added, and "z" was removed.
Thanks!
snapshot to obtain a second set of data. There will be one or more
changes in the second set of data and I need to be able to tell which
items were in the first set missing from the second set and which items
were added to the second set.
Can anyone recommend an algorithm for this, or a collection class in C#
that may be of help?
My first inclination is the take two arrays and just start looping
through one at a time, but it seems like this is something that would
have to done all the time and that there would be a more efficient
algorithm for doing so.
In the end, I'd like to be able to say that between that time and this
time, "x" and "y" were added, and "z" was removed.
Thanks!