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

📄 diminish.html

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

<H1>diminishing increment sort</H1>
<P>
(algorithm)

<P>
<strong>Definition:</strong>
A multipass, <a href="inplacesort.html" tppabs="http://hissa.nist.gov/dads/HTML/inplacesort.html"><em>in-place sort</em></a> algorithm which, on each pass, sorts <em>i</em> sets of <em>n/i</em> items, where <em>n</em> is the total number of items to sort.  Each set is every <em>i<sup>th</sup></em> item, e.g. set 1 is item 1, 1+i, 1+2i, etc., set 2 is item 2, 2+i, etc.  Typically each set is sorted with an  <a href="insertsrt.html" tppabs="http://hissa.nist.gov/dads/HTML/insertsrt.html"><em>insertion sort</em></a>.  On each succeeding pass, the increment, <em>i</em>, is reduced until it is 1 for the last pass.
<P><strong>See also</strong>
<a href="shellsort.html" tppabs="http://hissa.nist.gov/dads/HTML/shellsort.html"><em>shell sort</em></a>.
<P><em>Note:
Since items may move large distances at first, this method is quite efficient.  Donald E. Knuth extensively analyses this algorithm in [DEK, vol. 3, 5.2.1].  A good set of increments may be 2<sup>k</sup>+1, . . ., 9, 5, 3, 1 with the first increment no more than N/3. <P> Since one of the sets can be visualized as those items where the teeth of a comb touch, this is also known as a comb sort.  Using this analogy, the teeth get closer on each pass. <P> Invented by Donald Lewis Shell [Communications of the ACM, July, 1959, pages 30-32].</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.cs.ubc.ca/spider/harrison/Java/ShellSortAlgorithm.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://www.cs.ubc.ca/spider/harrison/Java/ShellSortAlgorithm.java'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.ubc.ca/spider/harrison/Java/ShellSortAlgorithm.java">(Java)</A>.
<H2>More information</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.ubc.ca/spider/harrison/Java/sorting-demo.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.ubc.ca/spider/harrison/Java/sorting-demo.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.ubc.ca/spider/harrison/Java/sorting-demo.html">demonstration</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 Tue Mar 30 10:35:45 1999.<BR>
HTML page formatted Wed Dec 22 09:35:09 1999.

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

</BODY>
</HTML>

⌨️ 快捷键说明

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