On Sat, 5 Nov 2005 23:39:37 +0100, "Soeren S. Joergensen"
<no****@nodomain.com> wrote:
Hi,
I've got to byte arrays, and want to search first array for the position of
the first occurance of the other.
How is this best implemented ?
Kr. Soren
It seems to me that what you are doing is a bit like string searching:
Given array1 = ABCDEFGHIJKLMNOP
and array2 = GHI
find the first position of array2 in array1.
Search for Boyer-Moore Algorithm, Knuth-Morris-Pratt algorithm or
Rabin-Karp algorithm. One of them should help you.
rossum
The ultimate truth is that there is no ultimate truth