Anonymous user
De Bruijn sequences: Difference between revisions
m
→{{header|REXX}}: added a programming note.
m (added a MathWorld reference.) |
m (→{{header|REXX}}: added a programming note.) |
||
Line 83:
=={{header|REXX}}==
The de Bruijn sequence generated by this REXX program is identical to the sequence shown on the ''discussion'' page (1<sup>st</sup> topic).
Programming note: instead of hardcoding the ''lastNode'' (that is elided from the sequence), the 5<sup>th</sup> to the last node could simply
<br>not be added to the sequence.
<lang rexx>/*REXX pgm calculates the de Bruijn sequence for all pin numbers (4 digit decimals). */
$= /*initialize the de Bruijn sequence. */
|