Re: Addition of sequences



In article
<6c6a08cd-b13c-47e5-9bf6-cc992d5ec12e@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
elanamig <elanamig@xxxxxxxxx> wrote:

Is it allowed to add two binary sequences in the following manner?
Both sequences are from i=0 to infinity, and all terms are either 0 or
1.
Seq A = |Si-Ti|/2^i
Seq B = |Ti-Ui|/2^i

Is the following sum valid?
A+B = |Si-Ti+Ti-Ui|/2^i = |Si-Ui|/2^i?

No, take Si = Ui = 1 for all i, Ti = 0 for all i.

I understand about the triangle inequality for the general case. But
are binary sequences a special case?

Thank you,
Elana
.



Relevant Pages

  • Re: Optimize a sequence function
    ... traversing a big list of sequences I can say: ... sequence of the set and I get just that, using very few memory, very ... I am assuming that seq is always a list. ... for elt in set ...
    (comp.lang.lisp)
  • Re: writable iterators?
    ... e = blah # will do nothing ... should change seq in place, i.e. you would expect that seq should now ... it would be *disastrous* if iterables worked that way. ... immutable sequences, like tuples, are immutable and cannot be changed ...
    (comp.lang.python)
  • Re: Optimize a sequence function
    ... In deciding which elts to get don't you ... have to traverse the set to begin with? ... seq with the indexes, why not the elts?) ... traversing a big list of sequences I can say: ...
    (comp.lang.lisp)
  • Re: Coding style
    ... is perl style and verbose is python style. ... lst = was not what ... For sequences,, use the fact that empty ... Yes: if not seq: ...
    (comp.lang.python)
  • Re: Cantor Confusion
    ... rationals that comes arbitrarily close to other such sequences and so ... diagonal proof was not about the reals at all. ... *based* on the axiom of infinity, ...
    (sci.math)