In computer science, a stack is a last in, first out (LIFO) abstract data type and data structure. A stack can have any abstract data type as an element, but is characterized by only two fundamental operations: push and pop. The push operation adds to the top of the list, hiding any items already on the stack, or initializing the stack if it is empty. The pop operation removes an item from the top of the list, and returns this value to the caller...
more
Read article at Wikipedia
Stack
top ↑
Similar topics in Freebase
-
Self-balancing binary search tree
In computer science, a self-balancing (or height-balanced) binary search tree is any binary search tree data structure that automatically keeps its height (number of levels below the root) small in the face of arbitrary item insertions and deletions. These structures provide efficient... -
Binary search tree
In computer science, a binary search tree (BST) is a node based binary tree data structure which has the following properties: From the above properties it naturally follows that: Generally, the information represented by each node is a record rather than a single data element. However, for... -
Priority queue
A priority queue is an abstract data type in computer programming that supports the following three operations: For an analogy, see the Implementation section below. One can imagine a priority queue as a modified queue, but when one would get the next element off the queue, the highest-priority one... -
Graph
In computer science, a graph is an abstract data structure that is meant to implement the graph concept from mathematics. A graph data structure consists mainly of a finite (and possibly mutable) set of ordered pairs, called edges or arcs, of certain entities called nodes or vertices. As in...