C++ Data Structures: Min-Heaps

  Рет қаралды 16,128

CoffeeBeforeArch

CoffeeBeforeArch

Күн бұрын

Пікірлер: 25
@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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
This was very helpful, thank you
@CoffeeBeforeArch
@CoffeeBeforeArch 4 жыл бұрын
Chris Thomas no problem! Happy to help!
@nahimkamruzzaman4104
@nahimkamruzzaman4104 3 жыл бұрын
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?
@sarthakbhatia7888
@sarthakbhatia7888 4 жыл бұрын
clear and to the point.Thanks:)
@CoffeeBeforeArch
@CoffeeBeforeArch 4 жыл бұрын
Happy to help!
@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.
@CoffeeBeforeArch
@CoffeeBeforeArch 3 жыл бұрын
Xournal
@JesusMartinez-bg9xp
@JesusMartinez-bg9xp 4 жыл бұрын
Great Video! Helped me understand this data structure much better. Keep up the great work!
@CoffeeBeforeArch
@CoffeeBeforeArch 4 жыл бұрын
Thanks! Glad you enjoyed it!
@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..
@ashwinsingh1325
@ashwinsingh1325 4 жыл бұрын
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
@mizokx1310
@mizokx1310 3 жыл бұрын
amazing video! you helped me a lot with my studies :)
@nullbrain8552
@nullbrain8552 4 жыл бұрын
Super helpful thank you!
@CoffeeBeforeArch
@CoffeeBeforeArch 4 жыл бұрын
Zacree Carroll happy to help!
@neloysinha8098
@neloysinha8098 4 жыл бұрын
why does this have so less views ?
@PriyanshuRaj-oc4tk
@PriyanshuRaj-oc4tk 4 жыл бұрын
great video man! 🔥👍
@CoffeeBeforeArch
@CoffeeBeforeArch 4 жыл бұрын
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 жыл бұрын
Hi, this video was awesome, it makes lots of help to me. Thank you :)
@CoffeeBeforeArch
@CoffeeBeforeArch 4 жыл бұрын
Happy to help!
@midrees1286
@midrees1286 5 жыл бұрын
awesome :)
C++ Data Structures: Max Heap
9:28
CoffeeBeforeArch
Рет қаралды 3,2 М.
Heap Data Structure (max and min)- Beau teaches JavaScript
14:42
freeCodeCamp.org
Рет қаралды 58 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 19 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН
Heaps, heapsort, and priority queues - Inside code
19:01
Inside code
Рет қаралды 97 М.
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 7 М.
What Is a Binary Heap?
8:45
Spanning Tree
Рет қаралды 197 М.
The Dark Side of .reserve()
18:50
Logan Smith
Рет қаралды 152 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 295 М.
Min Heap Max Heap and Heapify Introduction
19:00
CppNuts
Рет қаралды 1,3 М.
2.6.3 Heap - Heap Sort - Heapify - Priority Queues
51:08
Abdul Bari
Рет қаралды 2,2 МЛН