Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!