Well its more table then its a matrix, the data is represented in row
row example:
car | manufacture year | engine volume
Volvo | 1996 2002
The data arrives as matrix data structure
What I thought to do:
Run this :
For each row in first table get the element at [i][0]
For each row in second table get element at [j][0]
{
Are element equal?{
For each column in row i in first table mark changes between j
row
in the second table
Break second loop;
}
If no matching row found , mark entire row i as missing
}
Once on matrix1, matrix2
And then run it on matrix2,matrix1 (in order to find missing rows in
matrix2)
Also I thought about sorting the matrixes by the rows first element
and then perform minus operation between the matrixes row by row and
get the differences matrix
I am looking for the best and fastest solution because the matrix size
is enormous
Thank you
Sharon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---