📄 priorityque.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>priority queue</TITLE>
<META name="description"
content="Definition of priority queue,
possibly with links to more information and implementations.">
<META name="keywords" content="priority queue">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>priority queue</H1>
<P>
(data structure)
<P>
<strong>Definition:</strong>
An <a href="abstracdtype.html" tppabs="http://hissa.nist.gov/dads/HTML/abstracdtype.html"><em>abstract data type</em></a> which efficiently supports finding the node with the highest priority across a series of operations. The basic operations are: insert, find-minimum (or maximum), and delete-minimum (or maximum). Some implementations also efficiently support join two priority queues (<a href="meld.html" tppabs="http://hissa.nist.gov/dads/HTML/meld.html"><em>meld</em></a>), delete an arbitrary node, and increase the priority of a node (decrease-key).
<P><strong>See also</strong>
<a href="discretintrv.html" tppabs="http://hissa.nist.gov/dads/HTML/discretintrv.html"><em>discrete interval encoding tree</em></a>, <a href="bestfirst.html" tppabs="http://hissa.nist.gov/dads/HTML/bestfirst.html"><em>best first search</em></a>, <a href="heap.html" tppabs="http://hissa.nist.gov/dads/HTML/heap.html"><em>heap</em></a>, <a href="hashheap.html" tppabs="http://hissa.nist.gov/dads/HTML/hashheap.html"><em>hash heap</em></a>, <a href="fibonacheap.html" tppabs="http://hissa.nist.gov/dads/HTML/fibonacheap.html"><em>Fibonnaci heap</em></a>.
<P><em>Note:
It can be implemented efficiently with a <a href="heap.html" tppabs="http://hissa.nist.gov/dads/HTML/heap.html"><em>heap</em></a>. After LK.</em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</a>
<H2>Implementation</H2>
Implemented as a heap: <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://watson2.cs.binghamton.edu/%7Eataub/cs333/project/classfiles/PriorityQueue.java \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://watson2.cs.binghamton.edu/%7Eataub/cs333/project/classfiles/PriorityQueue.java'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://watson2.cs.binghamton.edu/%7Eataub/cs333/project/classfiles/PriorityQueue.java">PriorityQueue class (Java)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www-theory.dcs.st-and.ac.uk/%7Emda/cs2001/pqs/pqcode.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www-theory.dcs.st-and.ac.uk/%7Emda/cs2001/pqs/pqcode.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www-theory.dcs.st-and.ac.uk/%7Emda/cs2001/pqs/pqcode.html">insert, delete, etc. (Modula-2?)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.ins.c.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.ins.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.ins.c.html">insert (C or Pascal)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.del.c.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.del.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.del.c.html">delete (C or Pascal)</A> which uses <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.sift.c.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.sift.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/513.sift.c.html">siftup (C or Pascal)</A>. <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.sunysb.edu/%7Ealgorith/files/priority-queues.shtml \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.sunysb.edu/%7Ealgorith/files/priority-queues.shtml'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.sunysb.edu/%7Ealgorith/files/priority-queues.shtml">(C++, Pascal, and Fortran)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.moorpark.cc.ca.us/%7Ecsalazar/cs20/nonlin.txt \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.moorpark.cc.ca.us/%7Ecsalazar/cs20/nonlin.txt'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.moorpark.cc.ca.us/%7Ecsalazar/cs20/nonlin.txt">(C++)</A>
<H2>More information</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://members.xoom.com/killough/heaps.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://members.xoom.com/killough/heaps.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://members.xoom.com/killough/heaps.html">links to papers</A>
<hr>
Go to the
<A HREF="terms.html" tppabs="http://hissa.nist.gov/dads/terms.html">Algorithms, Data Structures, and Problems</A>
home page.
<hr>
If you have suggestions, corrections, or comments, please get in touch
with
<a href="javascript:if(confirm('http://hissa.nist.gov/~black/black.html \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://hissa.nist.gov/~black/black.html'" tppabs="http://hissa.nist.gov/~black/black.html">Paul E. Black</a>
(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).
<p>
Entry modified Thu Oct 7 15:32:14 1999.<BR>
HTML page formatted Wed Dec 22 09:36:14 1999.
<P>
This page's URL is
<A href="priorityque.html" tppabs="http://hissa.nist.gov/dads/HTML/priorityque.html">http://hissa.nist.gov/dads/HTML/priorityque.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -