Sorting algorithms/Cocktail sort: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) m (→{{header|360 Assembly}}: A better comment) |
PatGarrett (talk | contribs) m (→{{header|360 Assembly}}: a correction) |
||
Line 34: | Line 34: | ||
=={{header|360 Assembly}}== |
=={{header|360 Assembly}}== |
||
{{trans|PL/I}} |
{{trans|PL/I}} |
||
The implemented algorithm is the « cocktail shaker sort ».<br> |
|||
The program uses HLASM structured macros (DO,ENDDO,IF,ELSE,ENDIF) for readability and two ASSIST/360 macros (XDECO,XPRNT) to keep the code as short as possible. |
The program uses HLASM structured macros (DO,ENDDO,IF,ELSE,ENDIF) for readability and two ASSIST/360 macros (XDECO,XPRNT) to keep the code as short as possible. |
||
<lang 360asm>* Cocktail sort 25/06/2016 |
<lang 360asm>* Cocktail sort 25/06/2016 |