There's more than one way to do things | |
PerlMonks |
Re^5: Generic De Bruijn Sequenceby LanX (Saint) |
on Apr 20, 2017 at 00:46 UTC ( [id://1188351]=note: print w/replies, xml ) | Need Help?? |
> 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
In Section
Cool Uses for Perl
|
|