abstracdtype.html
来自「数据结构词典(英文)」· HTML 代码 · 共 48 行
HTML
48 行
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>abstract data type</TITLE>
<META name="description"
content="Definition of abstract data type,
possibly with links to more information and implementations.">
<META name="keywords" content="abstract data type">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>abstract data type</H1>
<P>
(definition)
<P>
<strong>Definition:</strong>
A mathematically specified collection of data-storing entities with operations to create, access, change, etc. instances.
<P><strong>See also</strong>
<a href="dictionary.html" tppabs="http://hissa.nist.gov/dads/HTML/dictionary.html"><em>dictionary</em></a>, <a href="stack.html" tppabs="http://hissa.nist.gov/dads/HTML/stack.html"><em>stack</em></a>, <a href="queue.html" tppabs="http://hissa.nist.gov/dads/HTML/queue.html"><em>queue</em></a>.
<P><em>Note:
Since the collection is defined mathematically, rather than as an implementation in a computer language, we may reason about effects of the operations, relations to other abstract data types, whether a program implements the data type, etc. <P> One of the simplest abstract data types is the <a href="stack.html" tppabs="http://hissa.nist.gov/dads/HTML/stack.html"><em>stack</em></a>. The operations new(), push(v, S), top(S), and pop(S) may be defined with the following.<BR> new() returns a stack<BR> pop(push(v, S)) = S<BR> top(push(v, S)) = v<BR> where S is a stack and v is a value. Contrast this with the axiomatic definition of a <a href="dictionary.html" tppabs="http://hissa.nist.gov/dads/HTML/dictionary.html"><em>dictionary</em></a>. <P> From these one may define equality between stacks, define a pop function which returns the top value in a non-empty stack, etc. The predicate empty(S) may be added and defined with the following two axioms.<BR> empty(new())<BR> ! empty(push(v,S))<BR> <P> From Algorithms and Theory of Computation Handbook, page 4-2, 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>,<a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</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 Mon Dec 27 16:28:35 1999.<BR>
HTML page formatted Mon Dec 27 16:53:04 1999.
<P>
This page's URL is
<A href="abstracdtype.html" tppabs="http://hissa.nist.gov/dads/HTML/abstracdtype.html">http://hissa.nist.gov/dads/HTML/abstracdtype.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?