📄 completbintr.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>complete binary tree</TITLE>
<META name="description"
content="Definition of complete binary tree,
possibly with links to more information and implementations.">
<META name="keywords" content="complete binary tree">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>complete binary tree</H1>
<P>
(definition)
<P>
<strong>Definition:</strong>
A <a href="binarytree.html" tppabs="http://hissa.nist.gov/dads/HTML/binarytree.html"><em>binary tree</em></a> in which all <a href="leaf.html" tppabs="http://hissa.nist.gov/dads/HTML/leaf.html"><em>leaf</em></a> <a href="node.html" tppabs="http://hissa.nist.gov/dads/HTML/node.html"><em>nodes</em></a> are at level <em>n</em> or <em>n-1</em>, and all leaves at level n are towards the left.
<P><strong>See also</strong>
<a href="fullbintree.html" tppabs="http://hissa.nist.gov/dads/HTML/fullbintree.html"><em>full binary tree</em></a>.
<P><em>Note:
In a complete binary tree, there are between 2<sup>n-1</sup> and 2<sup>n</sup>-1 nodes, inclusively. A complete binary tree is efficiently implemented as an <a href="array.html" tppabs="http://hissa.nist.gov/dads/HTML/array.html"><em>array</em></a>, where a node at index <em>i</em> has children at indices <em>2i</em> and <em>2i+1</em>. 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:25:12 1999.<BR>
HTML page formatted Wed Dec 22 09:35:00 1999.
<P>
This page's URL is
<A href="completbintr.html" tppabs="http://hissa.nist.gov/dads/HTML/completbintr.html">http://hissa.nist.gov/dads/HTML/completbintr.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -