Re: how to compare two number sequences
From: FC (fcarpio_at_NOJUNKcomcast.net)
Date: 03/04/05
- Next message: Martijn Mulder: "Re: Backward traversal of sequence container: stop condition"
- Previous message: deancoo: "Re: Swapping data between vector and map..."
- In reply to: David Harmon: "Re: how to compare two number sequences"
- Next in thread: Ioannis Vranos: "Re: how to compare two number sequences"
- Reply: Ioannis Vranos: "Re: how to compare two number sequences"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 04 Mar 2005 06:44:44 -0500
David Harmon wrote:
> 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
>
Thanks, that was painless.
- Next message: Martijn Mulder: "Re: Backward traversal of sequence container: stop condition"
- Previous message: deancoo: "Re: Swapping data between vector and map..."
- In reply to: David Harmon: "Re: how to compare two number sequences"
- Next in thread: Ioannis Vranos: "Re: how to compare two number sequences"
- Reply: Ioannis Vranos: "Re: how to compare two number sequences"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|