Content-Length: 297429 | pFad | http://github.com/trekhleb/javascript-algorithms/blob/master/src/data-structures/priority-queue

6A6B0BFB javascript-algorithms/src/data-structures/priority-queue at master · trekhleb/javascript-algorithms · GitHub
Skip to content

Latest commit

 

History

History

README.md

Priority Queue

Read this in other languages: 简体中文, Русский, 日本語, Français, Português, 한국어, Українська

In computer science, 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.

While priority queues are often implemented with heaps, they are conceptually distinct from heaps. A priority queue is an abstract concept like "a list" or "a map"; just as a list can be implemented with a linked list or an array, a priority queue can be implemented with a heap or a variety of other methods such as an unordered array.

References









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/trekhleb/javascript-algorithms/blob/master/src/data-structures/priority-queue

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy