0
4.1kviews
Explain ADT in detail.
written 8.2 years ago by | • modified 8.2 years ago |
Mumbai University > COMPS > Sem 3 > Data Structures
Marks: 5 M
Year: Dec 2013
ADD COMMENT
EDIT
1 Answer
written 8.2 years ago by | • modified 8.2 years ago |
Mumbai University > COMPS > Sem 3 > Data Structures
Marks: 5 M
Year: Dec 2013
written 8.2 years ago by |
Common ADTs are stacks, queues, binary trees, etc.
For example, a stack uses the LIFO mechanism for storing and removing the data. The last element that is inserted is the first element to be removed from the stack. Common operations are pushing an element on top of the stack, popping the last element inserted, finding/seeking the current top of the stack, etc. These functions or operations can be defined first and then these operations can be used whenever required in the program.