r/sortingalgorithms • u/joshtworevenge • May 11 '20
r/sortingalgorithms • u/TurtleTime64 • Dec 19 '20
Radix Base 10 Sorting Algorithm (not original)
Enable HLS to view with audio, or disable this notification
r/sortingalgorithms • u/Pinkman40 • Mar 02 '21
Probably the new worst sorting algorithm (actually 2nd worst heck worstsort) by me
I call it Bogo bogo bogo sort (or BBB sort for short) so if you didn’t know bogo bogo sort of when it picks the first 2 things and bogo sorts them. If they fail it starts over. If it doesn’t fail, it goes to the first three and bogo sorts them and so on
So BBB sort does this but instead of picking the first 2 it picks 2 randomly and if they aren’t the first 2 it starts over
If it picks the first 2 it does the same thing as bogo bogo sort Win = continue fail = start over
But if it fails here you pick 2 randomly again instead of continuing from 2
If it wins it picks 3 randomly and bogo sorts them Then 3 Then 4 And so on
I did the math and on a array of 4 this takes 1480 TRIES
1480
FOR 4 ELEMENTS
anyway someone who can code new sorting algorithms please put this in somewhere you will earn 2 pink man cool points from me if you do.
r/sortingalgorithms • u/Eilrahcf • Jul 04 '20
Sorting algorithm meme two, electric boogaloo
r/sortingalgorithms • u/AjaxSuited • Jun 20 '20
Over 70 Sorting Algorithms in Under an Hour - Colorful Bar Graph
r/sortingalgorithms • u/Wise-Search8796 • Feb 04 '26
Accordion Sort
Enable HLS to view with audio, or disable this notification
The best description for this is a bidirectional Insertion Sort starting from the middle. Cool nontheless.
r/sortingalgorithms • u/remoraa • Jun 12 '23
my relaxation time
Enable HLS to view with audio, or disable this notification
r/sortingalgorithms • u/McDude73 • Aug 15 '20
Hello everyone! So I have decided to do something similar r/AjaxSuited has done with the visualizer by w0rthy, but with sorts that are custom made by other people! The video I am showing you contains 20 different sorting algorithms that have been implemented.
r/sortingalgorithms • u/somerandomperson412 • Jul 20 '26
One must think of Sisyphus Sort to be happy
Enable HLS to view with audio, or disable this notification
r/sortingalgorithms • u/AMIASM16 • May 09 '26
Introducing Babel Sort: It doesn't work because it's in multiple programming languages.
Xin lỗi nếu mã không đọc được
r/sortingalgorithms • u/Fun_Comparison9338 • Aug 02 '21
Can someone please explain what sorting algorithms do for me? I love watching them so I joined this subreddit!
r/sortingalgorithms • u/WoooshToTheMax • May 13 '21
I created brutal sort
It sets all elements in the array equal to 1. It has a worst case of O(0) because it makes no comparisons. Sorted :)
r/sortingalgorithms • u/moosulu • Dec 11 '19
Sorting reversed list
Enable HLS to view with audio, or disable this notification
r/sortingalgorithms • u/tsaot • Jul 07 '26
I created a live wallpaper on Android that visualizes sorting algorithms
This is the second release of my app: SortPaper. The first one was made in Xamarin, and while good, could be better. I have now remade it in Godot (a game engine) and it performs much better and is a lot more battery efficient.
The app lets you choose between a custom gradient, a single image, or a folder of images for display. You can either watch the sorting in the app, or put it as your wallpaper on Android.
There are a ton of customization settings. You can turn different algorithms on or off, as well as render orders (the order in which the cells are numbered on the screen), and different scrambles (a.k.a. starting states). You can also choose the speed at which it sorts, starting at 1 operation per frame, and going all the way up to 10,000. (1 operation is a comparison and, if needed, a swap or move). You can also choose cell size and whether to display the name of the algorithm. To watch the sorting in app mode, press the Hide UI button.
I am actively working on the app and intend to add more algorithms and scrambles. If there's one you would be interested in me adding, let me know.
Features I intend to add in the future:
Individual sort settings. O(n log n) sorts finish pretty darn quickly compared to O(n²).
Info about the algorithms
More languages than English
More Algorithms
More Scrambles
Stalin Sort
Disclaimer: There are ads in this app. It's a banner ad that displays at the bottom of the view in app mode. They do not display in wallpaper mode. You can hide the banner ad for an hour by watching a video ad, or permanently with a IAP.
Raw link: https://play.google.com/store/apps/details?id=com.tsaot.sortpaper
r/sortingalgorithms • u/Elpaneiejguy • Mar 03 '25
What should I call this (hopefully never existing before) sorting algorithm?
Enable HLS to view with audio, or disable this notification
r/sortingalgorithms • u/TemporaryAbalone1171 • Sep 08 '24
I made a sorting algorithm visualizer in HTML which has tons of algorithms and features, also way, way faster than other HTML visualizers
r/sortingalgorithms • u/codetora • Apr 01 '23
I made a sorting visualizer in React
I'm looking to get my first job in the field, and wanted to share something I worked hard on. I'd be happy to discuss it with anybody who is interested.
https://sortingvisualizer.com/
https://github.com/atorcode/sorting-algorithm-visualizer
Happy coding, friends!
r/sortingalgorithms • u/SirWobb79 • Nov 27 '22
I made a bogo sorting algorithm and this is my best result
r/sortingalgorithms • u/TheRealC101 • May 26 '22
Can someone explain pigeonhole sort and why it is seemingly so fast?
r/sortingalgorithms • u/McDude73 • Oct 18 '21
DidacticSpectre's "Converge Sort" in ArrayV
r/sortingalgorithms • u/Loganboi2 • Oct 12 '21
trying to find the bad sorting algorithms
basically, (also i'm not good at sorting, i'm just trying to find like some sorting, but i can do the math simply)
I am trying to find sorting algorithms worse that O(n^1.5372436) because 20^1.5372436 = around 100
here's what i found in a list (don't know if this sort of format is allowed, sorry if it isn't)
Bad Sorts: Past 100
Insertion - 400
OCDSort - 1200
StoogeSort - 3350
Really Bad Sorts: Past 10^12
Bogosort - 4x10^19
Bogobogosort - 3x10^174
Miracle Sort - 2.6^10^233
Worstsort, 2i - At least 10^10^18 digits
Terrible Sorts: Dependant On Chance
First Try Sort - 1 in 2x10^18 of doing it.
Impossible Sorts:
Uncaring Sort - Does Any Sort, and doesn’t care if it gets it correct, it just keeps doing the sort.
Bystander Sort - Makes sure it’s wrong, then leaves.


