how to compare two number sequences

From: FC (fcarpio_at_NOJUNKcomcast.net)
Date: 03/04/05


Date: Fri, 04 Mar 2005 00:40:05 -0500

Hi all:
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 between the two sequences like
this:

01100110101010011010101010011001
00110110111001100101010111010101
  v ^ ^ v^^vv^v^v^v^ ^ v^

Where v is when it goes low from the first to the second sequence and ^
when it goes high.

So far I have implemented an xor and I can count all the transitions but
I cannot tell them apart (between high and low). Is there a function or
a method that will allow me to tell them apart? If I could do this in
one pass will be even better. Thanks in advance.



Relevant Pages

  • Re: Symmetry of DNA replication
    ... transitions equalling transversions in a particular sequence after ... quite a lot of substitutions have occurred (a long divergence time ... Transitions occur at a rate of around 2:1, ... a back transversion is less likely. ...
    (sci.bio.evolution)
  • 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)
  • 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)
  • Re: Question
    ... I did NOT say that the sequence is ... "eventually equal to zero". ... There is no omega here. ... A sequence of rationals was defined to be a function from the NATURALS ...
    (sci.math)
  • Re: Zero-padding, resolution and aliasing
    ... sequence has an "actual" continuous spectrum ... Zero padding the time sequence and performing ... With the extra zeros it is then an infinite sequence. ... discrete-time Fourier transform. ...
    (comp.dsp)