Insertion Sort vs Bubble Sort + Some analysis

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2017
  • A visual demonstration of insertion sort, competition with bubble sort, and performance analysis including these two and quick sort.
    See more notes and a more accurate analysis of the algorithms performance:
    www.udiprod.com/insertion-sort/
    Previous matches:
    Heaps sort vs merge sort
    • Heaps and Heap Sort
    Merge sort vs quick sort
    • Merge Sort vs Quick Sort
    Quick sort vs bubble sort
    • Visualization of Quick...

ความคิดเห็น • 311

  • @i_teleported_bread7404
    @i_teleported_bread7404 3 ปีที่แล้ว +610

    Leave Bubble Sort alone, it's trying it's hardest.

    • @no-one-1
      @no-one-1 2 ปีที่แล้ว +50

      At least it has a brain and eyes unlike Bogosort

    • @feritperliare2890
      @feritperliare2890 2 ปีที่แล้ว +29

      bogosort has eyes to check if he succeeded but it just basically throws the marbles to the ground than vaguely decides their order and than checks if it succeeded

    • @Pihsrosnec
      @Pihsrosnec ปีที่แล้ว +5

      @@no-one-1 hey, bogosort has a very karge brain. By that I mean it uses more to do the same thing because randomly sorting something is actually kinda resources intensive

    • @lovermillion
      @lovermillion ปีที่แล้ว +3

      Bubble Sort is still useful! As long as you only care about the largest/smallest element in a set, that is

    • @ru2979
      @ru2979 ปีที่แล้ว

      😂😂

  • @SuperfieldCrUn
    @SuperfieldCrUn 5 ปีที่แล้ว +534

    HOLY SHIT did you just clearly explain the concept of N operations and how they grow as the input grows using graphing based on a clear visual metaphor?!?

    • @huyphamuc6372
      @huyphamuc6372 4 ปีที่แล้ว +30

      Wait... that's illegal

    • @nickcarter4006
      @nickcarter4006 3 ปีที่แล้ว +3

      “You crazy son of a bitch, you actually did it!”

    • @pixelspixels2727
      @pixelspixels2727 2 ปีที่แล้ว +5

      waytoodank

  • @udiprod
    @udiprod  6 ปีที่แล้ว +630

    Thanks everyone again! I wish I could upload more frequently. There are already some new ideas brewing. I hope I'll get to working on it soon. But yes, it will take some time again :)

    • @coolmdj111
      @coolmdj111 6 ปีที่แล้ว +24

      Hi udiprod... Let me just say, I like your explanations and how simple you make things to understand. I'm curious as to why you're not moving towards expanding your production and making your videos more frequent. _Patreon_ could help a lot and I for one would really look forward to more stuff from you.

    • @eggpling
      @eggpling 6 ปีที่แล้ว +7

      Love the content, wish it could happen more often! But time and life and whatnot. Though... I want an explanation on how Radix Sort works... because it doesn't do comparisons (right?).

    • @tobivan3190
      @tobivan3190 6 ปีที่แล้ว +2

      i want to see radix sort, but i don't know if it would fit this format

    • @ayeariola
      @ayeariola 6 ปีที่แล้ว +2

      udiprod how about radix sort and bucket sort and cocktail shaker sort?

    • @taureon_
      @taureon_ 5 ปีที่แล้ว +5

      COCKTAIL SHAKER SORT

  • @TheGeneralThings
    @TheGeneralThings 6 ปีที่แล้ว +772

    The analysis at the end...
    You just made one of the best videos on sorting on TH-cam.
    Please make more analyses when you have the time. We'll be patient ❤️

    • @meenaljain3828
      @meenaljain3828 3 ปีที่แล้ว +3

      Still there are 31 fools who unliked the video

    • @stupidfuckingrat
      @stupidfuckingrat 2 ปีที่แล้ว +1

      @@meenaljain3828 Ahem, 36 fools.

    • @maybej
      @maybej ปีที่แล้ว

      @@meenaljain3828 disliked*

    • @clown6930
      @clown6930 ปีที่แล้ว +1

      @@meenaljain3828unliked????? 😭😭💀

    • @Manny_OG
      @Manny_OG ปีที่แล้ว

      honestly insertion sort, by the looks of is, is just a backwards bubble sort. I still have no clue, since I don't know EXACTLY how bubble sorts work yet. can someone please link the video?

  • @ditrixgenesis781
    @ditrixgenesis781 5 ปีที่แล้ว +329

    I remember in my CS class being told that nlog (n) is the most efficient path for computers to take. Now I know why

    • @zeronothinghere9334
      @zeronothinghere9334 3 ปีที่แล้ว +46

      Sorry to butt in. But: You know why nlog(n) is better than n^2, but you don't know why nlog(n) is the most efficient. I could claim that there is an algorithm that can do it in n time, and you would not be able to prove me wrong.
      __
      In the model that is used in the video (compare comparisions done of whole objects), nlog(n) indeed is the shortest possible time (you can prove that by considering all the possible permutations, and mapping them on a decision tree). However, if you consider a different model, the RAM model, you are able to sort integers in near linear time (in just n). This sorting algorithm is called Radix sort.
      __
      Please don't take offense to this, I just want to avoid you from possibly misunderstanding what you think you know.

    • @TheShinySnivy
      @TheShinySnivy 3 ปีที่แล้ว +8

      But O(n) is the best algorithm?
      An average of O(n) isn’t found in sorts though, if I recall correctly.

    • @ZachGoethel
      @ZachGoethel 3 ปีที่แล้ว +20

      @@TheShinySnivy Radix sort is non-comparative but achieves linear runtime complexity. It can do so because it has access to the digits of the values being sorted (rather than only a less-than, greater-than, or equal-to). It's essentially a count sort, but performed multiple times to count sort by each digit (base-10) or other radix (like base-256).

    • @Ascyt
      @Ascyt 3 ปีที่แล้ว +1

      stop u make my brain hurt

    • @romannasuti25
      @romannasuti25 3 ปีที่แล้ว +8

      O(n log(n)) is the best you can do given comparison sorts, where the sorting algorithm only has information on greater, less than, or equal to.
      Given most data has some sort of absolute order (not only larger than, but by exactly how much), you can achieve O(n) by using a counting sort.
      Say you're sorting an array of thousands of elements, but they're all numbers from 0 to 9. The easiest way to sort them is actually to just count how many 0's, 1's, and so on until you've gotten to 9, then put out as many 0's as is counted, then 1's, and so on.
      Radix sort is just a way to make counting sorts space-efficient: Instead of scaling linearly with the number of possible values (256 for an 8 bit int or char, 65536 for a 16 bit int, and over 4 billion for a 32 bit int), it scales logarithmic-ally which is much better. Even better, radixes require almost no cross-communication (after all, no comparisons) with a very simple way to combine the results of multiple radix sorts (just add all the counts together), making them very easy to scale across potentially thousands of computers (perfect if you were trying to sort trillions of items across an enormous Cassandra or HBase cluster).
      Basically, if you were doing a 32-bit integer, instead of keeping over 4 billion counts, you keep 4 sets of 256 counts, one for each 8 bits. It's cumbersome to explain, but the core of it is a piecewiise counting sort using prefix sums to make it work.

  • @kauhanen44
    @kauhanen44 6 ปีที่แล้ว +318

    This is the best video on sorting I've seen on this channel. The part where you analyzed the speeds of the algorithms was very clear and concise.

  • @silviamayo2993
    @silviamayo2993 6 ปีที่แล้ว +32

    I love math and sorting and the intellectual part of this...but I also just love watching the little robots pick up those balls and bring them up to analyze them two at a time...all the little competitions are so cute, while at the same time being incredibly educational.

  • @halfnwhole751
    @halfnwhole751 5 ปีที่แล้ว +315

    Can you make a vid about Gravity sort?
    I kinda wanna see a robot doing magic tricks :)
    Also please make a video about Langtons Ant? :D
    Also Counting Sort plz😀

    • @SonicPman
      @SonicPman 5 ปีที่แล้ว +19

      Then I guess we just represent the objects with numbers then.

    • @SendarSlayer
      @SendarSlayer 4 ปีที่แล้ว +32

      @@metachirality Not really sorting objects here, sorting by darkness. That's a number

    • @CyberQuickYT
      @CyberQuickYT 4 ปีที่แล้ว +3

      Also drinkshaker would be cool

    • @KnakuanaRka
      @KnakuanaRka 4 ปีที่แล้ว +2

      The Tutorials You mean cocktail shaker? I’m pretty sure that’s basically the same as bubble sort, but it scans back and forth across the list of numbers instead of going in the same direction each time.

    • @h3nry_s71ckm1n
      @h3nry_s71ckm1n 4 ปีที่แล้ว +1

      @@KnakuanaRka Cocktail Shaker Sort is just faster than Bubble Sort

  • @rajmadheshia8791
    @rajmadheshia8791 6 ปีที่แล้ว +104

    Analysis part in this video is great....
    please add this part in every future videos.

  • @DiThi
    @DiThi 6 ปีที่แล้ว +15

    This explains nicely some reasons behind Timsort, which uses insertion sort for tiny parts and merge sort for bigger parts.

    • @groszak1
      @groszak1 5 ปีที่แล้ว +3

      also when merging it can recognize large parts that are in one list but not the other and be adaptive to it

  • @epsilonthedragon1249
    @epsilonthedragon1249 6 ปีที่แล้ว +56

    A new udiprod video on sorting! I love these videos.

  • @davidmendoza4521
    @davidmendoza4521 3 ปีที่แล้ว +9

    I love how all the comments are so supportive and it makes the content even more wholesome

  • @o-k9267
    @o-k9267 5 ปีที่แล้ว +1

    Just got your channel in recommended and I must say one of the most comprehensible visualizations I've ever seen! I noticed you've not uploaded new videos for a long time, I hope this isn't the end. Best wishes!

  • @jl-fy3zj
    @jl-fy3zj 4 ปีที่แล้ว +33

    "You want Radix LSD?"
    "I want Base Ten!"
    "YOU CAN'T HANDLE BASE TEN!!!"

    • @Kumquat_Lord
      @Kumquat_Lord 4 ปีที่แล้ว +2

      Base 10: AAAAAAAAAAAAAAAAAAAAAAAHHHHHHHH

    • @jl-fy3zj
      @jl-fy3zj 4 ปีที่แล้ว +1

      All I want is a few good ten

    • @4te-9
      @4te-9 4 ปีที่แล้ว +2

      Base 16: let me introduce myself

    • @segaking5846
      @segaking5846 4 ปีที่แล้ว

      In-Place base 10: Ahem.

  • @Flamehazard
    @Flamehazard 5 ปีที่แล้ว +14

    These videos are so awesome, the sorting mechanics are so interesting, plus, the low poly looking models, along with the lesser texture quality really gives it a charm.

  • @nullivory
    @nullivory 6 ปีที่แล้ว +45

    following channels you think are dead pays off

  • @katlicks
    @katlicks 3 ปีที่แล้ว +7

    These are absolutely amazing. I've been watching sorting algorithms for a while now but never really grasped how someone could devise the algorithms, but with the visualization, it's far more simple than what I was making it out to be.

  • @noahkilgus9860
    @noahkilgus9860 3 ปีที่แล้ว +1

    These sorting videos are by far my favorite videos I've ever seen

  • @alexanderthomas-owen613
    @alexanderthomas-owen613 6 ปีที่แล้ว +2

    I've learnt more from these little sorting videos than I did in about three lessons of Computer Science. Good work!

  • @ydz8342
    @ydz8342 4 ปีที่แล้ว +4

    I just want to thank you for making the best sorting algorithm videos I have ever seen!
    Also, the analysis part is brilliant!

  • @The-pf4zy
    @The-pf4zy 5 ปีที่แล้ว +10

    I can't wait for Radix Sort (LSD)! That sort is my favorite.

  • @nmmm2000
    @nmmm2000 ปีที่แล้ว +1

    Thanks for including the "map" of comparisons. Watched the video several times during the years and every time finding something useful.

  • @juice8960
    @juice8960 6 ปีที่แล้ว +3

    I love how these videos could help do every day lives especially for sorting

  • @MrLuigiBean1
    @MrLuigiBean1 2 ปีที่แล้ว +1

    That graph visualization at the end was ABSOLUTE GENIUS!

  • @givlupi2686
    @givlupi2686 4 ปีที่แล้ว +6

    Imagine this with Bogosort. Insertion sort completes sorting the ten balls after just 30 comparisons, and then starts waiting for Bogosort to get done. Eventually, Insertion starts reading the newspaper, and checks his watch to see that it has been 4 hours since Bogo began. Insertion gets bored and leaves, but comes back the next day, to find that Bogo is still no closer to sorting the balls. 50 years later, Insertion comes back with a bushy white beard, with his grand kids carrying 5 trophies that he won in sorting competitions while he was gone, Bogo is still no closer, even after 50M more comparisons. In 2163, Insertion's great-great-grandson comes back to find Bogo has finally finished sorting.

    • @legendgames128
      @legendgames128 ปีที่แล้ว

      well 50 million is a lot for an average of 3.6 million per solve on average.

  • @edems131
    @edems131 3 หลายเดือนก่อน +1

    BEST video on algorithms i found yet, LOVE IT

  • @rohangh3577
    @rohangh3577 2 ปีที่แล้ว +1

    I think this video is among the best videos on the internet, and it also shows that it's not only animations that make the video best, it is the mind behind it.. orz

  • @dhanarsantika
    @dhanarsantika 6 ปีที่แล้ว +58

    Finally udiprod make another video :D

  • @SimpleLessonsTV
    @SimpleLessonsTV 5 ปีที่แล้ว +1

    wonderfull video. explained the log(n) i was always wondering about in terms of performance and scalability of a method.

  • @neyraxstuff-inactive7624
    @neyraxstuff-inactive7624 6 ปีที่แล้ว +1

    Yes I was waiting for this. I really liked the previous parts so I want to see one about insertion. Thank you :)

  • @FluffyPrincess888
    @FluffyPrincess888 ปีที่แล้ว +1

    You sound like a combination of a caring mother and a patient math teacher. I like it. Especially because of how I'd want a teacher like this. I have ADHD.

  • @hil449
    @hil449 2 ปีที่แล้ว

    jesus christ this is amazing! Every cs student SHOULD watch this video series, its so awesome!

  • @manoking9619
    @manoking9619 7 หลายเดือนก่อน +1

    This is awesome! These videos are going to carry me throug my algorithms course!

  • @thegardenofeatin5965
    @thegardenofeatin5965 3 ปีที่แล้ว +4

    This series is the best content about computing I've found all year.
    I'm curious how these are made. Like, were they hand-animated in something like Blender or are they rigged to a simulation that's actually running the algorithms?

    • @SchadeTree
      @SchadeTree ปีที่แล้ว +1

      They said in another video that they use Autodesk Maya for their animations. Dunno if they do it by hand or rig it to the actual algorithms, but given the 40 minute bogo sort video I'd guess the latter

  • @tuftman6092
    @tuftman6092 6 ปีที่แล้ว +2

    I wish i could give two thumbs up, the explanation of the sorting time was superb

  • @athinaej
    @athinaej 2 ปีที่แล้ว +2

    this was LIFE CHANGING. NEVER have my eyes witnessed such beauty before this glorius day. thank you. for everything. 😘😘

    • @athinaej
      @athinaej 2 ปีที่แล้ว +1

      moving.

  • @realcygnus
    @realcygnus 6 ปีที่แล้ว +1

    great content as per usual ........more frequent posts & this would clearly be among the "top' channels of its kind.

  • @jpbling8344
    @jpbling8344 6 ปีที่แล้ว +4

    This is so relaxing and fun!

  • @patcoston
    @patcoston 5 ปีที่แล้ว +2

    There are many variants to Bubblesort. This video shows one of the most inefficient variants. You can improve Bubblesort performance by sorting in both directions, and keep track of where the last swap occurred to avoid iterating through parts of the array that you know are sorted. You can even sort in both directions within the same loop.

    • @MinecraftLD10
      @MinecraftLD10 4 ปีที่แล้ว

      Patrick Coston The robots might need some upgrades for that.

    • @typhoonzebra
      @typhoonzebra 11 หลายเดือนก่อน

      I think one of the rules of the scenario is that the robots cannot remember any swap they've made. The only thing they can remember is their sorting methodology.

  • @PointToNull
    @PointToNull 4 ปีที่แล้ว +1

    These videos are amazing. Great content!

  • @_danzo7
    @_danzo7 5 ปีที่แล้ว +1

    Wow guys u put a lot of effort on ur vids i really appreciate that

  • @mfaraday4044
    @mfaraday4044 4 ปีที่แล้ว +1

    Best channel for sorting algo

  • @thejbo777
    @thejbo777 6 ปีที่แล้ว +1

    Yay a video!
    See you next year!!!

  • @30IYouTube
    @30IYouTube 2 ปีที่แล้ว +2

    The sort that you explained wasn't actually Insertion Sort, but rather Optimized Gnome Sort.
    Optimized Gnome Sort *is* a variation of Insertion Sort, but they are different. What most people refer to as Insertion Sort is actually Optimized Gnome Sort, so it is fine.
    Optimized Gnome Sort works by swapping with the previous element until the value is larger. This requires double the number of movements in the list as Insertion since it does it by copying the value to be inserted into a buffer, then basically copy and pasting each value to the next one until the value is less than the value stored in the buffer.
    In pseudocode, this is is what Insertion looks like:
    *procedure* insertion(A)
    *int* i = 0
    *while* i < length(A)
    *int* x = A[i]
    *int* j = i - 1
    *while* j x
    A[j+1] = A[j]
    j = j - 1
    *end while*
    A[j+1] = x
    i = i + 1
    *end while*
    *end procedure*

    • @udiprod
      @udiprod  2 ปีที่แล้ว

      Thanks for pointing it out. I wasn't aware of this distinction. But actually the video is closer to Insertion sort the way you described it than to optimized gnomoe sort. The robot is holding A[i] in its hand the whole time it searches backward for the right position for it. So you can think of the robot's hand as 'x' in your pseudo-code.

    • @30IYouTube
      @30IYouTube 2 ปีที่แล้ว

      @@udiprod Yeah, but the swapping only happens in Optimized Gnome Sort.

  • @sylvercritter
    @sylvercritter 6 ปีที่แล้ว +26

    The brawl finally continues...

  • @sarputhirith9570
    @sarputhirith9570 5 ปีที่แล้ว +1

    Thank for turning lesson into cartoon for representing the work. The best explanation.

  • @ronakpatil6081
    @ronakpatil6081 3 ปีที่แล้ว

    these videos made the boring sorting techniques interesting hats off.

  • @vanhsati
    @vanhsati 5 ปีที่แล้ว +1

    Legend says, each year, udiprod will have a day off from work. In this day, he ... :))

  • @iwersonsch5131
    @iwersonsch5131 3 ปีที่แล้ว +1

    If comparisons are costly but swaps are not (or moving multiple items at a time is barely more costly than moving a single item), you can do binary insertion sort to use about O(n*log(n)) comparisons but about O(n^2) swaps. Unlike Quicksort, this doesn't rely on luck since the pivots we are choosing are already in a sorted list.

  • @redjohn1308
    @redjohn1308 5 ปีที่แล้ว +3

    Can you make a video about selection sort ? The videos are amazing bro .

  • @Name-ul8es
    @Name-ul8es 2 ปีที่แล้ว

    I was subbed to this channel years ago because the bots looked goofy and the videos were interesting but now I have grown and I am here again to learn and pass collage exams.

  • @coruscaregames
    @coruscaregames ปีที่แล้ว +5

    Can you demonstrate a competition "rigged" in the underdog's favour? ie. Bubble sort vs merge sort on an almost sorted list, heap sort vs quick sort but you get half the balls now and half the balls when you're done with that, etc

  • @Filaxsan
    @Filaxsan 4 ปีที่แล้ว +1

    Loved it! Great job!

  • @wesbarnes1682
    @wesbarnes1682 6 ปีที่แล้ว +1

    Glad to have a new video

  • @yoshidude64595
    @yoshidude64595 3 ปีที่แล้ว +1

    This would be an excellent introduction to big O notation

  • @ciclop3
    @ciclop3 5 ปีที่แล้ว +1

    I LOVE this videos, thank you!

  • @want-diversecontent3887
    @want-diversecontent3887 6 ปีที่แล้ว +14

    Places:
    1. Merge Sort (25, 23)
    2. Heap Sort (39)
    3. Quick Sort (21, 33)
    4. Insertion Sort (30)
    5. Bubble Sort (44, 42)

    • @Junieper
      @Junieper 4 ปีที่แล้ว +4

      Nah, QuickSort very slightly outperforms both heap and mergesort. The 33 was due to QS picking bad pivots (on purpose)

  • @yannecks7690
    @yannecks7690 6 ปีที่แล้ว +3

    I love your videos so much

  • @alexander51413
    @alexander51413 6 ปีที่แล้ว +26

    Maybe radix sort next time? Great video btw

    • @YaboiMuggy
      @YaboiMuggy 5 ปีที่แล้ว +4

      oh the sorting videos with sounds with radix base 10 get so LOUD

    • @FplusETVChannel
      @FplusETVChannel 5 ปีที่แล้ว +1

      Radix sort is for sorting numbers not colors

    • @bojunchoi6354
      @bojunchoi6354 5 ปีที่แล้ว +5

      FplusE TV Channel you can easily number the colors

    • @326inminecraft
      @326inminecraft 4 ปีที่แล้ว

      Aaron Luedemann no, it would be something like 190,280,245,346,766,455
      For radix to works, single digit won’t do

    • @toddkes5890
      @toddkes5890 4 ปีที่แล้ว +1

      @@326inminecraft Radix could work if you translate the colors to binary values. So the darkest color would be 0000, then 0001, then 0010, aso. The lightest color would be treated as 9, or 1001. The question then is using MSD or LSD (MSD would be better, since it would show how Radix uses divide and conquer)

  • @elraviv
    @elraviv 6 ปีที่แล้ว +2

    Loved it!
    however bubble sort is sensitive to the sort direction,
    imagine a case where the largest element is first, and you sort it in the bottom up direction. then you need'll need *N passes* until the top elements will reach the bottom - on the other hand if you sort it from top to bottom you'll need only *1 pass* to sort it.
    this is why if you do use bubble sort, you run it iteratively in both directions.

    • @hyrekandragon2665
      @hyrekandragon2665 5 ปีที่แล้ว +3

      That's a different sort called cocktail shaker sort also known as bidirectional bubble sort

    • @musicexams5258
      @musicexams5258 ปีที่แล้ว +2

      Bubble sort ran in both ways has its own name
      It is called "cocktail shaker sort"

  • @sarathm3635
    @sarathm3635 4 ปีที่แล้ว +1

    finally a video worth my time

  • @parjohansson3118
    @parjohansson3118 6 ปีที่แล้ว +2

    You're alive! You're alive!

  • @kashishdhawan9966
    @kashishdhawan9966 5 ปีที่แล้ว +1

    Lovely demonstration

  • @sandmann6851
    @sandmann6851 6 ปีที่แล้ว +2

    Well done! big thumbs up

  • @puneetchhabra2578
    @puneetchhabra2578 10 หลายเดือนก่อน +1

    what an awesome explanation

  • @panulli4
    @panulli4 6 ปีที่แล้ว +3

    First!!!!
    One of the best channels on TH-cam!!!!

  • @petersmythe6462
    @petersmythe6462 3 ปีที่แล้ว +1

    You can also dramatically reduce the number of comparisons insertion sort does by using binary search to figure out where the new item belongs. At least if you're dealing with an array not an LLL. This ends up with O(NlogN) comparisons and easily beats superior sorting algorithms on comparison count.
    however, it does not end up with O(NlogN) total moves but O(N^2). meaning it's still slow.
    One potential optimization would be to move the sorted data into a different data structure. LLLs come to mind since reordering an LLL is free but binary searching an LLL without indexing is an O(N) operation which is too slow.
    One possible solution then is to perform the search on a binary tree, where insertion is not such an inherently costly operation. Of course turns our insertion sort into BST sort but still, now it actually has NlogN performance.

  • @abolfazl_rodsarabi2294
    @abolfazl_rodsarabi2294 2 ปีที่แล้ว +1

    Thank you for your effort...

  • @thanyou
    @thanyou 5 ปีที่แล้ว +1

    The end of an era. Please come back :

    • @udiprod
      @udiprod  5 ปีที่แล้ว +2

      Thanks. I'm working on a new video. I hope to release it soon.

    • @thanyou
      @thanyou 5 ปีที่แล้ว

      @@udiprod That's awesome. Can't wait!

  • @Mintice
    @Mintice 6 ปีที่แล้ว +1

    Thanks for the new vid!

  • @gysoran
    @gysoran 3 ปีที่แล้ว +1

    hey, this is super helpful, thanks!

  • @arlcun
    @arlcun ปีที่แล้ว

    This is awesome!
    Recently youtube added the ability to change audio track to another language, I would love to help for dubbing in french

  • @YouB3anz
    @YouB3anz 3 ปีที่แล้ว

    Excellent little vid

  • @Ken-S
    @Ken-S 3 ปีที่แล้ว

    This video should be in every programming 101 education.

  • @FraPiz
    @FraPiz 2 ปีที่แล้ว +1

    Great video!

  • @kartikkalia01
    @kartikkalia01 4 ปีที่แล้ว +1

    This is perfection.

  • @0Arman0
    @0Arman0 3 ปีที่แล้ว

    That animation at the end was so legit

  • @FlumenSanctiViti
    @FlumenSanctiViti 4 ปีที่แล้ว +1

    How about a video on Timsort, most likely quickest sorting algorithm of them all?

  • @andrewsalmon100
    @andrewsalmon100 4 ปีที่แล้ว

    Fantastic. Thanks. So this is about AI and computer efficiency. And can it be applied to commercial processes?

  • @kartikiyer3067
    @kartikiyer3067 4 ปีที่แล้ว +1

    Could you do a video on BOGO sort vs some other sorting algorithm like gravity or insertion sort?

  • @leejeff7869
    @leejeff7869 6 ปีที่แล้ว

    it is a really great video to understand algorithm

  • @rollinontheboard
    @rollinontheboard ปีที่แล้ว +1

    Far better than anything Wikipedia would offer.

  • @GaneshNayak
    @GaneshNayak 5 ปีที่แล้ว +1

    Super analysis

  • @johnfrancisdoe1563
    @johnfrancisdoe1563 5 ปีที่แล้ว

    More interested in newer n log n algorithms that also optimize the memory operations cost, such as tsort.

  • @pie6
    @pie6 6 ปีที่แล้ว +1

    Woo Hoo! Finally another video

  • @thegallivantinggamers4904
    @thegallivantinggamers4904 4 ปีที่แล้ว +2

    Next, can you please do Insertion versus selection sort?

  • @danieldelizaur435
    @danieldelizaur435 6 ปีที่แล้ว +4

    See you next year :D

  • @tarunprasad98
    @tarunprasad98 5 ปีที่แล้ว +1

    Could you please make videos on pointers and self referential structures?

  • @psychologyfacts1718
    @psychologyfacts1718 3 ปีที่แล้ว +1

    first tym in 4 years I got the concept right love from Pakistan

  • @TeamNolex
    @TeamNolex 9 หลายเดือนก่อน +1

    *The time complexities are*
    Best: O(n)
    Average: O(n^2)
    Worst: O(n^2)
    Storage: O(1)

  • @MrMeszaros
    @MrMeszaros 3 ปีที่แล้ว

    Woooo - do a chart for mergesort too😍

  • @cyanuwu1864
    @cyanuwu1864 ปีที่แล้ว

    and so, here we are again, watching educational videos at midnight trying to sleep

  • @pun5925
    @pun5925 3 ปีที่แล้ว +1

    im oddly addicted to these

  • @Joel-id5jq
    @Joel-id5jq 4 ปีที่แล้ว +2

    Thank You !

  • @nanchoparty
    @nanchoparty 5 ปีที่แล้ว

    I'd like to see Gravity Sort, Counting Sort, and Radix Sort

  • @christophkassir1559
    @christophkassir1559 หลายเดือนก่อน +1

    Remarkable!

  • @dentistrider3874
    @dentistrider3874 ปีที่แล้ว

    Not here for computer science. Here for the intense competition. It wasn't even a fair match. You'll always be the winner in my heart Bubble Sort :_)

  • @Rodric380
    @Rodric380 3 ปีที่แล้ว

    this is just an art

  • @AtaSancaktar
    @AtaSancaktar 5 ปีที่แล้ว +31

    You still haven't done Bogosort :)

    • @thatoneguy9582
      @thatoneguy9582 5 ปีที่แล้ว +16

      Rishi Is Here
      nevermind short-sighted, this robot’s fuckin blind

    • @diamboy
      @diamboy 4 ปีที่แล้ว

      That One Guy thats for bozo sort

    • @clam379
      @clam379 4 ปีที่แล้ว +5

      Bogo sort is still sorting the balls to this day

    • @AeroTheVaporeon
      @AeroTheVaporeon 4 ปีที่แล้ว +2

      @@diamboy dont be mean hes trying his best

    • @want-diversecontent3887
      @want-diversecontent3887 3 ปีที่แล้ว +4

      Oh my god udiprod actually did it
      And they animated it fully

  • @FplusETVChannel
    @FplusETVChannel 5 ปีที่แล้ว +1

    Even before the match I knew insertion sort would win