Wednesday, 13 February 2013

Two types of Data Structures to store data ?



Ther are thow types of data structures to store data. They are,

1) Linear
2) Non-linear

Linear DataStructure: In linear data structure, data items are organized in a sequential or in linear list order. There are two ways to represent linear structure in memory. They are,

1) Arrays
2) Linked list

In an arrays structure the data items are represented by contineous memory locations. In linked list structure the data items are represented using pointers or links.

Non-linear Data Structure: Data items are oraganized in non-linear order. There are two ways to represent non-linear structure in memory. They are,

1) Trees
2) Graphs

0 comments:

Post a Comment

Powered by Blogger.