in reply to Generic De Bruijn Sequence
Many sources recommend an algorithm from Frank Ruskey , easily found implemented in various languages, here one in Python De_Bruijn_sequence#Algorithm which is not too hard to be ported.
Besides: The minimal length k^n is proven to be always achievable.
Which consequently means at least your first result and hence your algorithm is wrong.
AAACCCBCCACBBCBACABCAABBBABAA
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generic De Bruijn Sequence
by QM (Parson) on Apr 19, 2017 at 23:07 UTC | |
by LanX (Saint) on Apr 19, 2017 at 23:16 UTC | |
by QM (Parson) on Apr 26, 2017 at 09:57 UTC | |
by LanX (Saint) on Apr 19, 2017 at 23:47 UTC | |
|
Re^2: Generic De Bruijn Sequence
by BrowserUk (Patriarch) on Apr 19, 2017 at 23:03 UTC | |
by LanX (Saint) on Apr 19, 2017 at 23:08 UTC | |
by BrowserUk (Patriarch) on Apr 19, 2017 at 23:48 UTC | |
by LanX (Saint) on Apr 20, 2017 at 00:46 UTC | |
by BrowserUk (Patriarch) on Apr 20, 2017 at 01:18 UTC |