What is the most efficient way for checking for equality of two m * n matrices and more importantly the [i][j] index (or indices) which caused the two matrices to be unequal.
In my case, 'm' is relatively small (<=4) and n is relatively large (<=512).
Context of the problem : I have an Active Standby setup for my application. Whenever an event happens which causes a state change, the active sends an update to the standby. However, we have observed sometimes standby is out-of-sync with the active even though the active has send all updates. We are planning therefore to run an audit on the data structure synced. The audit will calculate a checksum on active and send them to the slave. The slave will do the same and will return a NAk if they do not match. The active will then sync the slave again. My problem is I want the slave to return the [i][j] position which caused the checksum to not match.
Edit: Language C