SlideShare a Scribd company logo
2
Most read
4
Most read
10
Most read
Introduction to Data structure
Definition
TO DESIGN AND IMPLEMENTATION OF ALGORITHMS AND FOR
DEVELOPMENT OF PROGRAM, ORGANIZATION OF DATA IS
IMPORTANT
LOGICAL OR MATHEMATICAL MODEL OF A PARTICULAR
ORGANIZATION OF DATA IS CALLED DATA STRUCTURE.
ALGORITHMS + DATA STRUCTURE=PROGRAMS
Data Structure Are Classified Into
Two Types
1. Primitive Data Structure
2. Non-primitive Data Structure
DATA STRUCTURE
Primitive Data Type
Non Primitive Data
Type
Integer Float Character Pointer
Non Primitive Data Type
Array Stack
Non Primitive Data TypeNon Primitive Data Type
Queue TreeGraph
Link
List
ARRAY
LINKED LIST
TREE
QUEUE STACK
Types of Data Structure
 Primitive data structures are those which are predefined
way of storing data by the system.
 The set of operations that can be performed on these
data are also predefined.
 Primitive data structures are character, integer, float,
pointer.
Primitive Data Type
Non Primitive Data Type
The data types that are derived from primary data types are
known as non-primitive data types.
These data types are used to store group of values.
The non-primitive data types are
 Arrays
 Structure
 Linked list
 Stacks
 Queue
Array
ARRAY is a set of finite collection of homogeneous or same types of data items.
Which means that we can store only one type of data in the array.
We can declare array as : int ARR[14]
Int specifies the type of data we want to store in array.
ARR is the name of ARRAY.
The number inside the square bracket denotes the number of items or elements
stored in ARRAY. It is called as the length or size of ARRAY.
Linked List
A link list or one way list is a linear collection of data elements,
called nodes, where the linear order is given by means of pointer.
It is divided into two parts: First part contains the information of
element and second part contains the address of the next node.
START
Information
Part
Next pointer field
Stack
 A stack is a linear structure in which items are added or removed only at one end.
 It is also known as “LAST IN FIRST OUT” [LIFO] lists.
 Stack is also known as “PILES” and “ PUSH DOWN ” lists.
 OPERATION ASSOCIATED WITH STACK
1. PUSH: It is used to insert an element into stack.
2. POP: It is used to remove or delete an element from a stack.
Representation of Stack
TOP FFF
DDD
CCC
BBB
AAA
XXX YYY ZZZ
1 2 3 4 65 87
1
TOP
Queue
A queue is also called as FIRST IN FIRST OUT [FIFO] system.
It is a linear list in which deletion can take place only at one end of the list i.e.
“FRONT” of the list
In queue Insertion can take place only at other end of the list. i.e. “REAR”
Figure : Array Representation Of Queue
AAA BBB CCC …………DDD
1 32 4 5 N
Front=1
Rear = 4
Non-Linear Data Structure
1. TREE : It is a non linear is mainly used to represent data
containing a hierarchical relationship between elements.
2. GRAPH : Data sometimes contains relationship between pair of elements
which is not hierarchical in nature is called a graph.
A
B C
D
D
D D
D

More Related Content

PDF
Data structure ppt
PPT
Unit 1 introduction to data structure
PPT
Abstract data types
PPTX
Queue ppt
PDF
Introduction to data structure
PPT
Introduction to structured query language (sql)
PPTX
Linked List
PPTX
Routing protocols for ad hoc wireless networks
Data structure ppt
Unit 1 introduction to data structure
Abstract data types
Queue ppt
Introduction to data structure
Introduction to structured query language (sql)
Linked List
Routing protocols for ad hoc wireless networks

What's hot (20)

PPTX
Data structure & its types
PPTX
Data structure array
PPT
Linked list
PPTX
Doubly Linked List
PPTX
Data structure and its types
PPTX
Linear and Binary search
PPTX
Linked list
PDF
DS UNIT 1.pdf
PPTX
linked list in Data Structure, Simple and Easy Tutorial
PPTX
Trees in data structures
PPTX
Introduction to data structure ppt
PPTX
Queue Implementation Using Array & Linked List
PPT
Searching in c language
PPTX
Queue in Data Structure
PPT
Queue data structure
PPTX
Data structure and its types.
PPTX
Linked list
PPTX
Trees (data structure)
PPT
BINARY TREE REPRESENTATION.ppt
PPTX
Stack and Queue
Data structure & its types
Data structure array
Linked list
Doubly Linked List
Data structure and its types
Linear and Binary search
Linked list
DS UNIT 1.pdf
linked list in Data Structure, Simple and Easy Tutorial
Trees in data structures
Introduction to data structure ppt
Queue Implementation Using Array & Linked List
Searching in c language
Queue in Data Structure
Queue data structure
Data structure and its types.
Linked list
Trees (data structure)
BINARY TREE REPRESENTATION.ppt
Stack and Queue
Ad

Similar to Introduction to data structure (20)

PPTX
introductiontodatastructure2-191017090115.pptx
PPTX
Introduction to data structure
DOC
Data Structure
PPTX
DATA STRUCTURE IN C LANGUAGE
PPTX
DS2-CLASSIFICATIONnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn.pptx
PPTX
DS2-CLASSIFICATIONnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn.pptx
PPTX
DS2-CLASSIFICATION11111111111111111111111111111111.pptx
PPT
Intro ds
PDF
UNITIII LDS.pdf
PPT
DS_PPT.ppt
PPTX
Classification of datastructure.ppt
PDF
Introduction to Data Structure
PPTX
DS Module 1.pptx
PDF
Datastructureitstypes
PDF
Data structures introduction
PPT
data structure programing language in c.ppt
PPTX
DS Module 1.pptx
PPT
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
PPTX
Data Structures and algoithms Unit - 1.pptx
PPT
data structure details of types and .ppt
introductiontodatastructure2-191017090115.pptx
Introduction to data structure
Data Structure
DATA STRUCTURE IN C LANGUAGE
DS2-CLASSIFICATIONnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn.pptx
DS2-CLASSIFICATIONnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn.pptx
DS2-CLASSIFICATION11111111111111111111111111111111.pptx
Intro ds
UNITIII LDS.pdf
DS_PPT.ppt
Classification of datastructure.ppt
Introduction to Data Structure
DS Module 1.pptx
Datastructureitstypes
Data structures introduction
data structure programing language in c.ppt
DS Module 1.pptx
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
Data Structures and algoithms Unit - 1.pptx
data structure details of types and .ppt
Ad

Recently uploaded (20)

PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Institutional Correction lecture only . . .
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Pharma ospi slides which help in ospi learning
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Insiders guide to clinical Medicine.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Basic Mud Logging Guide for educational purpose
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Institutional Correction lecture only . . .
VCE English Exam - Section C Student Revision Booklet
Pharma ospi slides which help in ospi learning
Anesthesia in Laparoscopic Surgery in India
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
O7-L3 Supply Chain Operations - ICLT Program
Week 4 Term 3 Study Techniques revisited.pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Insiders guide to clinical Medicine.pdf
Classroom Observation Tools for Teachers
Renaissance Architecture: A Journey from Faith to Humanism
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Final Presentation General Medicine 03-08-2024.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Microbial disease of the cardiovascular and lymphatic systems
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Basic Mud Logging Guide for educational purpose

Introduction to data structure

  • 2. Definition TO DESIGN AND IMPLEMENTATION OF ALGORITHMS AND FOR DEVELOPMENT OF PROGRAM, ORGANIZATION OF DATA IS IMPORTANT LOGICAL OR MATHEMATICAL MODEL OF A PARTICULAR ORGANIZATION OF DATA IS CALLED DATA STRUCTURE. ALGORITHMS + DATA STRUCTURE=PROGRAMS
  • 3. Data Structure Are Classified Into Two Types 1. Primitive Data Structure 2. Non-primitive Data Structure
  • 4. DATA STRUCTURE Primitive Data Type Non Primitive Data Type Integer Float Character Pointer
  • 5. Non Primitive Data Type Array Stack Non Primitive Data TypeNon Primitive Data Type Queue TreeGraph Link List
  • 7.  Primitive data structures are those which are predefined way of storing data by the system.  The set of operations that can be performed on these data are also predefined.  Primitive data structures are character, integer, float, pointer. Primitive Data Type
  • 8. Non Primitive Data Type The data types that are derived from primary data types are known as non-primitive data types. These data types are used to store group of values. The non-primitive data types are  Arrays  Structure  Linked list  Stacks  Queue
  • 9. Array ARRAY is a set of finite collection of homogeneous or same types of data items. Which means that we can store only one type of data in the array. We can declare array as : int ARR[14] Int specifies the type of data we want to store in array. ARR is the name of ARRAY. The number inside the square bracket denotes the number of items or elements stored in ARRAY. It is called as the length or size of ARRAY.
  • 10. Linked List A link list or one way list is a linear collection of data elements, called nodes, where the linear order is given by means of pointer. It is divided into two parts: First part contains the information of element and second part contains the address of the next node. START Information Part Next pointer field
  • 11. Stack  A stack is a linear structure in which items are added or removed only at one end.  It is also known as “LAST IN FIRST OUT” [LIFO] lists.  Stack is also known as “PILES” and “ PUSH DOWN ” lists.  OPERATION ASSOCIATED WITH STACK 1. PUSH: It is used to insert an element into stack. 2. POP: It is used to remove or delete an element from a stack.
  • 12. Representation of Stack TOP FFF DDD CCC BBB AAA XXX YYY ZZZ 1 2 3 4 65 87 1 TOP
  • 13. Queue A queue is also called as FIRST IN FIRST OUT [FIFO] system. It is a linear list in which deletion can take place only at one end of the list i.e. “FRONT” of the list In queue Insertion can take place only at other end of the list. i.e. “REAR” Figure : Array Representation Of Queue AAA BBB CCC …………DDD 1 32 4 5 N Front=1 Rear = 4
  • 14. Non-Linear Data Structure 1. TREE : It is a non linear is mainly used to represent data containing a hierarchical relationship between elements. 2. GRAPH : Data sometimes contains relationship between pair of elements which is not hierarchical in nature is called a graph. A B C D D D D D