Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Generic De Bruijn Sequence

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


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

Is this a guess or do you have a formal proof?

Took me a while to understand why prefer "ones succeeds", and AFAIK only if the alphabet is a power of two.

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

Replies are listed 'Best First'.
Re^3: Generic De Bruijn Sequence
by tybalt89 (Monsignor) on Apr 20, 2017 at 17:12 UTC

    It's a guess.

Re^3: Generic De Bruijn Sequence
by QM (Parson) on Apr 26, 2017 at 10:05 UTC
    Does "prefer ones" succeed regardless of the alphabet size?

    My solution is, I think, a "prefer last" solution. Testing a few basic, low valued, parameters appears to give the correct answer.

    Perhaps if someone has a good head for this, they could suggest some parameter values that break under "prefer last" (or indeed, any other method). I don't have the time to tinker, and besides, I'm not that good at poking around the edges.

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

      I don't know what this "prefer last" is exactly supposed to mean. But there is such a thing as lexicographically minimal de Bruijn sequence. It becomes lexicographically maximal when you reverse the alphabet. So I'm wondering if you might obtain the desired output by simply remapping the symbols of MinimalDeBruijn($alphabet_size).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found