What does abstract data type means?

Answer Posted / sanjeev kumar

In computer science, an abstract data type (ADT) is a
mathematical model for a certain class of data structures
that have similar behavior; or for certain data types of
one or more programming languages that have similar
semantics. An abstract data type is defined indirectly,
only by the operations that may be performed on it and by
mathematical constraints on the effects (and possibly cost)
of those operations.[1]

For example, an abstract stack data structure could be
defined by three operations: push, that inserts some data
item onto the structure, pop, that extracts an item from it
(with the constraint that each pop always returns the most
recently pushed item that has not been popped yet), and
peek, that allows data on top of the structure to be
examined without removal. When analyzing the efficiency of
algorithms that use stacks, one may also specify that all
operations take the same time no matter how many items have
been pushed into the stack, and that the stack uses a
constant amount of storage for each element.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are control structures?

533


What does the dummy header in linked list contain?

687


Describe the height term in a tree.

546


Can you store different types in an array?

469


How does linkedhashset work internally?

492






Why do we use data structures?

472


List the applications of queues?

491


Explain Stack

570


What are the different types of sorting in data structure?

512


How to sort an Array?

585


What is sorting with example?

467


What is faster array or arraylist?

465


Write a program to sum values of given array.

554


What are the categories of avl rotations?

545


Why is data structure important?

530