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 &nbsp; de Bruijn &nbsp; sequence generated by this REXX program is identical to the sequence shown on the &nbsp; ''discussion'' &nbsp; page &nbsp; (1<sup>st</sup> topic).
 
Programming note: &nbsp; instead of hardcoding the &nbsp; ''lastNode'' &nbsp; (that is elided from the sequence), &nbsp; 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. */