Data Structures
Data Structures
⚫ Fixed Length
⚫ Variable Length
Study of Data Structure includes the following
three steps
⚫ Ex: in C
2. Searching: Finding the location of the record with a given key value.
6. Merging: Combing the records in two different sorted files into a single
sorted file.
20
DATA STRUCTURES
⚫ In real life applications, various kind of data other than the
primitive data are involved.
⚫ Manipulation of real-life data (user data) requires the following
essential tasks:
⚫ a) Storage representation of user data: User data should be
stored in such a way that computer can understand
⚫ b) Retrieval of stored data: Data stored in a computer should be
retrieved in such a way that user can understand.
⚫ c) Transformation of user data: Various operations which
require to be performed on user data so that it can be transformed
from one form to another.
CLASSIFICATION OF DATA
STRUCTURES
Types of Data Structure
Choice of Data Structures
The choice of data structures depends on two considerations:
1. It must be rich enough in structure to mirror the actual relationships of data in the
real world.
2. The structure should be simple enough that one can effectively process data when
necessary.
10 1
20 0
30
40 2 3
50 0 0
60 7
70 4 5 6
80 0 0 0 0
24
ARRAYS
⚫ An array is a collection of homogeneous
type of data elements.