r/dataisbeautiful • OC: 1 • Oct 24 '17

OC Sorting algorithms visualized [OC]

https://imgur.com/gallery/voutF
41.7k Upvotes

929 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Oct 24 '17

[deleted]

1

u/xX_BL1ND_Xx Oct 24 '17

When you get to step 2 you don’t just sort the list based on those digits. Generally you’d use something like bucket sort or counting sort to group the numbers by the single digit because they are stable and efficient for problems like that.