C++ Data Structures: Min-Heaps

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

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

  • @JesusMartinez-bg9xp
    @JesusMartinez-bg9xp 4 ปีที่แล้ว +2

    Great Video! Helped me understand this data structure much better. Keep up the great work!

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

    actually the indexing start with 1 , and the zero position we put garage to maintain the rules
    l=2*i
    r=2*i+1
    p=i/2 ,and that all the books definitions

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

    Hey Nick. Great content. Although heapify can be made much more efficient. remember leaf nodes don't need to be headpified. so if i>size/2 simply return for heapify method !

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

      Obviously....But he wants to keep it as simple as possible. I see you r a brilliant programmer but u don't have to prove that here.

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

    This was very helpful, thank you

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

      Chris Thomas no problem! Happy to help!

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

    clear and to the point.Thanks:)

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

    Hello, this was very helpful to understand binary heaps. I was wondering if you need the capacity. Can you just make a min heap without a capacity and what is the point of having a capacity?

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

    why is the end working? You don't use the int min again. In my programm after i extrect the min element the heap don't print again

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

    Brilliant explanation....love it bro!!!!!....keep on making such videos plzzzzz..

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

    Super helpful thank you!

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

    amazing video! you helped me a lot with my studies :)

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

    Hi I loved this content, if you have time could you possibly cover some more algorithms? Such as topsort, bellman-ford, kruskal's, prim's

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

    can I know of the name of the blackboard software you are using? I am searching a blackboard like that for awhile. The info would be really helpful to me.

  • @PriyanshuRaj-oc4tk
    @PriyanshuRaj-oc4tk 4 ปีที่แล้ว +1

    great video man! 🔥👍

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

      Glad you thought so!

    • @PriyanshuRaj-oc4tk
      @PriyanshuRaj-oc4tk 4 ปีที่แล้ว

      ​@@CoffeeBeforeArch i used this implementation to solve this problem:
      practice.geeksforgeeks.org/problems/kth-smallest-element/0
      Here is my code, but when i submit i get Segmentation Fault (SIGSEGV) runtime error. Here is my code:
      drive.google.com/file/d/1uLXrf81ZxRABxj8y3PcPa4szIdFPjWoI/view?usp=sharing
      If you could take a look, it would be very helpful, thanks in advance!

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

    Hi, this video was awesome, it makes lots of help to me. Thank you :)

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

    why does this have so less views ?

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

    awesome :)