📄 set.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>set</TITLE>
<META name="description"
content="Definition of set,
possibly with links to more information and implementations.">
<META name="keywords" content="set">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>set</H1>
<P>
(definition)
<P>
<strong>Definition:</strong>
An unordered collection of values where each value occurs at most once. A group of elements with three properties: (1) all elements belong to a <em>universe</em> (the collection of all potential elements), (2) either each element is a <em>member</em> of the set or it is not, and (3) the elements are unordered.
<P><strong>See also</strong>
<a href="bag.html" tppabs="http://hissa.nist.gov/dads/HTML/bag.html"><em>bag</em></a>, <a href="list.html" tppabs="http://hissa.nist.gov/dads/HTML/list.html"><em>list</em></a>.
<P><em>Note:
As an abstract data type, a set has a single query function, isMember(), which tells whether an element is in the set or not. A set has two mutator functions, addElement() and removeElement(). The creator function, newSet(), returns an empty set or the set for which isMember() always returns false.</em>
<P>Author: <a href="terms.html#authorPR" tppabs="http://hissa.nist.gov/dads/terms.html#authorPR">PR</a>
<H2>Implementation</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.sunysb.edu/%7Ealgorith/files/set-data-structures.shtml \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.sunysb.edu/%7Ealgorith/files/set-data-structures.shtml'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.cs.sunysb.edu/%7Ealgorith/files/set-data-structures.shtml">(C++ and Pascal)</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 Wed Mar 17 14:03:43 1999.<BR>
HTML page formatted Wed Dec 22 09:36:27 1999.
<P>
This page's URL is
<A href="set.html" tppabs="http://hissa.nist.gov/dads/HTML/set.html">http://hissa.nist.gov/dads/HTML/set.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -