Bubble Sort

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 39

  • @wolfbd5950
    @wolfbd5950 4 года назад +79

    While the compilations are fun, these slower one-offs really help to see exactly what the sort is doing.

    • @w0rthy_
      @w0rthy_  4 года назад +20

      That's the idea!

  • @scopes1812
    @scopes1812 4 года назад +17

    It takes the highest value, and sorts it based on the previous value counted, like a air bubble floating to the surface taking more air bubbles with it

    • @zezus001
      @zezus001 3 года назад

      Uh, I think it just loops through the array and swaps that item with i + 1 until i + 1 is larger than the current item, and if i + 1 is larger than the current item, use that item instead. Repeat until you reach the end of the array.

  • @wigwagstudios2474
    @wigwagstudios2474 Год назад +3

    i love this audio algorithm way better than the ugly organ-sounding ones, this one is actually "pure" in that you can distinguish pitches from one another instead of it just being a blur of noise + actual square waves sound cool and old school

  • @Hennal_
    @Hennal_ 4 года назад +27

    Sorting algorithms are the pinnacle of content on RUclips

    • @sankang9425
      @sankang9425 4 года назад +3

      RUclips algorithm likes itself..

  • @TheGargantuanLeviathan
    @TheGargantuanLeviathan 4 года назад +19

    0:00 that actually sounded quite cool.

    • @mastervelyk2507
      @mastervelyk2507 4 года назад

      Trashy Animation he’s trying to say that the video sounded and told people to quit cool.

    • @o.rbi.t
      @o.rbi.t 4 года назад

      x Cool.exe
      Are you sure you want to quit Cool.exe?
      *Yes* No

    • @DominickDoggo
      @DominickDoggo 3 года назад +2

      Do you mean quite

  • @AndreyDanilin78
    @AndreyDanilin78 4 года назад +2

    Very Interest: Russian Sorting Halves Danilin

  • @zhenya0k808
    @zhenya0k808 4 года назад +4

    The most sorted channel i've ever seen

  • @ellestuff6318
    @ellestuff6318 4 года назад +4

    This sounds like a ringtone

  • @Ambipie
    @Ambipie 2 года назад

    a little bubble is carrying the highest value to the end, letting go of last highest.
    Its a librarian with no reference sheet, only a Dewey decimal system.

  • @lmao_9782
    @lmao_9782 4 года назад +2

    Welcome fellas to this new episode of what the quarentine does to my youtube recomendation

  • @abdisaniini
    @abdisaniini 4 года назад +1

    These videos are great, keep up the good work!

  • @J1nsie
    @J1nsie 4 года назад +1

    Why is this oddly satisfying to me

  • @cvni81
    @cvni81 4 года назад +1

    Now that's what i call torture!

  • @santaclauds6331
    @santaclauds6331 4 года назад +3

    so is this an algorithm where it looks through, and as it goes through it puts one thing into its correct place, then goes through again and puts another thing in its correct place?

    • @danielpignuola478
      @danielpignuola478 4 года назад +2

      Stephen Mireles Bubble Sort compares each pair of consecutive data points and sorts them lowest to highest. As a result, the highest number out of the data set always “wins” each comparison and is moved to the top, much like a bubble rising in a body of water.

  • @jeamsis
    @jeamsis 4 года назад +1

    Which sorting algorithm is your favorite?

  • @SumRandomDewd
    @SumRandomDewd Год назад

    IT IS SIMILAR TO SELECTION SORT
    SORTS IN DECRESCENT ORDER

  • @Musicombo
    @Musicombo 4 года назад +2

    Oh!! You changed the shuffle?

    • @w0rthy_
      @w0rthy_  4 года назад +2

      Yep, your last comment made me look at it again, as I had just copied over the one I wrote 8 years ago. This should be a more traditional approach.

  • @zai-tm
    @zai-tm 4 года назад +2

    i liek bubbles yay!!!!

  • @currentuser5095
    @currentuser5095 3 года назад

    Haha i remember trying to write something of the sort (pun not intended) in my IT class and wanting to die

  • @dilee3467
    @dilee3467 4 года назад

    Yay!

  • @ras662
    @ras662 4 года назад

    Bubblesort!

  • @popisdeadisagoodsong9997
    @popisdeadisagoodsong9997 4 года назад

    Bubbles

    • @popisdeadisagoodsong9997
      @popisdeadisagoodsong9997 4 года назад

      ☺︎︎

    • @nazmabegum2780
      @nazmabegum2780 3 года назад

      @@popisdeadisagoodsong9997 how

    • @nazmabegum2780
      @nazmabegum2780 3 года назад

      ⬆️↗️➡️↘️⬇️↙️⬅️↖️↕️↔️↩↪⤴️⤵️🔃🔄🔀🔁🔂▶️⏩⏭⏯◀️⏪⏮🔼⏫🔽⏬⏸⏹⏺⏏🎦♂️🔠🔡🔢🔣🔤🆑️🆒️🆓️🆔️🆕️🆖️🆗️🅿️🆙️🆚️🈁️🈂️💠

    • @popisdeadisagoodsong9997
      @popisdeadisagoodsong9997 3 года назад

      Wtf when did I write this
      Also hello everyone in this thread

  • @ayamirisukahyejunghyuneuneun
    @ayamirisukahyejunghyuneuneun 4 года назад +1

    How do I run the source code