hi... am looking for an efficient algorithm to synchronize two arrays..
Lets say a1 and a2 are two arrays given as input...
a1 - C , C++ , Java , C# , Perl
a2 - C++ , Python , Java , Cw , Haskel
output 2 arrays:
Output A1 : C , C++ , Java
Output A2 : Cw , Haskell , Python
Output A1 : 1) items common to both arrays 2) items only in a1 and not in a2
Output A2:
items only in a2
thanks in advance... raj...