SlideShare a Scribd company logo
1 of 15
**A PRESENTATION **
** ON **
** DATA STRUCTURES**
**Submitted By:
**Vinay Saurabh
**17BTCSE34
Contents
 Introduction
 Classification
 Operations on Data Structures
 Algorithms and Strategies of Data
Structures
1. Primitive Data Structures
2. Non-Primitive Data Structures
3. Arrays
4. Files
5. Lists
6. Stacks
7. Queues
8. Trees
9. Graphs
2
Introduction
Data
 It is an entity, piece of information that is a fact.
Information
 Instruction + Data
Data Structure
 It is a way of organizing data that considers not only the items stored but
also the relationship of each data.
3
Classification
4
Operations on Data Structures
 Searching- Finding the location of data within the data structure which satisfy the searching
condition or the criteria.
 Sorting- Arranging the data in some logical order in numerically increasing or decreasing
order or alphabetically.
 Insertion- Adding a new data item in the data structure whether at the beginning, end or at
some given location.
 Deletion- Removing a data item from the data structure whether from the beginning, end or
from a location specified.
 Merging- Combining the data of two different sorted files into a single sorted file.
 Traversing- Accessing each data exactly once in the data structure so that each data item
is visited at least once.
5
Algorithm And Strategies
Criteria
 Input: Zero or more quantities that are
externally supplied
 Output: At least one quantity is produced
 Definiteness: Clear and unambiguous
 Finiteness: Terminate after a finite number of
steps
 Effectiveness: Instruction is basic enough to
be carried out
Types of Algorithm Strategies
 Greedy
 Divide and Conquer
 Dynamic Programming
 Exhaustive Search
6
An algorithm is a finite set of instructions that accomplishes a particular task.
Primitive Data Structures
 The primitive data structures are known as basic data structures. These
data structures are directly operated upon by the machine instructions. Normally, primitive
data structures have different representation on different computers.
 These are of Four types: -
1. Integers- They are signed or unsigned whole numbers with the specified range such as 5, 39, -1917, 0 etc.
They have no fractional parts. They are either +ve or –ve .
2. Float- It can hold a real number or a number having a fractional part like 3.112 or 588.001 etc. The
decimal point signals that it is a floating point number, not an integer. The number 15 is an integer but 15.0 is a
floating point number.
3. Character- It can store any member of the basic character set. If a character from this set is stored in a
character variable, its value is equivalent to the integer code of that character basically known as ASCII code. It
can hold one letter/symbol like a, B, d etc. Characters can also be of different types.
4. Pointer- It is but a variable-like name points or represents a storage location in memory ( RAM ).
7
Arrays
 An array is a homogeneous collection of data items stored at contiguous memory locations.
 One Dimensional Array
Single sub-scripted variables are known as
a one-dimensional array or linear array
 Two Dimensional Array
Two sub-scripted variables are
referred as a two-dimensional array.
8
Files
 Files contain data or information, stored permanently in the secondary storage device such as Hard Disk and
Floppy Disk.
 It is useful when we have to store and process a large amount of data.
 A file stored in a storage device is always identified using a file name like HELLO.DAT or TEXTNAME.TXT and
so on.
 A file name normally contains a primary and a secondary name which is separated by a dot(.).
9
Lists
 A list is a collection of a variable number of data items.
 Lists fall in the non-primitive type of data structure in the classification of data structure.
 Every element on a list contains at least two fields, one is used to store data and the other one is used for
storing the address of next element.
 Linear Linked list
10
Stacks
 Like arrays, a stack is also defined as an ordered collection of elements.
 The stack is also known as Last In First Out (LIFO) type of data structure because we can delete and insert
elements from only one end, referred as TOP of the stack.
 Insertion in a stack is called Push and
 Deletion of elements from the stack is known as Pop.
 We can implement a stack using 2 ways:
1. Static implementation (using arrays)
2. Dynamic implementation (using pointers)
11
Queues
 Queues are also non-primitive linear data structure.
 But unlike stacks, queues are the First In First Out (FIFO) type of data structures.
 We can insert an element in a queue from the REAR end
 But we have to remove an element from the FRONT end only.
 We can also implement queues using 2 ways :
1. Using arrays
2. Using pointers
12
Trees
 Tree contain a finite set of data items referred as nodes. We can represent a hierarchical relationship between
the data elements using trees.
A Tree has the following characteristics :
 The top item in a hierarchy of a tree is referred
as the root of the tree.
 The remaining data elements are partitioned into
a number of mutually exclusive subsets and they itself
form a tree and are known as the subtree.
 Unlike natural trees, trees in the data structure
always grow in length towards the bottom.
13
Sub Tree
Graphs
 Graph falls in the non-primitive non-linear type of data structure in the classification of data structure.
 Graphs are capable of representing different types of physical structures.
 Apart from computer science, they are used widely in the fields of Geography, Chemistry & Engineering
