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

📄 bucketsort.html

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

<H1>bucket sort</H1>
<P>
(algorithm)

<P>
<strong>Definition:</strong>
A <a href="distribsort.html" tppabs="http://hissa.nist.gov/dads/HTML/distribsort.html"><em>distribution sort</em></a> where input elements are initially  distributed to several <a href="bucket.html" tppabs="http://hissa.nist.gov/dads/HTML/bucket.html"><em>buckets</em></a> based on an interpolation of the element's <a href="key.html" tppabs="http://hissa.nist.gov/dads/HTML/key.html"><em>key</em></a>. Each bucket is sorted if necessary, and the buckets' contents are concatenated.
<P><strong>See also</strong>
<a href="rangesort.html" tppabs="http://hissa.nist.gov/dads/HTML/rangesort.html"><em>range sort</em></a>, <a href="radixsort.html" tppabs="http://hissa.nist.gov/dads/HTML/radixsort.html"><em>radix sort</em></a>, <a href="hashheap.html" tppabs="http://hissa.nist.gov/dads/HTML/hashheap.html"><em>hash heap</em></a>.
<P><em>Note:
The space required is one bucket for every few possible key value, but is <a href="bigOnotation.html" tppabs="http://hissa.nist.gov/dads/HTML/bigOnotation.html"><em>O(n)</em></a>. <P> Bucket sorts work well for data sets where the possible key values are known and relatively small and there are on average just a few elements per bucket so that the cost of sorting the contents of each bucket can be reduced toward zero.  The ideal result is possible if the order in each bucket is uninteresting or trivial, for instance, when each bucket holds a single key.  The buckets may be arranged so the concatenation phase is not needed, for instance, the buckets are contiguous parts of an array. <P> Bucket sorts can be <a href="stable.html" tppabs="http://hissa.nist.gov/dads/HTML/stable.html"><em>stable</em></a>.   <P> Also known as <a href="binsort.html" tppabs="http://hissa.nist.gov/dads/HTML/binsort.html"><em>bin sort</em></a>.</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://www.ee.uwa.edu.au/%7Eplsd210/ds/binsort.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.ee.uwa.edu.au/%7Eplsd210/ds/binsort.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ee.uwa.edu.au/%7Eplsd210/ds/binsort.html">analysis, explanation, and code (C)</A>, and <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/4/423.sort.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/4/423.sort.c.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.dcc.uchile.cl/%7Eoalonso/handbook/algs/4/423.sort.c.html">(C)</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 Apr  7 09:33:37 1999.<BR>
HTML page formatted Wed Dec 22 09:34:54 1999.

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

</BODY>
</HTML>

⌨️ 快捷键说明

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