in reply to hashing intervals

Intervals cannot overlap

Great!
Q: What's the value associated with 45?
A: It is 12. No, wait, 23. Uh...

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: hashing intervals
by Skeeve (Parson) on Jul 30, 2013 at 06:39 UTC

    12 is incorrect, as is 23.

    See: but some intervals can remain empty like 18-18 or 21-22

    So it seems the boundaries are excluded.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
      > So it seems the boundaries are excluded.

      ... 10-10 65 1-1 45 ...

      Cheers Rolf

      ( addicted to the Perl Programming Language)

        So?

        These are just 2 empty intervals.


        s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
        +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e