Bubble Sort

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • This video shows how bubble sort works.

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

  • @henrylie4699
    @henrylie4699 7 ปีที่แล้ว +119

    He's the hero we need, not the one we deserve

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

      Not all heroes wear capes

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

      Yes he is my hero
      太興 太好味道

  • @ericsizemore
    @ericsizemore 9 หลายเดือนก่อน +3

    i am in an entire course of computer science and this 3 minute video explained better than all the textbooks in the library. thank you youtube and thank you especially, KC Ang. Appreciate you, sir!

    • @mtophir
      @mtophir  9 หลายเดือนก่อน

      You're most welcome. Glad my video helped. 🙂

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

    Couldn't think of a simpler way to explain Bubble sort. The green marker helped a lot.

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

    Clearest explanation I've seen on this algorithm. Nice work.

  • @HarshalPalke
    @HarshalPalke 8 ปีที่แล้ว +47

    I like the way you demonstrated bubble sort that was very helpful & thank you for the video

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

    I will never forget how bubble sort works again! Thank you!

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

      Happy to help!

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

    If you give this gentleman a few cups, he can save our world...

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

    You are being used in college classes to teach this method. Best explanation I have ever seen. thank you

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

      Wow, thank you!

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

    Very Helpful, This is the code for the video, to test it out open a new tab, rightclick and click inspect, then expand that portion, and at the top click sources, then add snippet and this is your js environment play ground but here is the code:
    var array =[3,2,1]
    var b = 10
    var c = 1 //the third variable which is placeholder
    while(c==1){
    c=0
    for(var i=0 ; i < a.length ; i++){
    if (a[i + 1] < a[i]){
    c=1
    b=a[i]
    a[i]= a[i + 1]
    a[i + 1]=b }
    }
    console.log(a)
    }
    now paste in the snippet and run the code and check the console to play around and see output

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

    This video is a gem

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

    Great. You taught conceptually.

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

    Explained in a simple and clear way. Great job!!

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

    What an amazing guy! Couldn't have done this better!

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

      Thank you, glad you liked it.

  • @TSUNG-YULIN
    @TSUNG-YULIN 2 ปีที่แล้ว

    It's awesome.Eventually I know why the program of bubble sort need to the outer loop . Thank you.

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

      You're most welcome.

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

    Sir, you are absolute gigachad, Thank you it's very helpfull

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

      Happy to help

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

    concise and clear explanation, great job!

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

    The best methods. Thanks, sir.

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

      Welcome!

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

    Beautifully explained, thanks for this, greetings from Colombia.

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

      Glad it was helpful!

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

    very nice video you deserve 1 moiilion subscription
    very best of luck
    essy and practical approach

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

      Thanks for your kind words.

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

    This was so simple and helpful. Thank you!

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

      You're most welcome!

  • @WarrenJay
    @WarrenJay 7 ปีที่แล้ว +9

    OMG i got a test on thursday thank you so much I didn't understand why they had the OUTER LOOP go from the last element which make sense now because you have to have the largest number remaining over there yep

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

      All the best for your test!

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

    You goated on the swapping cuz, keep it up!

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

      Please read video description. Thank you for watching.

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

    Such a good, kind of mindblowing video

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

      Glad you liked it!

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

    You are amazing person. Thank you!

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

      Wow, thank you!

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

    Great thanks so much for your great work great job please make more videos like this awesome videos thanks

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

      Will try. Thanks for watching.

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

    now this is epic

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

    I like your videos and I request to do all sorting animated videos to clear our practical viws

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

    thank you for the video and the cups are cute, and it will be better if you could deliver the meaning of every round (which is to move the largest element to the most right position of this round)

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

      Thanks for the suggestion.

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

    Simple and precise..

  • @陈瀚龙
    @陈瀚龙 6 ปีที่แล้ว +7

    My favorite of all algorithm videos.

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

      陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙陈瀚龙

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

    thanks for making it simply

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

    Very helpful and straightforward thank you

  • @danielzuzevich4161
    @danielzuzevich4161 7 ปีที่แล้ว

    Awesome. Heroic explanation.

  • @krishnaranjan1726
    @krishnaranjan1726 7 ปีที่แล้ว

    Thank You master,respect from India.

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

      venkatraman krishnamoorthy

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

    Very well explained video sir

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

      Thank you~ glad you liked it.

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

      @@mtophir I like u too
      can i have a date with u

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

    Hi great video sorry but if I'm not mistaken the bubble sort algorithm would continue to compare the elements even if they're sorted at the end that's why it an unethical and slow process

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

    Wow what great easy tip tnq

  • @kokoblac705
    @kokoblac705 7 ปีที่แล้ว

    thanks so much, this vid helped me get a better grade

  • @henrylie4699
    @henrylie4699 7 ปีที่แล้ว +8

    Nothing but respect for MY president

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

    So easy to follow! Thank you!

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

      Most welcome!

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

    Cool👍

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

      Thank you

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

    Good😮

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

    AMAZING VIDEO!!! simple, yet full of information! I bet those who disliked didn't understand the video. XD

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

    Awesome video!

  • @idealmusliu
    @idealmusliu 7 ปีที่แล้ว +12

    You are so nice man TYYYY

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

    thank you for this great content respect 4 u man

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

    Great video!

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

    Nice use of a visual aid

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

    Nice work 🔥🔥🔥

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

      Thank you - glad you liked it.

  • @rameshsake3953
    @rameshsake3953 7 ปีที่แล้ว

    Good explanation Sir helped a lot

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

    We watched this in Computer Science class at school.

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

    very good method for understanding

  • @phukieu4238
    @phukieu4238 7 ปีที่แล้ว

    Thank you. The video is very helpful

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

    your videos are so helpful

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

      Glad you like them!

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

    Very helpful. Thank u!

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

      Glad to know that you find the video helpful

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

    Thank you that was helpful

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

    LOVE❤

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

    well done sir nice video! love from italy

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

      Thank you - greetings from Singapore. Glad you like the video.

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

      KC u did a great job
      Can i get a greeting too>_

  • @OmarKhaled-dw7oi
    @OmarKhaled-dw7oi 6 ปีที่แล้ว

    Thanks a lot very helpful

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

    thanks mr. u are persentation great

  • @abdelrhmanelsaid4589
    @abdelrhmanelsaid4589 7 ปีที่แล้ว

    So Simple Awesome ty ^^

  • @seanavery257
    @seanavery257 7 ปีที่แล้ว

    thanks dad! subbed

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

    Really helpful video, however the cups sliding is so horrible.

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

      So sorry about that!

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

    My teacher trying to explain this with words and by drawing a damn number tree on the White board... All he needed was 8 plastic cups with numbers on.

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

      Kc can replace your teacher bro

  • @aronabraha9794
    @aronabraha9794 7 ปีที่แล้ว

    you did good on bubble sort. but your selection sort model is wrong. try to update

  • @naduladhanesh9146
    @naduladhanesh9146 7 ปีที่แล้ว

    thank you very much :)

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

    BTP 100 seneca here

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

    great

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

    Thanks mr

  • @davaabaatardayan4650
    @davaabaatardayan4650 7 ปีที่แล้ว

    thank you

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

    Thanks

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

    Cup song

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

    thx so much

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

    wow

  • @Andrew-00
    @Andrew-00 5 ปีที่แล้ว +1

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

    watch in 2x speed and he has a flashback

  • @NitinRaathi
    @NitinRaathi 7 ปีที่แล้ว

    thanks sir

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

    🌚

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

    WE DO A SWAP

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

    bella de zi

  • @samanthapikus3178
    @samanthapikus3178 7 ปีที่แล้ว

    Thank you!!

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

      Welcome!

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

    u know de wae