Compare sorting algorithms' performance: Difference between revisions
Content added Content deleted
m (added sorting category.) |
m (→{{header|REXX}}: changed an arrow glyph.) |
||
Line 2,495: | Line 2,495: | ||
xcreps= copies( left('', Lr-1, '─')"┼", ranges) |
xcreps= copies( left('', Lr-1, '─')"┼", ranges) |
||
say center('' , 12, '─')"┼"left(xcreps, length(xcreps)-1)"┤" |
say center('' , 12, '─')"┼"left(xcreps, length(xcreps)-1)"┤" |
||
call show 'bubble' /* |
call show 'bubble' /* ◄──── show results for bubble sort.*/ |
||
call show 'cocktail' /* |
call show 'cocktail' /* ◄──── " " " cocktail " */ |
||
call show 'cocktailSB' /*+Shifting Bounds*/ /* |
call show 'cocktailSB' /*+Shifting Bounds*/ /* ◄──── " " " cocktailSB " */ |
||
call show 'comb' /* |
call show 'comb' /* ◄──── " " " comb " */ |
||
call show 'gnome' /* |
call show 'gnome' /* ◄──── " " " gnome " */ |
||
call show 'heap' /* |
call show 'heap' /* ◄──── " " " heap " */ |
||
call show 'insertion' /* |
call show 'insertion' /* ◄──── " " " insertion " */ |
||
call show 'merge' /* |
call show 'merge' /* ◄──── " " " merge " */ |
||
call show 'pancake' /* |
call show 'pancake' /* ◄──── " " " pancake " */ |
||
call show 'quick' /* |
call show 'quick' /* ◄──── " " " quick " */ |
||
call show 'radix' /* |
call show 'radix' /* ◄──── " " " radix " */ |
||
call show 'selection' /* |
call show 'selection' /* ◄──── " " " shell " */ |
||
call show 'shell' /* |
call show 'shell' /* ◄──── " " " shell " */ |
||
say translate(center('' , 12, '─')"┴"left(xcreps, length(xcreps)-1)"┘", '┴', "┼") |
say translate(center('' , 12, '─')"┴"left(xcreps, length(xcreps)-1)"┘", '┴', "┼") |
||
exit 0 /*stick a fork in it, we're all done. */ |
exit 0 /*stick a fork in it, we're all done. */ |