GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — javascript-algorithms/src/data-structures/priority-queue at master · s2012l/javascript-algorithms

Expand file tree

/

priority-queue

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

priority-queue

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
__test__
__test__
 
 
PriorityQueue.js
PriorityQueue.js
 
 
README.fr-FR.md
README.fr-FR.md
 
 
README.ja-JP.md
README.ja-JP.md
 
 
README.md
README.md
 
 
README.pt-BR.md
README.pt-BR.md
 
 
README.ru-RU.md
README.ru-RU.md
 
 
README.zh-CN.md
README.zh-CN.md
 
 

README.md

Outline

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

  • Wikipedia
  • YouTube
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.