Intraduction To DS
Intraduction To DS
So a user only needs to know what a data type can do, but not how it will be
implemented. Think of ADT as a black box which hides the inner structure
and design of the data type.
List ADT
List ADT The data is generally stored in key sequence in a list which has a
head structure consisting of count, pointers and address of compare
function needed to compare the data in the list.
The data node contains the pointer to a data structure and a self-referential
pointer which points to the next node in the list.
The List ADT Functions is given below:
A list contains elements of the same type arranged in sequential order and following
operations can be performed on the list.