Monday, February 2, 2009

IT123A0809

A.) DEFINITION-Stack (data structure)- a stack is an abstract data type and data structure based on the principle of Last In First Out (LIFO). For example, in the real world situation,a compilation of books. It emphasizes the order or sequence method of objects before it goes to another one.
And according to Adam Drozdek that "stack is a linear data structure that can be accessed only at one of its ends for storing and retrieving data".[from Java Structures and algorithms in java]


B.) Illustration:











C.)REFERENCES:
http://en.wikipedia.org/wiki/Stack_(data_structure)
http://en.wikipedia.org/wiki/File:Data_stack.svg

No comments:

Post a Comment