Bubble Sort | C++ Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024

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

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

    How lucky, bubble sort in C++ is exactly what I'm looking for today. 👍

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

      Awesome, I'm glad the timing worked out! :-)

  • @Life17768
    @Life17768 7 หลายเดือนก่อน +2

    I was fed up with after i watched your video, i understood that ver well. Good explanation. Thank you ❤️💪🏼

    • @PortfolioCourses
      @PortfolioCourses  7 หลายเดือนก่อน +2

      Awesome, you're welcome! :-)

  • @nikolaykulov4070
    @nikolaykulov4070 10 หลายเดือนก่อน

    Thank you! That's the best video about Bubble Sort that I've ever seen!

    • @PortfolioCourses
      @PortfolioCourses  10 หลายเดือนก่อน

      You’re very welcome, I’m glad it’s your favourite bubble sort video! :-)

  • @om9.8dclash81
    @om9.8dclash81 3 หลายเดือนก่อน +1

    Thankyou Sir, this lecture really helped me out🙏

  • @valor36az
    @valor36az 6 หลายเดือนก่อน

    Thank you so much best C++ tutorials!

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

    Excellent educational video! Been looking for something like this forever, but now I have found it. Thank you sir!

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

      You're very welcome Vladimir, I'm glad you found the video and that you enjoyed it! :-)

  • @chezchundy8892
    @chezchundy8892 10 หลายเดือนก่อน +6

    I'm a total beginner working thru cs50 and your videos have been invaluable in helping me further understand the concepts i'm being introduced to. Thanks so much for taking the time to make these.

    • @PortfolioCourses
      @PortfolioCourses  10 หลายเดือนก่อน +4

      You’re very welcome, thanks for sharing with me that these videos are helping you out on your journey. Good luck going forward as you continue to learn! :-)

  • @ПауверТзен
    @ПауверТзен 10 หลายเดือนก่อน

    please make playlist with algorithms and data structure you're the best tutor for me

    • @PortfolioCourses
      @PortfolioCourses  10 หลายเดือนก่อน

      I definitely want to keep covering more algorithms and data structures. :-)

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

    Amazing Video!! The best explanation I've seen

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

      I'm really glad that you enjoyed the explanation! :-)

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

    thank you bro

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

    Well Explained, very educational

  • @nokia_n-gage
    @nokia_n-gage 10 หลายเดือนก่อน

    Thank you!

  • @AmitZanzuri-h8p
    @AmitZanzuri-h8p 7 หลายเดือนก่อน

    Thank you for the great content. Quick question - since the last element can’t be compared to the element to the right of it, wouldn’t it be more handy to start with j=1 and then compare each element to the element on the left? Is there any problem with doing so?
    for (int i=0; i

  • @Gazab_GFX
    @Gazab_GFX 8 หลายเดือนก่อน

    Can u suggest me a light ide for my low end pc BTW Excellent lecture !

    • @PortfolioCourses
      @PortfolioCourses  8 หลายเดือนก่อน

      I'm glad you enjoyed it! :-) Regarding an IDE, maybe Visual Studio Code with the C++ extension? code.visualstudio.com/docs/languages/cpp

    • @Gazab_GFX
      @Gazab_GFX 8 หลายเดือนก่อน

      @@PortfolioCourses Thanks I will try it 👍🏻

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

    Nice man

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

    Hi, if selection sort, inserction sort and bubble sort have all the same time complexity, how do I choose between the three? it doesn't matter? (ofc ig in production I wouldn´t use this algorithms but I'm in college and I have to, but since all three seems equally inneficent, i would't know which one to use, maybe bubble sort because it may run less times than the other two)

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

      Bubble sort we basically never use in practice. :-) I have heard that insertion sort is sometimes used when sorting small arrays. So for example, in some implementations of quicksort, when the portion of the array being sorted is small enough we may use insertion sort to sort the array. As to exactly why one is faster than the other... technically they are all n^2 complexity, but I think in practice we find there is performance differences with experimentation, like this article: medium.com/the-high-performance-computing-forum/performance-comparison-between-selection-insertion-and-bubble-sorts-d670d874be70.

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

    What IDE you use for C++ ?

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

    University of Nigeria exam question

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

    Thankes for this more than great explination, but I did not get the Optimization part! the code was easier before?

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

    I'm writing in 2 hours 😅😅😅 ii get it

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

    This is super helpful while studying Algorithms in a CS diploma and trying to move to that field. Thank you!

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

    Great video! Love from Bangladesh.

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

    bro,your videos are very helpful.
    but an humble request is make a playlist on data structure and algorithm .

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

      Good idea Partho! :-) A playlist on data structures and algorithms in C++? Or a playlist on data structures and algorithms in general?

    • @ПауверТзен
      @ПауверТзен 10 หลายเดือนก่อน

      @@PortfolioCourses please only in c++. I will go to republican olympiad and it will be very helpful for me!