

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Radix sort example (n = 50) Orig. After After After data pass1 pass2 pass 202 520 202 010 Pass 1: 263 250 902 025 Units digits 591 010 404 059 in order. 520 640 705 086 293 460 010 087 Pass 2: 262 591 313 127 Tens digits 969 591 418 147 in order. 591 241 520 157 Units in 736 651 725 159 order within 444 961 025 187 tens. 294 571 127 188 313 202 736 195 Pass 3: 187 262 836 202 Hundreds 241 902 938 241 digits in 579 872 939 244 order. Tens 836 263 640 250 in order 725 293 241 262 within hundreds; 902 313 444 263 units in order 353 353 744 293 within tens. 188 444 244 294 086 294 147 313 Underlines 250 744 250 353 indicate breaks in 195 244 651 359 the digit being 939 404 353 379 sorted. 025 725 157 404 157 195 059 418 705 025 359 444 651 705 159 460 938 495 460 495 379 736 961 520 059 836 262 571 744 086 263 579 866 866 866 591 359 187 969 591 244 157 669 640 404 127 571 651 010 147 872 669 640 087 579 679 127 188 379 705 147 938 679 725 872 418 086 736 495 969 187 744 460 579 087 836 679 939 188 866 159 379 591 872 418 059 591 902 961 359 293 938 669 679 294 939 571 159 195 961 087 669 495 969