Sorting algorithms/Insertion sort: Difference between revisions
Content added Content deleted
Line 949: | Line 949: | ||
println! () |
println! () |
||
end</lang> |
end</lang> |
||
{{out}} |
|||
Sorting random numbers. |
|||
<pre>$ patscc -DATS_MEMALLOC_GCBDW -O3 insertion_sort_task_array_of_nonlinear.dats -lgc && ./a.out |
|||
3 6 7 5 3 5 6 2 9 1 2 7 0 9 3 6 0 6 2 6 1 8 7 9 2 0 2 3 7 5 |
|||
0 0 0 1 1 2 2 2 2 2 3 3 3 3 5 5 5 6 6 6 6 6 7 7 7 7 8 9 9 9</pre> |
|||
===For arrays whose elements may be of linear type=== |
===For arrays whose elements may be of linear type=== |