WorstSort: the WORST sorting algorithm

Поділитися
Вставка
  • Опубліковано 6 чер 2024
  • What was the worst event in 2016? goo.gl/forms/yJMOYvsVPlLt29nk2
    So this was a good bit of fun to program. It is essentially a platter of all the worst sorting algorithms imaginable, starting with bubble sort and bogosort and moving onto one that is downright silly: worstsort.
    I hope all the descriptions made sense. If you have trouble understanding anything, let me know and I'll try to explain it in the comment section.
    Anyway, thanks again for popping in and watching / I'll see you next time!
    The music came from Josh Woodward (sped up 1.5 times):
    www.joshwoodward.com/
    Please feel free to follow me on Twitter:
    / leiosos
    Twitch (where I do all the simulations):
    / leioslabs
    My second youtube channel (where I put the streams):
    ua-cam.com/channels/Ff6.html...
    or Github:
    github.com/leios
    The code I used is available here:
    github.com/leios/simuleios/tr...
    (sorry it's so messy)
    Also, discord:
    / discord
  • Наука та технологія

КОМЕНТАРІ • 235

  • @LeiosLabs
    @LeiosLabs  3 роки тому +214

    Ok. I get it. 2020(1) was (were) objectively worse than 2016. If you watch until the end of the video, you will see that I said 2016 was nowhere near as bad as we thought it was and subsequent years could get worse.
    I will redo this video sometime in the near future and focus explicitly on worstsort instead of the dumb joke that "2016 was the worstsort of year." Just realize that this video was made at a different era of educational youtube. Back then, it was not clear that doing a video on sorting algorithms would at all be successful. It was also one of the earlier videos on my channel, so the presentation is a bit odd.
    Still, after rewatching it, I cannot say it's a bad narrative, just that the presentation and theme around 2016 were a bit off.

    • @fairlyfactual451
      @fairlyfactual451 3 роки тому +4

      It looks perfectly fine to me. Good logical steps from beginning to end.

    • @juanpablo6686
      @juanpablo6686 3 роки тому

      Okay, but... how many iterations do you do before using bubble sort? And how you decide that?

    • @mqccheeze
      @mqccheeze 2 роки тому

      was about to comment this, good video

    • @cyastis
      @cyastis 2 роки тому +1

      ps. I believe part of the reason of its success is *because* people feel the need to comment on how 2016 wasn't as bad of a year.. so maybe it works out

    • @ts4gv
      @ts4gv 2 роки тому +3

      Was anyone actually upset about that line? If so, that’s ridiculous. I thought everyone was just poking a bit of fun.
      Who knows… in a few years, maybe we’ll find it was naive to say “2020 was the worstsort of year”

  • @yeong126
    @yeong126 2 роки тому +185

    I have even more worst sort idea. I call this sort Radiation Sort.
    1. Check if the array is sorted.
    2. If not, wait until a high energy natural radiation particle to hit the RAM and corrupt the array.
    Since the particle can corrupt any part of the array, the array will be eventually sorted given enough time.
    You can accelerate the process by putting some uranium ore in the computer.

  • @leoerickson980
    @leoerickson980 3 роки тому +433

    "2016 has been a pretty rough year" lmaoooooooooooooooooooooooo

  • @Menaceirl
    @Menaceirl 3 роки тому +407

    "2016 was a pretty rough year"
    uhh 2020 here... can we go back

    • @brunos6599
      @brunos6599 3 роки тому +8

      2021 hasn't been that great either. I believe it will take less than two months for people to be satiated with being alone and we respectfully ignore further nonsense.

    • @Sazoji
      @Sazoji 3 роки тому +7

      I'm just here to say hi to the guys in 2022

    • @Red-uu8ru
      @Red-uu8ru 3 роки тому

      To 2019

    • @Red-uu8ru
      @Red-uu8ru 3 роки тому

      2021

    • @CSDragon
      @CSDragon 3 роки тому +1

      @@brunos6599 2021's been pretty good so far. There was a bit of 2020 spillover in Jan and Feb from events that 2020 caused, but so far, 2021's had the vaccine and dunking on Trump

  • @Adomas_B
    @Adomas_B 3 роки тому +188

    Bogo sort could technically be the best algorhitm taking 1 step

    • @schroederxleon
      @schroederxleon 3 роки тому +14

      you need n steps to verify that the array is sorted
      so its best case is n
      (creating a permutation needs n steps as well)

    • @bluelandyaandgreenlandya1788
      @bluelandyaandgreenlandya1788 3 роки тому +43

      There exists a universe where bogosort sorted everything correctly the first time for as long as it has been used, and then, one day it just stops doing that.

    • @davidthecommenter
      @davidthecommenter 2 роки тому

      Sorting Algorithm (Bogo%)

    • @chddrchmze
      @chddrchmze 2 роки тому +1

      best-case: O(3n) (check for list sorting, randomize, check again)
      average performance: O((n+1)!)
      worst-case: O(inf) (can go on forever without getting the sorted list, but chances are infinitesimal.)

    • @arend463
      @arend463 Рік тому +1

      @@bluelandyaandgreenlandya1788 lmao thats actually true, and then after it eventually didnt work human civilization slipped an apocalypse

  • @KingFredrickVI
    @KingFredrickVI 7 років тому +252

    I'll have to tell people to use Bogosort when they suggest should we use bubble sort lol

    • @LeiosLabs
      @LeiosLabs  7 років тому +35

      Haha, only if you want to wait an incredibly long time!

    • @vacucumber_enjoyer
      @vacucumber_enjoyer 3 роки тому

      Insertion sort is tha best

    • @orr4337
      @orr4337 2 роки тому +1

      Well, I mean, it *can* be faster

    • @NOT_A_ROBOT
      @NOT_A_ROBOT 2 роки тому

      bogobogosort:

  • @meepmeepinton
    @meepmeepinton 3 роки тому +128

    watching the intro just after 2020 felt like being slapped

    • @RandomGoldieStuff
      @RandomGoldieStuff 2 роки тому +1

      Yeah.

    • @rkvkydqf
      @rkvkydqf 2 роки тому

      Thanks to the modern news cycle, every year is the worst year. If only we'd given as much attention to good news.

    • @meepmeepinton
      @meepmeepinton 2 роки тому +8

      @@rkvkydqf idk, I feel like a worldwide pandemic where you weren't allowed to go out and socialise and people you know died from a disease was objectively the worst year of my life

    • @stalins_comically_large_spoon
      @stalins_comically_large_spoon Рік тому

      @@meepmeepinton and we might get nuked now, because of the war!

    • @KufLMAO
      @KufLMAO 10 місяців тому

      @@meepmeepintonthe point flew way over your head

  • @MINECRAFTLOVER4000
    @MINECRAFTLOVER4000 4 роки тому +177

    2020 is worstsort :(

  • @NoTraceOfSense
    @NoTraceOfSense 3 роки тому +35

    “Yeah, it’s bad, but it could get a whole lot worse.”
    2020: _Thankfully, things soon got worse._

  • @Caseofgames
    @Caseofgames 3 роки тому +34

    Yeah actually, I want to go back to 2016 after this nightmare.

  • @dn5426
    @dn5426 7 років тому +78

    to be fair bubble sort is easy to implement.

    • @LeiosLabs
      @LeiosLabs  7 років тому +17

      Yeah, it's the first sorting algorithm that people typically learn, so there is that. =)

    • @gnramires
      @gnramires 7 років тому +5

      B̶u̶b̶b̶l̶e̶ ̶s̶o̶r̶t̶ is optimal (or was it Insertion sort?) on very small lists, so if you need to sort 1 billion lists of 10 elements instead of 1 list of 10 billion elements, it may be a choice :)
      I vaguely remember a cool chart showing optimal algorithm vs list size, can't seem to find it anymore...

    • @xXErr4rXx
      @xXErr4rXx 5 років тому +3

      @@LeiosLabs why is that? i'm pretty sure our teachers did not show us all the sorting algorithms in the first semester. I vaguely remember being asked to sort a list in the lab and using my "own" method to sort it, which is selection sort. that is the most natural sorting algorithm for a person to come up with without any algorithm experience.

    • @kienthanhle6230
      @kienthanhle6230 3 роки тому +1

      @@xXErr4rXx but it's harder to implement, and bubble sort is basically dumb selection sort which uses a lot of variable value assigning

    • @kienthanhle6230
      @kienthanhle6230 3 роки тому

      @@xXErr4rXx but my first sorting algorithms I have figured out is the selection sort, when taking a IT competition for grade 5 students. I haven't been teach about that before, so that's the first one that come to my mind. It's hard to implement for elementary students, I have to even use the auxilarity array :))

  • @Manabender
    @Manabender 5 років тому +21

    What, no love for Bogobogosort?
    Bogobogosort is sort of like a recursive bogosort.
    Step 1: Define s as an integer.
    Step 2: Set s to 2.
    Step 3: Shuffle the first s elements of the list.
    Step 4: Check if the first s elements are sorted. If they are not, return to step 2.
    Step 5: Check if s equals the size of the list. If not, increment s and return to step 3.
    Step 6: Return the now-sorted list.

    • @pinkman_
      @pinkman_ 3 роки тому +1

      What about bogobogobogosort

    • @inquisitorthornside3p494
      @inquisitorthornside3p494 2 роки тому

      what about Bogobogobogobogobogo sort?

    • @UnknownRager96
      @UnknownRager96 Рік тому +1

      what about bogobogobogobogobogobogosort?

    • @TotallyTaliton
      @TotallyTaliton Рік тому

      What about bogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogobogosort?

    • @brightblackhole2442
      @brightblackhole2442 9 місяців тому

      what about sort?

  • @LeiosLabs
    @LeiosLabs  7 років тому +21

    Hey guys, this video ended up taking a little longer than I wanted (it's past midnight here), so I am heading to bed right after uploading. I'll check in the morning and fix anything that went wrong.
    If you found anything in the video confusing, let me know! I had some trouble figuring out the best way to describe worstsort, so the humor might have been lost a little.
    As a side note, there is a small hum in the microphone. This will be removed in future recordings, sorry about the issue with this video!
    Anyway, thanks again for watching. You guys are great! I hope you guys have wonderful New Years celebrations / stay safe. I'll see you in 2017!

  • @cchroma_kee
    @cchroma_kee 3 роки тому +17

    "2016 was a pretty rough year"
    Laughs in 2021

  • @holzvvrm7718
    @holzvvrm7718 2 роки тому +5

    Now let me introduce you to "cosmic ray sort". We just check if the array is sorted already, if not we check again. This continues until the memory has been corrupted so bad through radiation and so on, that our array is now sorted. It's beautiful.

    • @memerboi69.0
      @memerboi69.0 9 місяців тому +1

      miracle sort

    • @exedeath
      @exedeath 8 місяців тому

      This array could be a sorted array but not be a permutation of the original array, so its not valid.
      An example of another array like this is stalin sort.
      1-Start from first number at array
      2-If number at position N is bigger than number at position (N + 1) delete number N and check position N and N +1 again, if not go to step 3
      3-N = N +1 and go back to 2.

  • @himsaragallege4461
    @himsaragallege4461 4 роки тому +17

    Me watching in 2020. While he's frustrated about 2016🤦‍♂️🤦‍♂️

  • @msnreloaded8568
    @msnreloaded8568 7 років тому +5

    thanks for your videos ..it always helps me smile. youve grown a lot since i subscribed to you at 23 subs

    • @LeiosLabs
      @LeiosLabs  7 років тому +2

      Woah, since 23 subs? That was forever ago! You are awesome!

  • @mattgonzalez1756
    @mattgonzalez1756 3 роки тому +6

    If only they knew back in 2016

  • @humanhiveanomaly
    @humanhiveanomaly 3 роки тому +9

    2020 called and wants its sort back

  • @Ryan770
    @Ryan770 Рік тому +2

    2016 was a rough year.
    2020 wants to have a word with you.

  • @RandomDucc-sj8pd
    @RandomDucc-sj8pd 2 роки тому +1

    2020: You have no idea.
    2021: I’m way worse!
    2022: *AMATEURS.*

  • @ico721
    @ico721 2 роки тому +4

    I love this video because it reminds of all the small things that made a year bad

  • @myanimation7459
    @myanimation7459 2 роки тому +1

    Me: sorting algorithms is the worst
    Sorting algorithms: *among us versions of sorting algorithms*

  • @Dave2kool4skool
    @Dave2kool4skool 10 місяців тому

    We need to create "infinisort" where it loads every sorting algorithm running in threads parallel to one another. When bogosort then gets it right on the first try we'll then see who's laughing

  • @oinkymomo
    @oinkymomo 6 років тому

    just saying, what order for the permutations is correct?

  • @fizipcfx
    @fizipcfx 3 роки тому +2

    POV: You are trying to find a comment that is not about 2016 vs 2020

  • @uncannywalnut
    @uncannywalnut Рік тому +1

    My Spotify shuffle was a bogosort.

  • @sophiaduvall9912
    @sophiaduvall9912 4 роки тому +4

    Hey uh
    Sadly 2017 wasn’t the equivalent of worstsort
    As far as we know yet, it’s 2020
    Or it’s Bogobogosort but still absolutely terrifying either way

  • @stalins_comically_large_spoon

    “2016 has been a pretty rough year”
    ha. Ha. Haha.
    We had no idea what was coming.

  • @Qrafter
    @Qrafter 2 роки тому +1

    This isn’t really a sorting algorithm then, because it will never actually sort the list. It’s just a memory eater.

  • @amogus7
    @amogus7 3 роки тому +1

    2016: I am the bad year!
    rand(2000, 2019): No, I am!
    U$#)#5: Amateurs.
    ???
    2020: Amateurs!

  • @gooz1691
    @gooz1691 6 років тому +11

    Why didn't you implement sleepsort

    • @LeiosLabs
      @LeiosLabs  6 років тому +4

      I didn't have infinite time to show all the sorting algorithms

    • @RitaTheCuteFox
      @RitaTheCuteFox 3 роки тому

      Let me guess it just does nothing and waits for the list to be somehow sorted by itself? :D

  • @HarmonicVector
    @HarmonicVector 2 роки тому +1

    Worstsort: "Aw man! I have to figure out which array to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"
    Worstsort: "Aw man! I have to figure out which arrays to test first, but I can't decide!"

  • @mihailazar2487
    @mihailazar2487 3 роки тому +2

    00:11
    2016 has been a rough year
    well that aged well

  • @BarnacleButtock
    @BarnacleButtock 3 роки тому +1

    wow that jntro almost fooled me for thinking it was recorded in 2021

  • @amoghhatkar446
    @amoghhatkar446 3 роки тому +2

    Watching this video in 2020 and 2020 is the...........

  • @VictorTheVictini
    @VictorTheVictini 2 роки тому

    worstsort: who are you?
    Bogo bogo sort: I dont even know

  • @rodrigoqteixeira
    @rodrigoqteixeira 9 місяців тому

    "Bro thinking 2016 was bad".
    2020: "Hello I'm gonna eat this f***ing bat thanks."

  • @cmyk8964
    @cmyk8964 2 роки тому +1

    The problem is that you’d need to stop the recursion somewhere to check the permutation. i.e. Worstsort Degree ∞ is not well-defined. Probably just do it in order once the degree exceeds a specified “worstness” degree.

  • @ejsafara456
    @ejsafara456 2 роки тому +6

    what a very nice vid, i like the narrative you constructed ^^ and 2020 would deffo be equivalent to worst sort XD lets hope they wont make even worse algorithm tho :x

  • @mr-jon
    @mr-jon 2 роки тому

    it took worstsort this long to determine that 2020-2022 were actually worse years

  • @veggiet2009
    @veggiet2009 Рік тому +1

    Does worstsort ever conclude? Even if you let it run for infinity, would it terminate at some point?

    • @shiinondogewalker2809
      @shiinondogewalker2809 Рік тому +2

      yes if you limit the recursive depth, at which point you run another sorting algorithm then it eventually concludes if you ignore memory limitation and such minor issues that pester us mortals

  • @dragoncurveenthusiast
    @dragoncurveenthusiast 6 років тому +3

    So? What was the result?
    Which one was the worst according to the poll?

    • @LeiosLabs
      @LeiosLabs  6 років тому +5

      Most people said Anti-intellectualism, then Brexit, then the American election.

    • @coomservative
      @coomservative 5 років тому

      @@LeiosLabs how is "Anti-intellectualism" an event?

  • @Phos9
    @Phos9 2 роки тому +1

    Objection! Worstsort can’t be considered a sorting algorithm because it never actually sorts anything. Plus, Slowsort is right there as an astonishingly slow algorithm, possibly one of the slowest algorithms (relative to how fast is possible for the same job) without wasting time doing nothing.

  • @copperII_
    @copperII_ 2 роки тому

    You know what is inefficient? Shuffle the array even if it’s sorted

  • @californium-2526
    @californium-2526 2 роки тому

    If 2016 was bubblesort and 2020 was worstsort, 2025 is going to be worse than that.

  • @TotallyTaliton
    @TotallyTaliton Рік тому

    Ultimabogosort:
    Check if the list is sorted 0.00001 times.
    If the list is not sorted: apply all types of bogosort.
    Check now, 0.000001 times.
    Not sorted: apply again, (amount of numbers) times.
    Check now, 0.0000001 times
    Not sorted: apply again, (amount of numbers)^2 times
    Until computer explodes reality breaks to quantum radiation.
    If it is still not sorted, even when reality is broken: Apply this one last time, then give up and put the list in sorted order.

  • @kmp3e
    @kmp3e 3 роки тому +1

    Pov: your watching this in 2021 and laughing that he thought that 2016 was bad

  • @GameCyborgCh
    @GameCyborgCh 4 роки тому +3

    2020 is worstsort

  • @mctomspdo
    @mctomspdo 2 роки тому

    didn't know 2020 was sorted by worstsort

  • @williamhuang8309
    @williamhuang8309 Рік тому

    WorstWorstWorstWorst sort: start counting through all the real numbers. Oh wait, there are infinitely many real numbers. guess it'll never finish then.

  • @hoodiedude4204
    @hoodiedude4204 Рік тому

    how can you sort permutations?

  • @josha254
    @josha254 Рік тому +1

    2021: BOZOSORT

  • @denisday14
    @denisday14 10 місяців тому

    2020-2023: such bad orting algorithm doesn't exist

  • @Hexhammer
    @Hexhammer 3 роки тому

    so wait, what’s the difference between this and bogobogosort?

  • @danolantern6030
    @danolantern6030 Рік тому

    Can we please invent a new worst sort for 2020 please

  • @lukerazer9131
    @lukerazer9131 2 роки тому

    Welcome to 2022

  • @moahammad1mohammad
    @moahammad1mohammad 3 роки тому +1

    Bruh you think 2016 was bad just wait till 2020 is here

  • @KevinSiebert
    @KevinSiebert 5 років тому

    Happy 2019!!!

  • @zaucethesaucebauce527
    @zaucethesaucebauce527 3 роки тому

    I almost thought he was going to say 2020.

  • @maurolionelmipianoyyo11
    @maurolionelmipianoyyo11 2 роки тому

    EVEN WORSE THAN BOGO SORT!?!

  • @Kram1032
    @Kram1032 6 років тому +1

    Does Worstsort actually necessarily halt? It seems to me that, if you get unlucky, it might go on literally forever.

    • @LeiosLabs
      @LeiosLabs  6 років тому +4

      Even if you are lucky, worstsort will go on forever.

    • @Kram1032
      @Kram1032 6 років тому +3

      Ok, that seems pointless then xD
      I mean, sure, that was kind of the point of this, right? To be as bad a sort as possible.
      But I feel like that shouldn't really count. The worst sorting algorithm should still, in principle, halt at some point, even if just probabilistically (as with Bogo Sort)
      If it demonstrably doesn't halt then it isn't actually a solution (how ever bad it may be) to the problem in question, right?

    • @cobaltno51
      @cobaltno51 5 років тому +1

      LeiosOS isnt the definition of an algorithm that it will terminate after a number of finite steps? I dont know if that disqualifies worstsort from being a sorting algorithm.

    • @mlerma54
      @mlerma54 5 років тому +3

      The video is a simplified explanation and omits some details such as how many recursion levels to perform (as a function of the of the size of the input), but the algorithm actually stops (after a humongous number of steps) and yields a sorted list. The technique used is in a way the opposite of "divide and conquer" - we may call it "multiply and be conquered."

    • @cobaltno51
      @cobaltno51 5 років тому

      Miguel Lerma ahh, thank you for the clarification.

  • @youraveragerobloxkid
    @youraveragerobloxkid 2 роки тому

    This is not a sorting algorithm, this is a hyperoperation disguised as a sorting algorithm!

  • @hjag-is-also-ourplebop
    @hjag-is-also-ourplebop 2 роки тому

    The true worst sort is to do nothing.

  • @prodtheontar
    @prodtheontar 6 років тому +7

    3:17 yep

    • @LeiosLabs
      @LeiosLabs  6 років тому +3

      Yeah. This was made a few years ago. I don't know where we are now, but I figure it's around the bogo sort level.

    • @prodtheontar
      @prodtheontar 6 років тому

      LeiosOS quick reply! I'd say bubble sort, bring the world is actually going to peace -for now-

  • @theredsaurian
    @theredsaurian 9 місяців тому

    2:31 one must imagine sisyphus as a sorting algorithm

  • @Arkhalis404
    @Arkhalis404 Рік тому

    Well bogo sort is both the fastest and slowest algorithm or medium. Because it is completely random. It can solve itself in 1 or in 99^42372 it's impossible to tell because again it's random. Though the chance of you getting it correct in 1 goes down the more you add to the sorting list and because usually theres so much it's extremely rare to solve in 1 making it "technically" the slowest but it can be good

  • @ApproachingCriticalSass
    @ApproachingCriticalSass 2 роки тому

    It's not a divide and conquer algorithm, it's a multiply and BE conquered algorithm.

  • @Remousamavi
    @Remousamavi 2 роки тому

    If you're reading this in 2020, now's the time to try Stooge Sort.

  • @hjag-is-also-ourplebop
    @hjag-is-also-ourplebop 2 роки тому

    I have something even worse. Quantum Worstsort.
    I would explain it, but I am unable to provide exact instructions in our current phaneron.

  • @Lemonsausage
    @Lemonsausage 2 роки тому

    can you invent a 2020/2021 sort then?

  • @Jdogrey1
    @Jdogrey1 Рік тому

    2016 was rough? Oh boy...

  • @5omebody
    @5omebody 6 років тому +2

    :| the second iteration isn't worstsort, it's worstworstsort... much like the difference between bogosort and bogobogosort. If worstsort actually worked like this it would never finish, it's already got much worse space complexity than bogosort as it is so I don't think you really have to increase the number of iterations

  • @liamhodgson
    @liamhodgson 3 роки тому +2

    who's here in 2022 after the mud flood disaster?

  • @hughmen
    @hughmen Рік тому

    What was the issue with 2016 exactly?

  • @JohnPaulBuce
    @JohnPaulBuce Рік тому

    recursion sort

  • @starstudio8402
    @starstudio8402 3 роки тому

    No no no the worst sorting algorithm is Bogobogosort

  • @KokomiTeruhashi
    @KokomiTeruhashi 6 років тому +7

    Oh, hunny. I can guarantee that 2017 is worse. Let's all agree that 2015 was the peak of humanity.

    • @LeiosLabs
      @LeiosLabs  6 років тому +1

      This video was made a year ago, when the internet was buzzing about 2016 being the worst year ever. We'll see what they say about 2017 in a few months.

    • @willway1234
      @willway1234 5 років тому

      Well?

    • @ThePharphis
      @ThePharphis 5 років тому +1

      both years seemed fine to me

    • @abstractvector1592
      @abstractvector1592 5 років тому

      willway1234 we fukked

    • @starlite5154
      @starlite5154 5 років тому

      2019 in Europe will be bad, really bad.

  •  2 роки тому

    *2022 has entered the chat*

  • @artman40
    @artman40 6 років тому +2

    So not only is this sort very inefficient, does it also use a lot of memory and is unstable?

    • @LeiosLabs
      @LeiosLabs  6 років тому +3

      yup. Its impossible.

  • @bagelnine9
    @bagelnine9 Рік тому

    I don't remember 2016.

  • @karstenmeyer1729
    @karstenmeyer1729 Рік тому

    Bogo Sort is no sort algorythm (in my opinion).
    Stooge Sort is worse than Bubble Sort!

  • @jaypaint4855
    @jaypaint4855 2 роки тому

    I read the title in a British accent for some reason

  • @menacingthinker4322
    @menacingthinker4322 3 роки тому +1

    Oh cool a new video (cools at release date) *oh no*

    • @LeiosLabs
      @LeiosLabs  3 роки тому

      I am really trying to get a new one out today! It might be tomorrow, but soon (tm)...

  • @thefriendyousee4193
    @thefriendyousee4193 2 роки тому

    This doesn’t count as a sorting algorithm because it will never be sorted if you keep using worstsort. You have to change to a real sorting algorithm eventually.

  • @notanenglishperson9865
    @notanenglishperson9865 2 роки тому

    2016 was a great year

  • @iCore7Gaming
    @iCore7Gaming 3 роки тому +1

    2016 was bad? i thought it was a good year.

  • @blacktainfalcon7097
    @blacktainfalcon7097 2 роки тому

    2020 was WorstSort

  • @kk2862
    @kk2862 10 місяців тому

    try the bogobogosort

  • @lennytheburger
    @lennytheburger 2 роки тому

    shouldve used bogo sort

  • @Mrcake0103
    @Mrcake0103 3 роки тому

    Nah man, 2017 was fucking GREAT.

  • @AnatoArchives
    @AnatoArchives 5 років тому +2

    Reminds me of:
    rand() % n;

  • @charlesrosenbauer3135
    @charlesrosenbauer3135 6 років тому

    Miracle sort?

    • @LeiosLabs
      @LeiosLabs  6 років тому +1

      Oh man, I love that one!

    • @AnatoArchives
      @AnatoArchives 5 років тому

      *Grins for so long then unexpected laughs

  • @memerboi69.0
    @memerboi69.0 9 місяців тому

    O(please god i beg for mercy)

  • @bennywang5752
    @bennywang5752 3 роки тому

    Don't mind, just another comment from 2020/2021...

  • @jonathansherwood872
    @jonathansherwood872 2 роки тому

    2016 was a bad year (lol) too bad no one could predict a World War In 2021, technically summer/fall of 2023 but we will get there when we get there

  • @eksortso
    @eksortso Рік тому

    This concept, not to mention this algorithm, is objectively bad. All similar uses of this line of reasoning for algorithms that actually do perform sorting rely on induction to prove their reliability.
    Here is how mathematical induction works. You first prove that it works for a list of 1 or 2 items, then use those facts to prove that you can use it to sort n items by breaking it up into smaller lists which can be sorted reliably. That way, you can sort any finite list of items.
    1 item on its own is sorted, trivially. But 2 items infinitely beg the question. You have two permutations of 2, the right way and the wrong way. Which out of those two is right?
    You want to sort permutations how, now? What counts as a proper sort for permissions? I'll answer this question that you didn't ask: at the bare minimum, you sort it so the right permutation comes first, then pick the first one. But the algorithm stalls on 2 items. You can't use it to sort 2 items, because you haven't even proved that that would work, much less than for 6 items. No induction, no proof.
    For Bubblesort, you know it works for 1 or 2 items, then 3 works because the largest of 3 gets swapped to the end, leaving an array of 2 that you know that you can sort. The rest proceeds from there.
    You haven't even done that for "Worstsort," which we don't even have a clear definition for. So you can't use it to sort more than a single item. Nothing has been proven. Just getting items in the right place is an afterthought to this whole line of thinking.
    Even a lesser Bogosort can be proved to work eventually if it at least cycles through all permutations eventually. If your first element after shuffling is less than all other elements, you have a smaller list, which lesser Bogosort can sort.
    Worstsort is incomplete and undefined. I wouldn't even use it to sort the worst things that happened after Bubblesort was invented.

  • @RD2564
    @RD2564 3 роки тому +2

    You are a REALLY smart kid but you are only a kid so let me give you a tip from a more experienced guy, 2016 was no worse than any other year.

    • @LeiosLabs
      @LeiosLabs  3 роки тому

      I was 24 when making this video, and it is about sorting algorithms. The meme at the time was that 2016 was the worst year, but I correctly predicted it would get worse. (Last line: 2016 is bubblesort. 2020 is probably worst sort... but even then, it could get worse.)

  • @2LZA3EEM
    @2LZA3EEM 5 років тому

    And guess whaah ??
    Worst sort 😂😂

  • @warddwads7469
    @warddwads7469 3 місяці тому

    Its been 7yr :/