Sorting algorithms/Heapsort: Difference between revisions
Content added Content deleted
(Added AppleScript implementation.) |
m (→{{header|AppleScript}}: Minor comment correction.) |
||
Line 377: | Line 377: | ||
<lang applescript>-- In-place binary heap sort. |
<lang applescript>-- In-place binary heap sort. |
||
-- Heap sort algorithm: J. |
-- Heap sort algorithm: J.W.J. Williams. |
||
on heapSort(theList, l, r) -- Sort items l thru r of theList. |
on heapSort(theList, l, r) -- Sort items l thru r of theList. |
||
script o |
script o |