Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What does abstract data type means?

Answer Posted / santhosh

C++ data structures is another course am learning this
semester. This course is a pre-requisite for all
non-Computer Science students. I have already learnt and
implemented all the C++ data structures in a private course
during my undergraduate studies, but not with the same
understanding am learning them these days. Frankly I dont
know much about data structures during my work experience.
So I consider this course as an opportunity to get my hands
on C++ again and implement various datastructures.

First thing I got to know is.. the difference between the
abstract data types (ADT) and datastructures. Earlier I
thought they are same.

Before starting that, we need to be clear about the logical
and implementation level of data. Let us take an example of
a simple built-in data type integer. At the logic level, we
application programmers know only about what are the
operations an integer data type can perform, ie., addition,
subtraction etc., But we are no way aware of how the data
type is actually implemented. At the implementation level,
it is about how the data type integer is implemented in the
machine level, ie., it could either of binary-coded decimal,
unsigned binary, sign-and-magnitude binary, One's complement
and Two's complement notation.

Now.. for the understanding the ADT and data structure, we
need to assume a higher level abstraction where we have the
built-in types at the implementation level.

To put it simple, ADT is a logical description and data
structure is concrete. ADT is the logical picture of the
data and the operations to manipulate the component elements
of the data. Data structure is the actual representation of
the data during the implementation and the algorithms to
manipulate the data elements. ADT is in the logical level
and data structure is in the implementation level.

As you can see, ADT is implementation independent. For
example, it only describes what a data type List consists
(data) and what are the operations it can perform, but it
has no information about how the List is actually implemented.

Whereas data structure is implementation dependent, as in
the same example, it is about how the List implemented ie.,
using array or linked list. Ultimately, data structure is
how we implement the data in an abstract data type.

Is This Answer Correct ?    112 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a linear and non linear data structure.

998


How do you find the length of an arraylist?

918


How to find the duplicate in an array?

952


What is array and string?

963


How can you add an item to the beginning of the list?

1008


Briefly explain recursive algorithm?

1028


Which is more efficient merge sort vs quicksort?

852


What are the major data structures used in the network data model?

1059


What are different types of algorithms?

891


Write program for Quick sort ?

1101


Which is faster hashmap or hashtable?

920


What are the disadvantages of linked list?

902


Which sorting is best for large data?

928


What are linked lists good for?

859


What is push and pop in stack?

840