Sciences.
 A graph is usually a combination of the set of vertices V and set of edges E.
 The different types of Graphs are :
1. Directed Graph 4. Non-connected Graph
2. Non-directed Graph 5. Simple Graph
3. Connected Graph 6. Multi Graph
14
Data Structure using c language for beginners

More Related Content

What's hot (17)

Data Structure # vpmp polytechnic
Data Structure # vpmp polytechnicData Structure # vpmp polytechnic
Data Structure # vpmp polytechnic
 
Data struters
Data strutersData struters
Data struters
 
Introduction to stack
Introduction to stack Introduction to stack
Introduction to stack
 
Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisation
 
Data structure (basics)
Data structure (basics)Data structure (basics)
Data structure (basics)
 
Data structure and its types.
Data structure and its types.Data structure and its types.
Data structure and its types.
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Data structures
Data structuresData structures
Data structures
 
Over view of data structures
Over view of data structuresOver view of data structures
Over view of data structures
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Introduction To Data Structures.
Introduction To Data Structures.Introduction To Data Structures.
Introduction To Data Structures.
 
Data structures Lecture no.3
Data structures Lecture no.3Data structures Lecture no.3
Data structures Lecture no.3
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2
 
Database
DatabaseDatabase
Database
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1
 
Data and File Structure Lecture Notes
Data and File Structure Lecture NotesData and File Structure Lecture Notes
Data and File Structure Lecture Notes
 

Similar to Data Structure using c language for beginners

Classification of datastructure.ppt
Classification of datastructure.pptClassification of datastructure.ppt
Classification of datastructure.pptLakshmiSamivel
 
2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdfSulabhPawaia
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxssuser031f35
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxSaralaT3
 
17. DS, Stacks Types of DS.pdf
17. DS, Stacks Types of DS.pdf17. DS, Stacks Types of DS.pdf
17. DS, Stacks Types of DS.pdfRrCreations5
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptxsarala9
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptxDCABCA
 
Unit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxUnit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxajajkhan16
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Tutort Academy
 
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCEARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCEVenugopalavarma Raja
 
Bit by bit into data structures
Bit by bit into data structuresBit by bit into data structures
Bit by bit into data structuresHridyesh Bisht
 
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.pptDATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.pptyarotos643
 
Data Structure
Data Structure Data Structure
Data Structure Ibrahim MH
 
data structure details of types and .ppt
data structure details of types and .pptdata structure details of types and .ppt
data structure details of types and .pptpoonamsngr
 
data structure programing language in c.ppt
data structure programing language in c.pptdata structure programing language in c.ppt
data structure programing language in c.pptLavkushGupta12
 

Similar to Data Structure using c language for beginners (20)

Classification of datastructure.ppt
Classification of datastructure.pptClassification of datastructure.ppt
Classification of datastructure.ppt
 
2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf2. Introduction to Data Structure.pdf
2. Introduction to Data Structure.pdf
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
17. DS, Stacks Types of DS.pdf
17. DS, Stacks Types of DS.pdf17. DS, Stacks Types of DS.pdf
17. DS, Stacks Types of DS.pdf
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
DSA - Copy.pptx
DSA - Copy.pptxDSA - Copy.pptx
DSA - Copy.pptx
 
Unit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxUnit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptx
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...
 
1597380885789.ppt
1597380885789.ppt1597380885789.ppt
1597380885789.ppt
 
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCEARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
ARRAYS IN C++ CBSE AND STATE +2 COMPUTER SCIENCE
 
Bit by bit into data structures
Bit by bit into data structuresBit by bit into data structures
Bit by bit into data structures
 
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.pptDATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
DATA STRUCTURE AND ALGORITJM POWERPOINT.ppt
 
Data Structure
Data Structure Data Structure
Data Structure
 
DS_PPT.ppt
DS_PPT.pptDS_PPT.ppt
DS_PPT.ppt
 
intr_ds.ppt
intr_ds.pptintr_ds.ppt
intr_ds.ppt
 
UNITIII LDS.pdf
UNITIII LDS.pdfUNITIII LDS.pdf
UNITIII LDS.pdf
 
data structure details of types and .ppt
data structure details of types and .pptdata structure details of types and .ppt
data structure details of types and .ppt
 
data structure programing language in c.ppt
data structure programing language in c.pptdata structure programing language in c.ppt
data structure programing language in c.ppt
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Recently uploaded (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Data Structure using c language for beginners

  • 1. **A PRESENTATION ** ** ON ** ** DATA STRUCTURES** **Submitted By: **Vinay Saurabh **17BTCSE34
  • 2. Contents  Introduction  Classification  Operations on Data Structures  Algorithms and Strategies of Data Structures 1. Primitive Data Structures 2. Non-Primitive Data Structures 3. Arrays 4. Files 5. Lists 6. Stacks 7. Queues 8. Trees 9. Graphs 2
  • 3. Introduction Data  It is an entity, piece of information that is a fact. Information  Instruction + Data Data Structure  It is a way of organizing data that considers not only the items stored but also the relationship of each data. 3
  • 5. Operations on Data Structures  Searching- Finding the location of data within the data structure which satisfy the searching condition or the criteria.  Sorting- Arranging the data in some logical order in numerically increasing or decreasing order or alphabetically.  Insertion- Adding a new data item in the data structure whether at the beginning, end or at some given location.  Deletion- Removing a data item from the data structure whether from the beginning, end or from a location specified.  Merging- Combining the data of two different sorted files into a single sorted file.  Traversing- Accessing each data exactly once in the data structure so that each data item is visited at least once. 5
  • 6. Algorithm And Strategies Criteria  Input: Zero or more quantities that are externally supplied  Output: At least one quantity is produced  Definiteness: Clear and unambiguous  Finiteness: Terminate after a finite number of steps  Effectiveness: Instruction is basic enough to be carried out Types of Algorithm Strategies  Greedy  Divide and Conquer  Dynamic Programming  Exhaustive Search 6 An algorithm is a finite set of instructions that accomplishes a particular task.
  • 7. Primitive Data Structures  The primitive data structures are known as basic data structures. These data structures are directly operated upon by the machine instructions. Normally, primitive data structures have different representation on different computers.  These are of Four types: - 1. Integers- They are signed or unsigned whole numbers with the specified range such as 5, 39, -1917, 0 etc. They have no fractional parts. They are either +ve or –ve . 2. Float- It can hold a real number or a number having a fractional part like 3.112 or 588.001 etc. The decimal point signals that it is a floating point number, not an integer. The number 15 is an integer but 15.0 is a floating point number. 3. Character- It can store any member of the basic character set. If a character from this set is stored in a character variable, its value is equivalent to the integer code of that character basically known as ASCII code. It can hold one letter/symbol like a, B, d etc. Characters can also be of different types. 4. Pointer- It is but a variable-like name points or represents a storage location in memory ( RAM ). 7
  • 8. Arrays  An array is a homogeneous collection of data items stored at contiguous memory locations.  One Dimensional Array Single sub-scripted variables are known as a one-dimensional array or linear array  Two Dimensional Array Two sub-scripted variables are referred as a two-dimensional array. 8
  • 9. Files  Files contain data or information, stored permanently in the secondary storage device such as Hard Disk and Floppy Disk.  It is useful when we have to store and process a large amount of data.  A file stored in a storage device is always identified using a file name like HELLO.DAT or TEXTNAME.TXT and so on.  A file name normally contains a primary and a secondary name which is separated by a dot(.). 9
  • 10. Lists  A list is a collection of a variable number of data items.  Lists fall in the non-primitive type of data structure in the classification of data structure.  Every element on a list contains at least two fields, one is used to store data and the other one is used for storing the address of next element.  Linear Linked list 10
  • 11. Stacks  Like arrays, a stack is also defined as an ordered collection of elements.  The stack is also known as Last In First Out (LIFO) type of data structure because we can delete and insert elements from only one end, referred as TOP of the stack.  Insertion in a stack is called Push and  Deletion of elements from the stack is known as Pop.  We can implement a stack using 2 ways: 1. Static implementation (using arrays) 2. Dynamic implementation (using pointers) 11
  • 12. Queues  Queues are also non-primitive linear data structure.  But unlike stacks, queues are the First In First Out (FIFO) type of data structures.  We can insert an element in a queue from the REAR end  But we have to remove an element from the FRONT end only.  We can also implement queues using 2 ways : 1. Using arrays 2. Using pointers 12
  • 13. Trees  Tree contain a finite set of data items referred as nodes. We can represent a hierarchical relationship between the data elements using trees. A Tree has the following characteristics :  The top item in a hierarchy of a tree is referred as the root of the tree.  The remaining data elements are partitioned into a number of mutually exclusive subsets and they itself form a tree and are known as the subtree.  Unlike natural trees, trees in the data structure always grow in length towards the bottom. 13 Sub Tree
  • 14. Graphs  Graph falls in the non-primitive non-linear type of data structure in the classification of data structure.  Graphs are capable of representing different types of physical structures.  Apart from computer science, they are used widely in the fields of Geography, Chemistry & Engineering Sciences.  A graph is usually a combination of the set of vertices V and set of edges E.  The different types of Graphs are : 1. Directed Graph 4. Non-connected Graph 2. Non-directed Graph 5. Simple Graph 3. Connected Graph 6. Multi Graph 14