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' /* ►──── show results for bubble sort.*/
call show 'bubble' /* ◄──── show results for bubble sort.*/
call show 'cocktail' /* ►──── " " " cocktail " */
call show 'cocktail' /* ◄──── " " " cocktail " */
call show 'cocktailSB' /*+Shifting Bounds*/ /* ►──── " " " cocktailSB " */
call show 'cocktailSB' /*+Shifting Bounds*/ /* ◄──── " " " cocktailSB " */
call show 'comb' /* ►──── " " " comb " */
call show 'comb' /* ◄──── " " " comb " */
call show 'gnome' /* ►──── " " " gnome " */
call show 'gnome' /* ◄──── " " " gnome " */
call show 'heap' /* ►──── " " " heap " */
call show 'heap' /* ◄──── " " " heap " */
call show 'insertion' /* ►──── " " " insertion " */
call show 'insertion' /* ◄──── " " " insertion " */
call show 'merge' /* ►──── " " " merge " */
call show 'merge' /* ◄──── " " " merge " */
call show 'pancake' /* ►──── " " " pancake " */
call show 'pancake' /* ◄──── " " " pancake " */
call show 'quick' /* ►──── " " " quick " */
call show 'quick' /* ◄──── " " " quick " */
call show 'radix' /* ►──── " " " radix " */
call show 'radix' /* ◄──── " " " radix " */
call show 'selection' /* ►──── " " " shell " */
call show 'selection' /* ◄──── " " " shell " */
call show 'shell' /* ►──── " " " 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. */