?? stable.html
字號(hào):
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>stable</TITLE>
<META name="description"
content="Definition of stable,
possibly with links to more information and implementations.">
<META name="keywords" content="stable">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>stable</H1>
<P>
(definition)
<P>
<strong>Definition:</strong>
An algorithm where the relative order in the input of items with equal <a href="key.html" tppabs="http://hissa.nist.gov/dads/HTML/key.html"><em>keys</em></a> is always preserved in the output.
<P><em>Note:
Many different operations, such as <a href="sort.html" tppabs="http://hissa.nist.gov/dads/HTML/sort.html"><em>sort</em></a>, <a href="merge.html" tppabs="http://hissa.nist.gov/dads/HTML/merge.html"><em>merge</em></a>, and select the minimum using a <a href="priorityque.html" tppabs="http://hissa.nist.gov/dads/HTML/priorityque.html"><em>priority queue</em></a>, can be stable. <P> Suppose we need to sort the following people by age: Max, age 45, Brodsky (19), David (21), Carla (45), and Liang (19). A stable sort would yield Brodsky (19), Liang (19), David (21), Max (45), and Carla (45). Note that Brodsky still precedes Liang, and Max still precedes Carla. A sort which is not stable may put Liang before or after Brodsky and Carla before or after Max. A <a href="radixsort.html" tppabs="http://hissa.nist.gov/dads/HTML/radixsort.html"><em>radix sort</em></a> requires each phase to be stable. <P> From Algorithms and Theory of Computation Handbook, and is Copyright © 1999 by CRC Press LLC.</em>
<P>Author: <a href="terms.html#authorCRC-A" tppabs="http://hissa.nist.gov/dads/terms.html#authorCRC-A">CRC-A</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 08:59:25 1999.<BR>
HTML page formatted Wed Dec 22 09:36:34 1999.
<P>
This page's URL is
<A href="stable.html" tppabs="http://hissa.nist.gov/dads/HTML/stable.html">http://hissa.nist.gov/dads/HTML/stable.html</A>
</BODY>
</HTML>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -