Re: how to compare two number sequences

From: David Harmon (source_at_netcom.com)
Date: 03/04/05


Date: Fri, 04 Mar 2005 06:37:31 GMT

On Fri, 04 Mar 2005 00:40:05 -0500 in comp.lang.c++, FC
<fcarpio@NOJUNKcomcast.net> wrote,
>I have two 32 bit long sequence of binary random numbers. When I compare
>them side by side I want to count all the transitions from one to zero,
>and all the transitions from zero to one

  A & ~B
  B & ~A



Relevant Pages

  • Re: how to compare two number sequences
    ... >>I have two 32 bit long sequence of binary random numbers. ... When I compare ... >>them side by side I want to count all the transitions from one to zero, ...
    (comp.lang.cpp)
  • how to compare two number sequences
    ... I have two 32 bit long sequence of binary random numbers. ... When I compare ... them side by side I want to count all the transitions from one to zero, ...
    (comp.lang.cpp)
  • Re: My code to determine whether two words are anagrams wont work.
    ... then compare the sorted lists. ... Actually I believe this can be done in one pass per string with the ... Zero out the character table, ... number of times any count transitions from 0 to 1. ...
    (comp.lang.c)