Remix.run Logo
smusamashah 4 days ago

I also made a sorting visualizer based on a popular imgur sorting gifs gallery.

Demo https://xosh.org/VisualizingSorts/sorting.html

Post https://xosh.org/sorting-algorithms-visual-comparison/

Imgur gallery I was trying to replicate https://imgur.com/a/voutF

This also let you try out your own sorting algorithm too btw and share that in url. For example this algo https://xosh.org/VisualizingSorts/sorting.html#IYZwngdgxgBAZ... which was discussed at the time https://news.ycombinator.com/item?id=31975507

(Dont turn on sound, i dont know how to make it sound nicer)

The detail slider is a manual thing. You put the render call with 1/2/3 level in the loop. Only the lines with same render level will be displayed. Can be used to see the sorting at different granularity.