📄 stack.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>stack</TITLE>
<META name="description"
content="Definition of stack,
possibly with links to more information and implementations.">
<META name="keywords" content="stack">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H1>stack</H1>
<P>
(data structure)
<P>
<strong>Definition:</strong>
A set of items in which only the most recently added item may be removed. The latest added item is at the top. Basic operations are push, pop, and top.
<P><strong>See also</strong>
<a href="boundedstack.html" tppabs="http://hissa.nist.gov/dads/HTML/boundedstack.html"><em>bounded stack</em></a>, <a href="lifo.html" tppabs="http://hissa.nist.gov/dads/HTML/lifo.html"><em>LIFO</em></a>, <a href="queue.html" tppabs="http://hissa.nist.gov/dads/HTML/queue.html"><em>queue</em></a>.
<P><em>Note:
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. </em>
<P>Author: <a href="terms.html#authorPEB" tppabs="http://hissa.nist.gov/dads/terms.html#authorPEB">PEB</a>
<H2>More information</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ee.uwa.edu.au/%7Eplsd210/ds/stacks.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/stacks.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ee.uwa.edu.au/%7Eplsd210/ds/stacks.html">illustrations and code</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 Thu Jul 1 13:58:07 1999.<BR>
HTML page formatted Wed Dec 22 09:36:34 1999.
<P>
This page's URL is
<A href="stack.html" tppabs="http://hissa.nist.gov/dads/HTML/stack.html">http://hissa.nist.gov/dads/HTML/stack.html</A>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -