SlideShare a Scribd company logo
Data Structure : Unit 1
By AMAR JEET RAWAT
HoD, Dept. of IT
Alpine Institute of Management & Technology
Basic Terminology
• Datum : Singular form of data , refers to single
unit of values. e.i. 1,4,A,z,& etc.
• Data : Data are simply values or set of values.
It’s a collection of data items. i.e. 45741,BX6T
• Information : Processed data which provide
some meaning. e.i. Roll no : 45741.
• Knowledge : Collection of related information.
– Your name is Alok . Your roll no is 45741.
Basic Terminology
• Entity : Some object that has certain attributes
or properties which may be assigned values.
• Entity Set: Entities having similar attributes.
– All employees from an entity set.
Attribute Name Age Gender ID Number
Values Alok 23 Male 2401-12-A6
Basic Terminology
Data are organizes into the hierarchy of fields,
records and files which reflect some relationship
between attributes, entities and entity set.
• Field : is a single elementary unit of information
representing an attribute of an entity.
• Record : is the collection of field values of given
entity.
• File: is collection of records of entities in a set of
entity.
Example
Roll No Name Class Age Contact
1120100 Alok Kumar BCA-2 20 963852741
1120101 Tarun BCA-2 21 789541621
1120102 Pooja B.Sc(IT)-4 20 745241624
Attributes
field
Record
File
Records Types
• Fixed Length Records: All the records contain
the same data items with the same amount of
space assigned to each data item.
• Variable Length Records: These records
contain data items with different amount of
space assigned to each data item.
Study of Data Structure includes
• Logical or mathematical description of the
structure
• Implementation of the structure on a
computer
• Quantitative analysis of the structure to
determine the amount of memory(space)
needed to store the structure and time
required (time) to process the structure.
Data Structure
• Logical or mathematical model of a particular
organization of data is called data structure.
9
The Need for Data Structures
Data structures organize data
 more efficient programs.
More powerful computers  more complex
applications.
More complex applications demand more
calculations.
Complex computing tasks are unlike our
everyday experience.
10
Efficiency
A solution is said to be efficient if it solves
the problem within its resource constraints.
– Space
– Time
• The cost of a solution is the amount of
resources that the solution consumes.
11
Data Structure Philosophy
Each data structure has costs and benefits.
Rarely is one data structure better than
another in all situations.
A data structure requires:
– space for each data item it stores,
– time to perform each basic operation,
– programming effort.
12
Data Structure Philosophy (cont)
Each problem has constraints on available
space and time.
Only after a careful analysis of problem
characteristics can we know the best data
structure for the task.
Bank example:
– Start account: a few minutes
– Transactions: a few seconds
– Close account: overnight
13
Logical vs. Physical Form
Data items have both a logical and a
physical form.
Logical form: definition of the data item
within an ADT.
– Ex: Integers in mathematical sense: +, -
Physical form: implementation of the data
item within a data structure.
– Ex: 16/32 bit integers, overflow.
Data Structure Types
Linear Data Structure
• A data structure is said to be linear if its
elements form a sequence or a linear list.
– Array
– Link List
– Stack
– Queue
Array
• Collection of similar finite elements.
– Collection of integers
– Collection of images.
• Simplest type of data structure.
• Types of Arrays
– Singular or simple Array.
– Multidimensional Array
Data structure unitfirst part1
Data Structure Operations
• Traversal : Visit every part of the data structure
• Search : Traversal through the data structure for a given
element
• Insertion : Adding new elements to the data structure
• Deletion : Removing an element from the data structure.
• Sorting : Rearranging the elements in some type of
order(e.g Increasing or Decreasing)
• Merging : Combining two similar data structures into one
Stack
• Stack is an ordered list of objects.
• Stack is based on LIFO (Last in first out)
Queue
• It is an ordered list of elements n , such that
n>0 in which all deletions are made at one
end called the front end and all insertions
at the other end called the rear end .
• Theoperational semantic of queue is FIFO i.e.
first in first out
Example
Link List
• Linked List is a linear data structure which
consists of group of nodes in a sequence
which is divided in two parts.
• Each node consists of its own data and the
address of the next node and forms a chain.
Linked Lists are used to create trees and
graphs.
Non-Linear Data Structure
• The Data structure is said to be Non-Linear
Data Structures if it's elements do not form a
sequence or a linear series but form a
hierarchical format.
– Graphs
– Tree
Graph
• Graph is an ordered pair G=(V,E), where
– V: set of vertices ,nodes , points
– E: set of edges , arcs, lines
Link List
Data structure unitfirst part1

More Related Content

What's hot (19)

PPTX
Types of datastructures
Madishetty Prathibha
 
PPT
Data structures and Alogarithims
Victor Palmar
 
PPTX
Data structures Lecture no. 2
AzharIqbal710687
 
PPTX
Data structures Lecture no.3
AzharIqbal710687
 
PPTX
Data structures lectures no 1
AzharIqbal710687
 
PPTX
Data Structure - Elementary Data Organization
Uma mohan
 
PPT
Elementary data organisation
Muzamil Hussain
 
PPTX
Introduction of data structures
Soni Gupta
 
PPT
Ds it203-11-l01
Chyon Ju
 
PPTX
Data structure
priyanka belekar
 
PPT
Lect 1-2
Zaheer Aghani
 
PPT
Basic terminologies
Rajendran
 
PPTX
Over view of data structures
NagajothiN1
 
PPT
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
PDF
Data structure
Prof. Dr. K. Adisesha
 
PPT
Lists
Ghaffar Khan
 
PPT
Basics of data structure
Rajendran
 
PPTX
Data Structures Using Object Oriented Programming
mallikamt
 
PPTX
Unit 1 Basic concepts to DS
LavanyaJ28
 
Types of datastructures
Madishetty Prathibha
 
Data structures and Alogarithims
Victor Palmar
 
Data structures Lecture no. 2
AzharIqbal710687
 
Data structures Lecture no.3
AzharIqbal710687
 
Data structures lectures no 1
AzharIqbal710687
 
Data Structure - Elementary Data Organization
Uma mohan
 
Elementary data organisation
Muzamil Hussain
 
Introduction of data structures
Soni Gupta
 
Ds it203-11-l01
Chyon Ju
 
Data structure
priyanka belekar
 
Lect 1-2
Zaheer Aghani
 
Basic terminologies
Rajendran
 
Over view of data structures
NagajothiN1
 
Lecture 1 data structures and algorithms
Aakash deep Singhal
 
Data structure
Prof. Dr. K. Adisesha
 
Basics of data structure
Rajendran
 
Data Structures Using Object Oriented Programming
mallikamt
 
Unit 1 Basic concepts to DS
LavanyaJ28
 

Viewers also liked (16)

PPTX
Entity relationship modeling
Neelesh Shukla
 
PPT
Data mining 1
Krunal Doshi
 
PPT
datamodel_vector
Riya Gupta
 
PPTX
Tree - Data Structure
Ashim Lamichhane
 
ODP
Knowledgebase vs Database
CJ Jenkins
 
PPT
Data structures
Manaswi Sharma
 
PPTX
Dbms mca-section a
Vaibhav Kathuria
 
PPT
Geometric modeling111431635 geometric-modeling-glad (1)
manojg1990
 
PPT
Files Vs DataBase
Dr. C.V. Suresh Babu
 
PPTX
Database - Entity Relationship Diagram (ERD)
Mudasir Qazi
 
PPT
Dbms models
devgocool
 
PPTX
How to Draw an Effective ER diagram
Tech_MX
 
PPT
Introduction to data structures and Algorithm
Dhaval Kaneria
 
PPT
Different data models
madhusha udayangani
 
PPT
Data Structure: TREES
TABISH HAMID
 
PPT
Entity relationship diagram (erd)
tameemyousaf
 
Entity relationship modeling
Neelesh Shukla
 
Data mining 1
Krunal Doshi
 
datamodel_vector
Riya Gupta
 
Tree - Data Structure
Ashim Lamichhane
 
Knowledgebase vs Database
CJ Jenkins
 
Data structures
Manaswi Sharma
 
Dbms mca-section a
Vaibhav Kathuria
 
Geometric modeling111431635 geometric-modeling-glad (1)
manojg1990
 
Files Vs DataBase
Dr. C.V. Suresh Babu
 
Database - Entity Relationship Diagram (ERD)
Mudasir Qazi
 
Dbms models
devgocool
 
How to Draw an Effective ER diagram
Tech_MX
 
Introduction to data structures and Algorithm
Dhaval Kaneria
 
Different data models
madhusha udayangani
 
Data Structure: TREES
TABISH HAMID
 
Entity relationship diagram (erd)
tameemyousaf
 
Ad

Similar to Data structure unitfirst part1 (20)

PDF
Data structures introduction
maamir farooq
 
PPTX
DSA Ch1(Introduction) [Recovered].pptx
HOWoTO79
 
PDF
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
Sowmya Jyothi
 
PPT
Ch1
OmarFarukh3
 
PPT
Lect 1-2 Zaheer Abbas
Information Technology Center
 
PPTX
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
PPTX
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
PPT
The Stack in Data structure and algorithm
SourajitMaity1
 
PDF
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
hslinaaltosh
 
PPTX
DS Module 1.pptx
SaralaT3
 
PPTX
UNIT 3.pptx-Data Structures definition with examples
Papitha7
 
PDF
2. Introduction to Data Structure.pdf
SulabhPawaia
 
PPTX
DataStructureccvdgddfffdesddsssdssPpt.pptx
bgmi52926
 
PDF
INTRODUCTION TO DATA STRUCTURES AND ALGORITHM
workspaceabhishekmah
 
PDF
INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS
workspaceabhishekmah
 
PPTX
Unit-1 DataStructure Intro.pptx
ajajkhan16
 
PPTX
DS Module 1.pptx
sarala9
 
PPTX
INTRODUCTION TO DATA STRUCTURE & ABSTRACT DATA TYPE.pptx
talhaarif554
 
PPTX
DataStructurePpt.pptx
DCABCA
 
PDF
Data Structure Ppt for our engineering college industrial training.
AnumaiAshish
 
Data structures introduction
maamir farooq
 
DSA Ch1(Introduction) [Recovered].pptx
HOWoTO79
 
BCA DATA STRUCTURES INTRODUCTION AND OVERVIEW SOWMYA JYOTHI
Sowmya Jyothi
 
Lect 1-2 Zaheer Abbas
Information Technology Center
 
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
Chapter 1 _edited.pptx.software engineering
kuruabeje7
 
The Stack in Data structure and algorithm
SourajitMaity1
 
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
hslinaaltosh
 
DS Module 1.pptx
SaralaT3
 
UNIT 3.pptx-Data Structures definition with examples
Papitha7
 
2. Introduction to Data Structure.pdf
SulabhPawaia
 
DataStructureccvdgddfffdesddsssdssPpt.pptx
bgmi52926
 
INTRODUCTION TO DATA STRUCTURES AND ALGORITHM
workspaceabhishekmah
 
INTRODUCTION TO DATA STRUCTURES AND ALGORITHMS
workspaceabhishekmah
 
Unit-1 DataStructure Intro.pptx
ajajkhan16
 
DS Module 1.pptx
sarala9
 
INTRODUCTION TO DATA STRUCTURE & ABSTRACT DATA TYPE.pptx
talhaarif554
 
DataStructurePpt.pptx
DCABCA
 
Data Structure Ppt for our engineering college industrial training.
AnumaiAshish
 
Ad

Recently uploaded (20)

PPTX
PYLORIC STENOSIS: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
THE HUMAN INTEGUMENTARY SYSTEM#MLT#BCRAPC.pptx
Subham Panja
 
PPTX
Folding Off Hours in Gantt View in Odoo 18.2
Celine George
 
PPTX
PPT on the Development of Education in the Victorian England
Beena E S
 
PPTX
ENGLISH LEARNING ACTIVITY SHE W5Q1.pptxY
CHERIEANNAPRILSULIT1
 
PDF
Comprehensive Guide to Writing Effective Literature Reviews for Academic Publ...
AJAYI SAMUEL
 
PPTX
Blanket Order in Odoo 17 Purchase App - Odoo Slides
Celine George
 
PPTX
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
PDF
Ziehl-Neelsen Stain: Principle, Procedu.
PRASHANT YADAV
 
PPTX
nutriquiz grade 4.pptx...............................................
ferdinandsanbuenaven
 
PDF
water conservation .pdf by Nandni Kumari XI C
Directorate of Education Delhi
 
PPTX
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPTX
How to Configure Storno Accounting in Odoo 18 Accounting
Celine George
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PPTX
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
PPTX
Modern analytical techniques used to characterize organic compounds. Birbhum ...
AyanHossain
 
PPTX
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
PPTX
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 
PYLORIC STENOSIS: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
THE HUMAN INTEGUMENTARY SYSTEM#MLT#BCRAPC.pptx
Subham Panja
 
Folding Off Hours in Gantt View in Odoo 18.2
Celine George
 
PPT on the Development of Education in the Victorian England
Beena E S
 
ENGLISH LEARNING ACTIVITY SHE W5Q1.pptxY
CHERIEANNAPRILSULIT1
 
Comprehensive Guide to Writing Effective Literature Reviews for Academic Publ...
AJAYI SAMUEL
 
Blanket Order in Odoo 17 Purchase App - Odoo Slides
Celine George
 
ROLE OF ANTIOXIDANT IN EYE HEALTH MANAGEMENT.pptx
Subham Panja
 
Ziehl-Neelsen Stain: Principle, Procedu.
PRASHANT YADAV
 
nutriquiz grade 4.pptx...............................................
ferdinandsanbuenaven
 
water conservation .pdf by Nandni Kumari XI C
Directorate of Education Delhi
 
Nutri-QUIZ-Bee-Elementary.pptx...................
ferdinandsanbuenaven
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
How to Configure Storno Accounting in Odoo 18 Accounting
Celine George
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
SCHOOL-BASED SEXUAL HARASSMENT PREVENTION AND RESPONSE WORKSHOP
komlalokoe
 
Modern analytical techniques used to characterize organic compounds. Birbhum ...
AyanHossain
 
How to Define Translation to Custom Module And Add a new language in Odoo 18
Celine George
 
CLEFT LIP AND PALATE: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Optimizing Cancer Screening With MCED Technologies: From Science to Practical...
i3 Health
 

Data structure unitfirst part1

  • 1. Data Structure : Unit 1 By AMAR JEET RAWAT HoD, Dept. of IT Alpine Institute of Management & Technology
  • 2. Basic Terminology • Datum : Singular form of data , refers to single unit of values. e.i. 1,4,A,z,& etc. • Data : Data are simply values or set of values. It’s a collection of data items. i.e. 45741,BX6T • Information : Processed data which provide some meaning. e.i. Roll no : 45741. • Knowledge : Collection of related information. – Your name is Alok . Your roll no is 45741.
  • 3. Basic Terminology • Entity : Some object that has certain attributes or properties which may be assigned values. • Entity Set: Entities having similar attributes. – All employees from an entity set. Attribute Name Age Gender ID Number Values Alok 23 Male 2401-12-A6
  • 4. Basic Terminology Data are organizes into the hierarchy of fields, records and files which reflect some relationship between attributes, entities and entity set. • Field : is a single elementary unit of information representing an attribute of an entity. • Record : is the collection of field values of given entity. • File: is collection of records of entities in a set of entity.
  • 5. Example Roll No Name Class Age Contact 1120100 Alok Kumar BCA-2 20 963852741 1120101 Tarun BCA-2 21 789541621 1120102 Pooja B.Sc(IT)-4 20 745241624 Attributes field Record File
  • 6. Records Types • Fixed Length Records: All the records contain the same data items with the same amount of space assigned to each data item. • Variable Length Records: These records contain data items with different amount of space assigned to each data item.
  • 7. Study of Data Structure includes • Logical or mathematical description of the structure • Implementation of the structure on a computer • Quantitative analysis of the structure to determine the amount of memory(space) needed to store the structure and time required (time) to process the structure.
  • 8. Data Structure • Logical or mathematical model of a particular organization of data is called data structure.
  • 9. 9 The Need for Data Structures Data structures organize data  more efficient programs. More powerful computers  more complex applications. More complex applications demand more calculations. Complex computing tasks are unlike our everyday experience.
  • 10. 10 Efficiency A solution is said to be efficient if it solves the problem within its resource constraints. – Space – Time • The cost of a solution is the amount of resources that the solution consumes.
  • 11. 11 Data Structure Philosophy Each data structure has costs and benefits. Rarely is one data structure better than another in all situations. A data structure requires: – space for each data item it stores, – time to perform each basic operation, – programming effort.
  • 12. 12 Data Structure Philosophy (cont) Each problem has constraints on available space and time. Only after a careful analysis of problem characteristics can we know the best data structure for the task. Bank example: – Start account: a few minutes – Transactions: a few seconds – Close account: overnight
  • 13. 13 Logical vs. Physical Form Data items have both a logical and a physical form. Logical form: definition of the data item within an ADT. – Ex: Integers in mathematical sense: +, - Physical form: implementation of the data item within a data structure. – Ex: 16/32 bit integers, overflow.
  • 15. Linear Data Structure • A data structure is said to be linear if its elements form a sequence or a linear list. – Array – Link List – Stack – Queue
  • 16. Array • Collection of similar finite elements. – Collection of integers – Collection of images. • Simplest type of data structure. • Types of Arrays – Singular or simple Array. – Multidimensional Array
  • 18. Data Structure Operations • Traversal : Visit every part of the data structure • Search : Traversal through the data structure for a given element • Insertion : Adding new elements to the data structure • Deletion : Removing an element from the data structure. • Sorting : Rearranging the elements in some type of order(e.g Increasing or Decreasing) • Merging : Combining two similar data structures into one
  • 19. Stack • Stack is an ordered list of objects. • Stack is based on LIFO (Last in first out)
  • 20. Queue • It is an ordered list of elements n , such that n>0 in which all deletions are made at one end called the front end and all insertions at the other end called the rear end . • Theoperational semantic of queue is FIFO i.e. first in first out
  • 22. Link List • Linked List is a linear data structure which consists of group of nodes in a sequence which is divided in two parts. • Each node consists of its own data and the address of the next node and forms a chain. Linked Lists are used to create trees and graphs.
  • 23. Non-Linear Data Structure • The Data structure is said to be Non-Linear Data Structures if it's elements do not form a sequence or a linear series but form a hierarchical format. – Graphs – Tree
  • 24. Graph • Graph is an ordered pair G=(V,E), where – V: set of vertices ,nodes , points – E: set of edges , arcs, lines