Computing desk | ||
---|---|---|
< May 10 | << Apr | May | Jun >> | May 12 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
What is the name of this sorting algorithm?
Some joke sorting algorithmn (that I am sure it exist) came into my mind. I am sure this already exist, so I am asking the name of it.
The algorithm:
0-There is a list of numbers A.
1-Create variable minnumber and maxnumber. And list B and list C.
2-Copy values from list A to list B.
3-Look at entire list A to find lowest and biggest number and put them at minnumber and maxnumber.
4-Look at the entire list B and search for numbers equal to maxnumber. Everytime a number is found that fit the rule, put the number at the start at list C and remove from list B this value found.
5-Maxnumber = Maxnumber -1.
6-If Maxnumber >= minnumber go back to 4. If not go to 7.
7-Copy list C to list A.
2804:7F2:5A5:BB11:2922:59C5:1F60:65C5 ( talk) 23:38, 11 May 2022 (UTC)
Computing desk | ||
---|---|---|
< May 10 | << Apr | May | Jun >> | May 12 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
What is the name of this sorting algorithm?
Some joke sorting algorithmn (that I am sure it exist) came into my mind. I am sure this already exist, so I am asking the name of it.
The algorithm:
0-There is a list of numbers A.
1-Create variable minnumber and maxnumber. And list B and list C.
2-Copy values from list A to list B.
3-Look at entire list A to find lowest and biggest number and put them at minnumber and maxnumber.
4-Look at the entire list B and search for numbers equal to maxnumber. Everytime a number is found that fit the rule, put the number at the start at list C and remove from list B this value found.
5-Maxnumber = Maxnumber -1.
6-If Maxnumber >= minnumber go back to 4. If not go to 7.
7-Copy list C to list A.
2804:7F2:5A5:BB11:2922:59C5:1F60:65C5 ( talk) 23:38, 11 May 2022 (UTC)