Professional Documents
Culture Documents
1. Declaration of data.
2. Operation on data.
3. Encapsulation of data.
AD
PRIVATE
PUBLIC
APPLICATIO
N
PROGRAM ARRAY
LINKED
0 1 2 3 4
12 32 67 90 54
Here it is a array of size ‘4’ and contains ‘5’ element . the array size is
what the value of the total block-1. Because each array specification is
starting from ‘0’ , as shown in the picture
ABS[1]=32.
ABS[2]=67.
ABS[3]=90.
ABS[4]=54.
So this array is a size of ‘4’ , and can change only by the developer.
Linked list data structure is same as that of array , but the huge
different is that it contains a lot of link between each array or
elements. It contains a lists and the links between each link.
A B
12 4
3
Here it contains 3 lists A,B,C and the links between them are shown
as arrows. Each list is said to be a node. And the first column of the list
consist of the data , and the second column consist of the link. The
first node is said to be the “head” node , and the corresponding data
is known as “head data”. The other nodes can numbered using
1,2….as like array.
Head node
Data Link
using the abstracted data type we can create a different structure for
data type and link it with different functions.
Created by : Faizal
Date : 11/04/2010.
Email : faisalkt888@gmail.com