Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Generic De Bruijn Sequence

by LanX (Saint)
on Apr 20, 2017 at 00:46 UTC ( [id://1188351]=note: print w/replies, xml ) Need Help??


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

> ad need to explore DeBruijn with a binary alphabet,

Binary alphabet seems easy, a bit of searching produced a "prefer ones" algorithm.

From SO

> Prefer Ones is quite simple: Write n zeros. Then, always write a one unless it would cause the repetition of an n-length string; otherwise, write a zero.

HTH

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

Replies are listed 'Best First'.
Re^6: Generic De Bruijn Sequence
by BrowserUk (Patriarch) on Apr 20, 2017 at 01:18 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188351]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-28 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found