Sorting algorithms/Shell sort: Difference between revisions
no edit summary
mNo edit summary |
No edit summary |
||
Line 2,029:
=={{header|Ring}}==
<lang ring>
aList = [-12, 3, 0, 4, 7, 4, 8, -5, 9]
shellSort(aList)
for i
next
func shellSort a
inc = ceil( len(a) / 2 )
while
while
inc = floor( 0.5 + inc / 2.2 )
end
</lang>
|