De Bruijn sequences: Difference between revisions
m
tidy up some Wikipedia and OEIS links
(Added solution for Pascal.) |
Thundergnat (talk | contribs) m (tidy up some Wikipedia and OEIS links) |
||
Line 36:
;Task:
For this Rosetta Code task, a '''de Bruijn''' sequence is to be generated that can be used to shorten a brute-force attack on
a [
key and accepts the last <big> ''n'' </big> digits entered.
Note: [
this, but their software has been updated to not allow a brute-force attack.
;Example:
A [
have ''B'' (10, 4) solutions, with a length of '''10,000''' (digits).
Line 76:
;References:
:* Wikipedia entry: [
:* MathWorld entry: [http://mathworld.wolfram.com/deBruijnSequence.html de Bruijn sequence].
:* An OEIS entry: [
<br><br>
Line 1,676:
=={{header|Haskell}}==
=== Permutation-based ===
Straight-forward implementation of inverse Burrows—Wheeler transform [
<lang haskell>import Data.List
|