10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

DEFINATION OF PRIORITY QUEUES:-<br />

A priority queues is a collection of element such that each element has been assigned a priority<br />

and such that order in which element are deleted and processed from the following rules:<br />

(a) An element of higher priority is processed before any element of lower<br />

priority<br />

(b) Two element with the same priority are processed according to<br />

standard queues<br />

Page-5<br />

Example of priority queue is time sharing system, where programs of higher priority are<br />

processed first.<br />

There can be different criteria of determining the priority. Some of them are summarized<br />

below:<br />

<strong>1.</strong> A shortest job is given higher priority over the longer one.<br />

2. An important job is given the higher priority over a routine type job. For example, a<br />

transaction for on line booking of an order is given preference over payroll<br />

processing.<br />

3. In a commercial computer center, the amount you pay for job can determine priority<br />

for your job. Pay more to get higher priority for your job.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 149 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!