in reply to Re^2: Generic De Bruijn Sequence
in thread Generic De Bruijn Sequence

> . The last $n-1 chars overlap with the beginning
> debruijn.pl 5 2 AAEEDECEBEADDCDBDACCBCABBA 123456789012345678901234567890

I don't understand how $n=5 (Alphabet size according to your code) results in length 26 instead of 25.

please explain°

edit

>  walk through on paper to believe that it's correct.

Your user image shows Richard P. Feynman and you are questioning scientific reviews in mathematics? Ironic :)

UPDATE

") did you mean $t-1 ?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^4: Generic De Bruijn Sequence (updated)
by QM (Parson) on Apr 26, 2017 at 09:57 UTC
    ") did you mean $t-1 ?
    Yes. In my original code, I used $n for both. But later realized I could split that into 2 parameters. I probably used $n here through that mistake.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of