09-16-2007 10:51 PM
09-17-2007 12:13 AM - edited 09-17-2007 12:13 AM
Message Edited by Bill@NGC on 09-16-2007 10:13 PM
09-17-2007 01:38 AM - edited 09-17-2007 01:38 AM
Message Edited by altenbach on 09-16-2007 11:40 PM
09-17-2007 02:07 AM
09-17-2007 02:09 AM
09-17-2007 02:27 AM - edited 09-17-2007 02:27 AM
@chenli868 wrote:
To alterbach:
aren't we supposed to sort the 1D array before search?
NO! Sorting would mess up all element positions and it would be impossible to reconstruct the original indices.
What do you have in mind?
(There is one little oversight. Of course the 2D array and the element to be found should be in the same representation. You need to modify both to whatever representation your data is.)
Message Edited by altenbach on 09-17-2007 12:32 AM
09-17-2007 02:39 AM
09-17-2007 08:33 PM
09-17-2007 08:42 PM
09-17-2007 08:55 PM