Priority Queue | Data Structure | Python Tutorials

preview_player
Показать описание
In this Python Programming video tutorial you will learn about priority queue data structure and how to implement that using classes of different modules in detail.

Data structure is a way of storing and organising the data so that it can be accessed effectively.
In python we can categorise data structures in 2 ways built in data structures and user defined data structures.
Python offers 4 built in data structures list tuple set and dictionary.
And we can implement stack queue linked list tree and graph which are called as user defined data structures .

#DataStructures #PythonPrograms

For more free tutorials on computer programming
Рекомендации по теме
Комментарии
Автор

One of the most underrated yt coding channel

saraswatimondal
Автор

She's just great at explaining this stuff. Thank you :)

carefree_ladka
Автор

Kindly answer this question

We have an array of 5 elements: [4, 8, 1, 7, 3] and we have to insert all the elements in the max-priority queue. First as the priority queue is empty, so 4 will be inserted initially.
Now when 8 will be inserted it will move to front as 8 is greater than 4. While inserting 1, as it is the current minimum element in the priority queue, it will remain in the back of priority queue. Now 7 will be inserted between 8 and 4 as 7 is smaller than 8.
Now 3 will be inserted before 1 as it is the 2nd minimum element in the priority queue.

syedowaisaliraza
Автор

I am Looking to implement Dijkstras Algo using PQ.. thanks for this.

ytg
Автор

Amulya's voice and voicing out her words are cute...its like a kid

migy
Автор

Nice and simple explanation, thank you 🙂

TheMako
Автор

Ma'am if any more topics is left to make for DSA in python, please make it and complete the series. I am following this series for my python dsa. Ma'am sorting, bubbling are not in this series please look into it.

anonymoushindustanti
Автор

hi Sis, these are really worth videos thanks a lot for sharing the content .
Guys who are reading the comment and really want to learn Data Strucures in Python, here is the Amulya Sis who always explained in a laymen terminology so that everyone understands.

And one small request guys, since this sister is doing this much for us, pls donot skip the adds, just watch fully, pls donot skip, so that our sister will get the income. This is the least way we can help her.

Thanks SIS

meghanathreddy
Автор

Your video’s are so easy to understand. Could please make one for heap sort with explaining code.

pravasinipati
Автор

Why there is no option to have notification bell for this playlist? Btw Thanks a lot for this series

bitsbytes
Автор

When are linked list and hash maps etc are coming? Eagerly waiting for them please upload them soon

shreehari
Автор

7:04 So Priority class will give high priority to small value, then what about bigger values. We can use list but as you said its slower and not the first choice. Is there any other option beside list and deque function for bigger values.
BTW the Playlist is amazing so far, Thanks.

beatboss
Автор

Thanks your voice is so nice 👍🏻 gifted by god with sharp mind

sanketsuryawanshi
Автор

You explained about the lowest num first priority for highest number

vishalv
Автор

Can I get the source code for last one q.append((2, "a")) and for the pop() function. and what if the priority is same for both?

MrUmesh
Автор

ma'am pls make the video on linked list

ravishankarpal
Автор

Please do videos on Graph, tree doubly linked😪😪🙏🙏

kironpaul
Автор

Do you have video on pandas and numpy ?

sanketsuryawanshi
Автор

Madam, can you please let me know by which application you recording the screen.

_India
Автор

What if we have a priority queue with strings, is there a way we can set the priority without alphabetic order?

the_mellobean