De Bruijn sequences: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: simplified the program, changed some comments. |
m →{{header|REXX}}: added highlighting to the REXX section header. |
||
Line 83: | Line 83: | ||
Programming note: instead of hardcoding the ''lastNode'' (that is elided from the sequence), the 5<sup>th</sup> to the last node could simply |
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. |
<br>''not'' be added to the sequence. |
||
<lang rexx>/*REXX pgm calculates the de Bruijn sequence for all pin numbers (4 digit decimals). */ |
<lang rexx>/*REXX pgm calculates the de Bruijn sequence for all pin numbers (4 digit decimals). */ |
||
$= /*initialize the de Bruijn sequence. */ |
$= /*initialize the de Bruijn sequence. */ |