I am writing to php, and there is a real task of comparing 2 huge arrays of data. But the bug is that these arrays are broken down by file ...
A1 file - contains 5000 digits A2 file - contains 5000 digits .... And there are a lot of such files. All together this is an array of more than 10,000,000 digits.
There are also similar files b1, b2, b3 ... With the same structure of 5000 digits, and in fact it is the same array as in a1, only some digits were removed from there, and some were added.
So, I need to compare these 2 arrays in order to get at the output what they added there and what they deleted.
Why can't I just collect 2 arrays of 10,000,000 records and compare them to array_diff ?? Yes, because I can’t take it out from memory, and there can be much more in theory.
For this, I am looking for solutions of some kind of recursive comparison.