r/oddlysatisfying • • Sep 02 '19

Learn sorting algorithm with Kronk

8.9k Upvotes

58 comments sorted by

View all comments

Show parent comments

1

u/Terakahn Sep 03 '19

How does this help it rearrange pixels in a picture?

1

u/Mr_Redstoner Oh yes Sep 03 '19

This is just an assumption, as I'm not the author, but most likely the pixels are assigned numbers, when those numbers are in order the pixels form the correct picture. So the algorithms are sorting regular numbers and pixels are used for visualisation only.

And they're not quite pixels, they are clearly several pixels big.