⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binarysrchtr.html

📁 数据结构词典(英文)
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>binary search tree</TITLE>
<META name="description"
  content="Definition of binary search tree,
	possibly with links to more information and implementations.">
<META name="keywords" content="binary search tree">
</HEAD>
<BODY BGCOLOR="#FFFFFF">

<H1>binary search tree</H1>
<P>
(data structure)

<P>
<strong>Definition:</strong>
A <a href="binarytree.html" tppabs="http://hissa.nist.gov/dads/HTML/binarytree.html"><em>binary tree</em></a> where every <a href="node.html" tppabs="http://hissa.nist.gov/dads/HTML/node.html"><em>node's</em></a> left  <a href="subtree.html" tppabs="http://hissa.nist.gov/dads/HTML/subtree.html"><em>subtree</em></a> has values less than the node's value, and every right subtree has values greater.  A new node is added as a <a href="leaf.html" tppabs="http://hissa.nist.gov/dads/HTML/leaf.html"><em>leaf</em></a>.
<P><strong>See also</strong>
<a href="avltree.html" tppabs="http://hissa.nist.gov/dads/HTML/avltree.html"><em>AVL tree</em></a>, <a href="splaytree.html" tppabs="http://hissa.nist.gov/dads/HTML/splaytree.html"><em>splay tree</em></a>, <a href="relaxdbalanc.html" tppabs="http://hissa.nist.gov/dads/HTML/relaxdbalanc.html"><em>relaxed balance</em></a>, <a href="randmzdbinst.html" tppabs="http://hissa.nist.gov/dads/HTML/randmzdbinst.html"><em>randomized binary search tree</em></a>.
<P><em>Note:
A binary search tree is almost always implemented with pointers, but may have a variety of constraints on how it is composed.</em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</a>
<H2>Implementation</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://al.cs.engr.uky.edu/%7Elewis/cs2/programs/schtrees.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://al.cs.engr.uky.edu/%7Elewis/cs2/programs/schtrees.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://al.cs.engr.uky.edu/%7Elewis/cs2/programs/schtrees.html">insert, search, and maximum (Pascal)</A>,  <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture16/sld013.htm  \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.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture16/sld013.htm'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture16/sld013.htm">insert (C)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.oberlin.edu/classes/dragn/labs/avl/avl30.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.cs.oberlin.edu/classes/dragn/labs/avl/avl30.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.oberlin.edu/classes/dragn/labs/avl/avl30.html">insert (Lisp)</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/516c.ins.p.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/516c.ins.p.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.thunderstone.com/jump/demos/algorithms/algs/5/516c.ins.p.html">insert (Pascal)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/3411.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.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/3411.ins.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/3411.ins.c.html">insert (C and Pascal)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/3411.srch.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.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/3411.srch.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/3/3411.srch.c.html">search (C and Pascal)</A>, and  <A  HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.csc.twu.ca/rsbook/index.html?http://www.csc.twu.ca/rsbook/Ch14/Ch14.8.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.csc.twu.ca/rsbook/index.html?http://www.csc.twu.ca/rsbook/Ch14/Ch14.8.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.csc.twu.ca/rsbook/index.html?http://www.csc.twu.ca/rsbook/Ch14/Ch14.8.html">insert, search, delete, and various traversals (Modula-2)</A>.
<H2>More information</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.oberlin.edu/classes/dragn/labs/avl/avl3.html%23@l13  \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.oberlin.edu/classes/dragn/labs/avl/avl3.html%23@l13'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.oberlin.edu/classes/dragn/labs/avl/avl3.html%23@l13">lecture notes</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture17/sld006.htm  \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.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture17/sld006.htm'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cse.ucsc.edu/classes/cmps012b/Spring97/Lecture17/sld006.htm">two different deletion algorithms</A>, and more <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.duke.edu/%7Emlittman/courses/cps130/lectures/lect09/node1.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.cs.duke.edu/%7Emlittman/courses/cps130/lectures/lect09/node1.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.duke.edu/%7Emlittman/courses/cps130/lectures/lect09/node1.html">lecture notes</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>
&nbsp;(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).

<p>
Entry modified Wed Feb 24 15:09:45 1999.<BR>
HTML page formatted Wed Dec 22 09:34:48 1999.

<P>
This page's URL is
<A href="binarysrchtr.html" tppabs="http://hissa.nist.gov/dads/HTML/binarysrchtr.html">http://hissa.nist.gov/dads/HTML/binarysrchtr.html</A>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -