DS Unit I PPT 1
DS Unit I PPT 1
BCA III
Subject Teacher
Seema Pathak
Organizing or structuring data is vital to the
design and implementation of efficient
algorithms and program development. Any
discipline in science and engineering that
requires efficient problem solving using
computers, uses the appropriate data
structures during program development. The
study of data structure is an essential part of
virtually every UG and PG program in
computer science.
1. “Data Structures” , Lipschutz, Schaum’s Outline Series,
Tata Mcgraw-hill Education (India) Pvt. Ltd .
2.“Data Structures Using C and C++”, . Aaron
M.Tenenbaum, PHI Learning Private Limited
3. “Fundamentals of Data Structures”, Horowitz and Sahani,
Galgotia Publications Pvt Ltd
4. “Data Structure Using C”, A.K. Sharma , Pearson
Education
5. “Data structure using C”, E Balaguruswamy, Mcgraw Hill .
6. “Data Structures and Program Design in C”, R. Kruse,
Pearson Education
7. “Data Structures with C”, Reema Thereja, Oxford Press.
Introduction, Basic terminology, Elementary
data organization, Data Structure, Data
structure operation, Algorithms, complexity,
time-space tradeoff, Mathematical notations
and functions, Algorithmic Notation
Data: Data are value or collection of values.
Data are simply collection of facts and
figures.
Data item: A data item refers to a single unit of
value. Data item may be-
Elementary data item: are those that can not be
divided into parts. Ex. ID, age, gender
Composite or group data item: are those that
can be divided into parts. Ex. Name,
address, DOB
Entity: An entity is something that has certain
attributes or properties which may be assigned
some values.
Ex. attribute name Age Gender
value Naresh 25 M
Heena 31 F
Entity Set: An entity set is a set of similar
entities. Ex. Student, Employee
Data can be simply organized in the form of
fields, records and files.
Primitive DS Non-Primitive DS
data elements.
PUSH POP
Queue are first in first out type of data structure
(i.e. FIFO)
In a queue new elements are added to the queue
from one end called REAR end and the element
are always removed from other end called the
FRONT end.
The bellow show figure how the operations take
place12on a stack:
20 30 40 50
front rear
A lists (Linear linked list) can be defined as a
collection of variable number of data items.
Lists are the most commonly used non-
primitive data structures.
An element of list must contain at least two
fields, one for storing data or information and
other for storing address of next element.
As you know for storing address we have a
special data structure of list the address must
be pointer type.
Technically each such element is referred to as a node,
therefore a list can be defined as a collection of nodes as
show bellow:
Head
root
A
B C
D E F G
Graph is a mathematical non-linear data
structure capable of representing many kind of
physical structures.
It has found application in Geography,
Chemistry and Engineering sciences.
Definition: A graph G(V,E) is a set of vertices
V and a set of edges E.