Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PRIORITY QUEUE USING HEAPIFY FUNCTION 1. A priority queue is an abstract data type (Links to an external site.) which is like a regular queue
PRIORITY QUEUE USING HEAPIFY FUNCTION 1. A priority queue is an abstract data type (Links to an external site.) which is like a regular queue (Links to an external site.) or some other data structures, but where additionally each element has a "priority" associated with it. In a priority queue, an element with high priority is served before an element with low priority like scheduler. If two elements have the same priority, they are served according to their order in the queue. 2. Use the bearify function or the heap sort algorithm discussed in the class to implement a priority queue program in any programming language you desire (C++ or java). 3. The program should be able to insert, delete and update the priority of the jobs. 4. The jobs should be heapified or be sorted according to their priorities. 5. Job priorities are to be assigned a number between 1 and 20. 6. Each job consists of Job #, Job Name, Submitter name, and priority. 7. The program should take the job #, Job name, Submitter, and Priority as input into Wait Queue". Enter m jobs to Wait queue where 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started