Jump to content

Sorting algorithms/Heapsort: Difference between revisions

m
→‎{{header|360 Assembly}}: Superfluous blanks suppressed
m (→‎{{header|360 Assembly}}: Superfluous blanks suppressed)
Line 64:
{{trans|PL/I}}
The program uses ASM structured macros and two ASSIST macros (XDECO, XPRNT) to keep the code as short as possible.
<lang 360asm>* Heap sort 22/06/2016
* Heap sort 22/06/2016
HEAPS CSECT
USING HEAPS,R13 base register
Line 199 ⟶ 198:
N DC A((N-A)/L'A) number of items
YREGS
END HEAPS</lang>
</lang>
{{out}}
<pre>
-31 0 1 2 2 4 45 58 65 69 74 82 82 83 88 89 99 104 112 782
</pre>
 
 
=={{header|ActionScript}}==
1,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.