📄 siftup.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>sift up</TITLE>
<META name="description"
content="Definition of sift up,
possibly with links to more information and implementations.">
<META name="keywords" content="sift up">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>sift up</H1>
<P>
(algorithm)
<P>
<strong>Definition:</strong>
Restoring the <a href="heapproperty.html" tppabs="http://hissa.nist.gov/dads/HTML/heapproperty.html"><em>heap property</em></a> by swapping a <a href="node.html" tppabs="http://hissa.nist.gov/dads/HTML/node.html"><em>node</em></a> with its <a href="parent.html" tppabs="http://hissa.nist.gov/dads/HTML/parent.html"><em>parent</em></a>, and repeating the process on the parent until the <a href="root.html" tppabs="http://hissa.nist.gov/dads/HTML/root.html"><em>root</em></a> is reached or the heap property is satisfied.
<P><em>Note:
Insertion in a <a href="binaryheap.html" tppabs="http://hissa.nist.gov/dads/HTML/binaryheap.html"><em>binary heap</em></a> is implemented by adding a node to the end of of the array and then performing a "sift up" starting at that node. After LK.</em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</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 Tue May 11 16:21:50 1999.<BR>
HTML page formatted Wed Dec 22 09:36:29 1999.
<P>
This page's URL is
<A href="siftup.html" tppabs="http://hissa.nist.gov/dads/HTML/siftup.html">http://hissa.nist.gov/dads/HTML/siftup.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -