Follow

Translate

Thursday, March 17, 2016

One Way List Representation of a Priority Queue

One Way List Representation of a Priority Queue: 

One way to maintain a priority queue in memory is by means of a one-way list, as follows:

(a)  Each node in the list will contain three items of information: an information field INFo, a priority number PRN and a link number LINK.

(b)  A node X preceds a node Y in the list (1) when X has higher priority than Y or (2) when both have the same priority  but X was added to the list before Y. This means that the order in the one-way list corresponds to the order of the priority queue.
If You want to learn about the technology, computer science & engineering, web programming, freelancing, earning please click here :CSE SOLVE

0 comments:

Post a Comment