The Priority Queue in Javascript

JavascriptWeb DevelopmentFront End Technology

A priority queue is an abstract data type which is like a regular queue or stack data structure, 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. If two elements have the same priority, they are served according to their order in the queue.

There are many ways to implement a priority queue. We'll be implementing it using an Array.

raja
Published on 27-Jun-2018 11:52:02
Advertisements