Heaps & Priority Queues in Python

preview_player
Показать описание
Today we learn how to use heaps in Python. Heaps are efficient implementations of priority queues.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

nice video, remind me of data structures classes.
min heap its great and efficient.
Usually its implemented on top of arrays, although its best viewed as graphs.
min heap always keep a min height state since the height of the tree generated will be log2(numbers inside).

Gooloso
Автор

Thank you for this! So many other videos on heaps just speak about the theory, but don't show any implementation or manipulation.

dhbroad
Автор

Love the videos. You seem like the guy to ask out of the channels I've watched, and recommendations on ultra learning in terms of python?

HallowByThy
Автор

Brilliant mate, , Please make these type of explanation for other Data Structure also.

Thanks

vikasjha
Автор

Great video
Loved the content
Keep it up

takshdhabalia
Автор

Your videos are awesome, but the music is loud af in the beginning and then the voice audio is way lower. I think that could be better

anthonyrojas
Автор

I want just to point out that the heap for a given set of numbers is "NOT" Unique. So you can always predict that if you apply the "heapify()' to the same set of numbers, it can result in different answers.

soufianeaitlhadj
Автор

can you do a video on screen recorder but no import with vanilla pyhton please

tcgvsocg
Автор

=> parent should be smaller than children (min-heap).

홍성의-iy
Автор

What for / where it's used for mainly

disrael
Автор

you did not mention priority queue code

abhishekpardeshi
Автор

hi, can someone explain what "maintaining heap invariant" means?

soniahandle
Автор

Hey everyone ik its pretty late but i just wanna tell u all to take it easy, relax, pray to GOD and have and trust in GOD as well as believe in his one and only son Jesus and to repent of your sins. hope u have an amazing day

niteshanthony