in reply to Comparing two arrays

1.
please tell what exactly you want to see at the end
of your calculations?
@a = 1 0 1
@b = 1 0 0
@c = ?
2.
15000int's long means length of an each array?
15000 elements in each array?

Replies are listed 'Best First'.
Re^2: Comparing two arrays
by baxy77bax (Deacon) on Dec 15, 2013 at 12:45 UTC
    oh i missed that part , sorry
    @a = 1 0 1 @b = 1 0 0 @c = 1 0 0 # unnecessary as array , just the final count of 1's in arr +ay @c
    what i need is the total number of matched 1's so in the example above i just need number 1 as a result.

    " 15000int's long means length of an each array?
    15000 elements in each array? "

    yes 15000 integer values in any array that i'm dealing with. and yes 15000 (1's or 0's). not 15000 of just 1's not 15000 of just 0's and not #1's + #0's = 15000. 15000 elements over the alphabet of size 2: array(x or y) = {x | x in A} where A={1,0}