Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

Students also viewed these Databases questions

Question

Example. Evaluate 5n+7 lim 7-00 3n-5

Answered: 1 week ago