Data Structures Using C (Csit124) Lecture Notes: by Dr. Nancy Girdhar
Data Structures Using C (Csit124) Lecture Notes: by Dr. Nancy Girdhar
LECTURE NOTES
MODULE- I
INTRODUCTION TO DATA STRUCTURES
2
Before we Start….. ASET
• Email: ngirdhar@amity.edu
X Batch_Lab: v5t3ftw
Y Batch_Lab: tugcd3b
Theory_Lectures: dogxhmu
3
Course Content
Module 1: Introduction to Data Structures
Module 4: Trees
References:
• Robert L Kruse, “Data Structure and Program Design in C”, Prentice Hall (1991).
• Noel Kalicharan ,“Data Structure in C” ,Ist Edition Create space publisher, 2008.
• Mark Allen Weiss,“Data Structure and algorithm Analysis in C”,2nd Edition AddisonWesley,1996.
• E. Balagurusamy, “Problem Solving through C language”, TMH publication, Fourth Edition, 2008.
• R.S Salaria ,“Data Structures & Algorithms using C”,Khanna Publication,4th Edition,2009
• E.Horowitz and S.Sahni,”Fundamentals of Data Structures in C “,2nd Edition, Universities Press,2008
Introduction : Definitions
What is an Algorithm ?
What is an Algorithm ?
A program is an implementation of
an algorithm to be run on a specific
computer and operating system.
• Information is processed data which provides some meaning eg., Roll no:
Information 45
Record
Fixed Length Record: is
where the length of the field
for each record is same i.e,
same amount of space
assigned to each data items
Variable Length Record:
file records may contain
different lengths
Data Structures and Algorithm
Linear ordered data.
Linked list Not in consecutive memory
Representation or location
organization of data/
data structures
Arrays Linear ordered data in
consecutive memory location
2) Complex or compound
(i) Linear
e.g. arrays, stacks, queues, linked list etc.
(ii) Non-Linear
e.g. trees, graphs etc.
Classification Data Structures
Linked
i
Basic Operation on Data Structures
Basic Operations on Data Structures
Traversing
Searching
The data in the data
structures are processed
by certain operations:
Insertion
Deletion
Sorting
Merging
Operations on Data Structures
Accessing each record exactly once so that
Traversing certain items in the record may be processed.
Exactly once
• Traversing: Accessing each record _______________ so that certain items in the record
may be processed.
Searching
• ___________ Finding the location of a particular record with a given key value, or finding the
1 Information a address
2 Record b Collection of field values
3 File c Collection of records
4 Data d Family
5 Data item e mobile number
6 Group item f pincode
7 Elementary item g processed data
h Single unit of values
i Value
Let’s Revise
Fill positions marked in numbers to classify types of
data structures
Let’s Revise
Thank you !