C
C#ā€¢16mo ago
moshimoshi

āœ… Heaps & Priority Queue

What is priority queue in heap data struct?
6 Replies
hiyosilver
hiyosilverā€¢16mo ago
Either I'm having a stroke or this question makes no sense. You might need to rephrase a little bit so people can understand what you want. Maybe we can all have a wild guess and the community can vote on their favourite answer šŸ˜‰
moshimoshi
moshimoshiā€¢16mo ago
Haha, apologies for not being clear. My lecture slides had this written on it but had no clue what it meant - as an application of heap Priority Queues (e.g. CPU job-scheduling) ā€¢ Give each runnable task a priority number ā€¢ Execute the next runnable task with highest priority
Pobiega
Pobiegaā€¢16mo ago
Application of heap, meaning usage of heap
moshimoshi
moshimoshiā€¢16mo ago
yes thats right
Pobiega
Pobiegaā€¢16mo ago
Well, prio queues often use heaps as their backing structure so they are an example of a usage of heaps
moshimoshi
moshimoshiā€¢16mo ago
hahaha yeah i read some explanation online too! thanks šŸ™‚
Want results from more Discord servers?
Add your server
More Posts
ā” id love to get a code review if possiblethis is a segmented sieve code I wrote. it is meant to be as fast as I can get it, however id mostlyāœ… Asp.Net HelpI'm working on a assignment and really need some help. We have to make a website where we can show hā” URGENT; need help with a project that uses databasesIve got a project due next friday, in which i need to add data to a database through a c# applicatioā” Filing empty list with equal items left and right of selected item from another listGiven a list and selected index of an item in that list, I want to fill another list such that itemsā” Use of IDrive e2 S3 object storageHey, have anybody used this storage for own apps? I can't figure it out how i need to connect to it.ā” dont judge D:basically im the newest newest can get, how do you make a text say different things when you press sāœ… Stream assistance neededAlright I really need I'm completely lost. I have a file containing the following: 1 versioning byteā” What is your experience with UI component vendors like Infragistics, DevExpress, Syncfusion?Hello! I'm working hard to find the right vendor of UI controls for a **Blazor ** Hybrid project. I'āœ… Access object that attribute is onI have an attribute and I want to access the object it is on.ā” Npgsql with EF Core - column "status" is of type status_enum but expression is of type integerHello people, I am using Postgres DB with the .Net Core 6 Web App, I am using the DB First approach