SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Department of Computer Science
Govt. Madhav Science PG College Ujjain
DATA STRUCTURE
ANIL KUMAR PRAJAPATI
What is Data Structure
► A data structure is a particular way of organizing data in a computer so that it
can be used effectively.
► For example, we can store a list of items having the same data-type using
the array data structure.
Types of Data structure
► broadly data structure categorized into two categories such as linear data
structure and non linear
Linear Data Structure
► Linear data structure : Data structure where data elements are arranged
sequentially or linearly where the elements are attached to its previous
and next adjacent in what is called a linear data structure. In linear data
structure, single level is involved. Therefore, we can traverse all the
elements in single run only. Linear data structures are easy to implement
because computer memory is arranged in a linear way. Its examples
are array, stack, queue and linked list
Non-linear Data Structure
► Non-linear Data Structure : Data structures where data elements are
not arranged sequentially or linearly are called non-linear data structures.
In a non-linear data structure, single level is not involved. Therefore, we
can’t traverse all the elements in single run only. Non-linear data
structures are not easy to implement in comparison to linear data
structure. It utilizes computer memory efficiently in comparison to a linear
data structure. Its examples are trees and graphs.
Difference Between Linear And Non- Linear Data Structure
Linear Data Structure Non- Linear Data Structure
In a linear data structure, data elements are arranged in a linear
order where each and every elements are attached to its previous
and next adjacent.
In a non-linear data structure, data elements are attached in
hierarchically manner.
In linear data structure, single level is involved. Whereas in non-linear data structure, multiple levels are involved.
In linear data structure, data elements can be traversed in a single
run only.
While in non-linear data structure, data elements can’t be traversed
in a single run only.
In a linear data structure, memory is not utilized in an efficient way.
While in a non-linear data structure, memory is utilized in an
efficient way.
Its examples are: array, stack, queue, linked list, etc. While its examples are: trees and graphs.
Applications of linear data structures are mainly in application
software development.
Applications of non-linear data structures are in Artificial
Intelligence and image processing.
Linear data structure
1. Array: An array is a collection of items stored at contiguous memory locations. The idea
is to store multiple items of the same type together. This makes it easier to calculate the
position of each element by simply adding an offset to a base value, i.e., the memory
location of the first element of the array (generally denoted by the name of the array).
Linear data structure
► Stack : Stack is a linear data structure which follows a particular order in which the
operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last
Out).
Linear data structure
► Queue: A Queue is a linear structure which follows a particular order in which the
operations are performed. The order is First In First Out (FIFO). A good example of a
queue is any queue of consumers for a resource where the consumer that came first is
served first. The difference between stacks and queues is in removing. In a stack we
remove the item the most recently added; in a queue, we remove the item the least
recently added.
► Link list: A linked list is a linear data structure, in which the elements are not stored at
contiguous memory locations. The elements in a linked list are linked using pointers as
shown in the below image:
Non- Linear Data Structure
► Tree: A tree is a hierarchical data structure defined as a collection of nodes. Nodes
represent value and nodes are connected by edges. A tree has the following properties:
1. The tree has one node called root. The tree originates from this, and hence it does not have
any parent.
2. Each node has one parent only but can have multiple children.
3. Each node is connected to its children via edge.
Non- Linear Data Structure
► Graph : A Graph is a non-linear data structure consisting of nodes and edges. The nodes
are sometimes also referred to as vertices and the edges are lines or arcs that connect any
two nodes in the graph. More formally a Graph can be defined as
Regards:
Anil Kumar Prajapati

More Related Content

PDF
Data structure ppt
PPTX
Programming flowcharts for C Language
PPTX
Graph in data structure
PPTX
Inheritance in c++
PPTX
Presentation on Computer Mouse
PPTX
ARTIFICIAL INTELLIGENCE BASIC PPT
PPT
Introduction to data structures and Algorithm
Data structure ppt
Programming flowcharts for C Language
Graph in data structure
Inheritance in c++
Presentation on Computer Mouse
ARTIFICIAL INTELLIGENCE BASIC PPT
Introduction to data structures and Algorithm

What's hot (20)

PPT
File handling in c
PPT
Data structures using c
PPTX
linked list in data structure
PPTX
Data Structures - Lecture 9 [Stack & Queue using Linked List]
PPTX
Arrays in Java
PPTX
PPT
PDF
Binary Search - Design & Analysis of Algorithms
PDF
Data Structures
PPTX
Stacks in c++
PPTX
Functions in python slide share
PPSX
Data Structure (Queue)
PPT
SEARCHING AND SORTING ALGORITHMS
PPTX
Constructor overloading & method overloading
PPTX
Linked List - Insertion & Deletion
PPTX
stack & queue
PPTX
Binary search in data structure
PPTX
Sparse matrix and its representation data structure
PPTX
Inheritance in java
File handling in c
Data structures using c
linked list in data structure
Data Structures - Lecture 9 [Stack & Queue using Linked List]
Arrays in Java
Binary Search - Design & Analysis of Algorithms
Data Structures
Stacks in c++
Functions in python slide share
Data Structure (Queue)
SEARCHING AND SORTING ALGORITHMS
Constructor overloading & method overloading
Linked List - Insertion & Deletion
stack & queue
Binary search in data structure
Sparse matrix and its representation data structure
Inheritance in java
Ad

Similar to Data structure power point presentation (20)

PPTX
sourabhpptsasdfghjkcdfxcvhbycfxv hgvihjubgveminar.pptx
PPTX
Data structures
PDF
.DATA STRUCTURES
PPTX
Types of datastructures
PPTX
DSA - Copy.pptx
PPTX
Introduction to data structures (ss)
PPTX
PPT Format prashant .pptx
PPTX
Data struchers and algorithms
PPTX
Data Structures and algoithms Unit - 1.pptx
PPTX
DS Module 1.pptx
PPTX
DS Module 1.pptx
PPTX
Classification of DS Presentation Harsh.pptx
PPTX
SIX WEEKS SUMMER TRAINING REPORT.pptx
PPTX
Data Structure and Algorithms (DSA).pptx
PPTX
Which data structure is it? What are the various data structure kinds and wha...
PDF
Unit.1 Introduction to Data Structuresres
PPTX
DATA STRUCTURE INTRODUCITON FULL NOTES.pptx
PDF
104333 sri vidhya eng notes
PPT
PPTX
data struct.pptxfasfa f dfqsud dfadud sssdafsdasvsdsdfsqdfqdvahgdfatsfddadad
sourabhpptsasdfghjkcdfxcvhbycfxv hgvihjubgveminar.pptx
Data structures
.DATA STRUCTURES
Types of datastructures
DSA - Copy.pptx
Introduction to data structures (ss)
PPT Format prashant .pptx
Data struchers and algorithms
Data Structures and algoithms Unit - 1.pptx
DS Module 1.pptx
DS Module 1.pptx
Classification of DS Presentation Harsh.pptx
SIX WEEKS SUMMER TRAINING REPORT.pptx
Data Structure and Algorithms (DSA).pptx
Which data structure is it? What are the various data structure kinds and wha...
Unit.1 Introduction to Data Structuresres
DATA STRUCTURE INTRODUCITON FULL NOTES.pptx
104333 sri vidhya eng notes
data struct.pptxfasfa f dfqsud dfadud sssdafsdasvsdsdfsqdfqdvahgdfatsfddadad
Ad

More from Anil Kumar Prajapati (7)

PPTX
Artificial Intelligence(Machine learning & deep Learning ).pptx
PPTX
Intellectual Property Rights.pptx
PPTX
Naac criteria
PPTX
Digital logic Gates of Computer Science
PPTX
Naac criteria
PPT
Stack and queue
PPTX
Computer Number system
Artificial Intelligence(Machine learning & deep Learning ).pptx
Intellectual Property Rights.pptx
Naac criteria
Digital logic Gates of Computer Science
Naac criteria
Stack and queue
Computer Number system

Recently uploaded (20)

PPTX
biomolecules-class12th chapter board classespptx
PPTX
Pharmacognosy: ppt :pdf :pharmacognosy :
PPTX
lecture on genetics: location of gene in the chomosomes.pptx
PPTX
2019 Upper Respiratory Tract Infections.pptx
PDF
FASTTypeScript metamodel generation using FAST traits and TreeSitter project
PDF
Rethinking_the_Past_Infinite_Multiverse.pdf
PPTX
Embark on a journey of cell division and it's stages
PDF
Composing and Performing Electronic Music on-the-Fly with Pharo and Coypu
DOCX
The beginnings of Microbiology (discovery, development, scope, Identification...
PPTX
Introduction to biochemistry.ppt-pdf_shotrs!
PPTX
WEEK 4-MONO HYBRID AND DIHYBRID CROSS OF GREGOR MENDEL
PDF
The Cosmic Symphony: How Photons Shape the Universe and Our Place Within It
PDF
Bacteria, Different sizes and Shapes of of bacteria
PDF
NURSING FOUNDATION LESSON PLAN ON PATIENT EDUCATION.pdf
PPTX
1.pptx 2.pptx for biology endocrine system hum ppt
PDF
Gamifying Agent-Based Models in Cormas: Towards the Playable Architecture for...
PPTX
Discovery of Novel Antibiotics from Uncultured Microbes.pptx
PPT
Chemical bonding and molecular structure
PPTX
Animal Cell and plant cell for junior high school
PDF
Paleoseismic activity in the moon’s Taurus-Littrowvalley inferred from boulde...
biomolecules-class12th chapter board classespptx
Pharmacognosy: ppt :pdf :pharmacognosy :
lecture on genetics: location of gene in the chomosomes.pptx
2019 Upper Respiratory Tract Infections.pptx
FASTTypeScript metamodel generation using FAST traits and TreeSitter project
Rethinking_the_Past_Infinite_Multiverse.pdf
Embark on a journey of cell division and it's stages
Composing and Performing Electronic Music on-the-Fly with Pharo and Coypu
The beginnings of Microbiology (discovery, development, scope, Identification...
Introduction to biochemistry.ppt-pdf_shotrs!
WEEK 4-MONO HYBRID AND DIHYBRID CROSS OF GREGOR MENDEL
The Cosmic Symphony: How Photons Shape the Universe and Our Place Within It
Bacteria, Different sizes and Shapes of of bacteria
NURSING FOUNDATION LESSON PLAN ON PATIENT EDUCATION.pdf
1.pptx 2.pptx for biology endocrine system hum ppt
Gamifying Agent-Based Models in Cormas: Towards the Playable Architecture for...
Discovery of Novel Antibiotics from Uncultured Microbes.pptx
Chemical bonding and molecular structure
Animal Cell and plant cell for junior high school
Paleoseismic activity in the moon’s Taurus-Littrowvalley inferred from boulde...

Data structure power point presentation

  • 1. Department of Computer Science Govt. Madhav Science PG College Ujjain DATA STRUCTURE ANIL KUMAR PRAJAPATI
  • 2. What is Data Structure ► A data structure is a particular way of organizing data in a computer so that it can be used effectively. ► For example, we can store a list of items having the same data-type using the array data structure.
  • 3. Types of Data structure ► broadly data structure categorized into two categories such as linear data structure and non linear
  • 4. Linear Data Structure ► Linear data structure : Data structure where data elements are arranged sequentially or linearly where the elements are attached to its previous and next adjacent in what is called a linear data structure. In linear data structure, single level is involved. Therefore, we can traverse all the elements in single run only. Linear data structures are easy to implement because computer memory is arranged in a linear way. Its examples are array, stack, queue and linked list
  • 5. Non-linear Data Structure ► Non-linear Data Structure : Data structures where data elements are not arranged sequentially or linearly are called non-linear data structures. In a non-linear data structure, single level is not involved. Therefore, we can’t traverse all the elements in single run only. Non-linear data structures are not easy to implement in comparison to linear data structure. It utilizes computer memory efficiently in comparison to a linear data structure. Its examples are trees and graphs.
  • 6. Difference Between Linear And Non- Linear Data Structure Linear Data Structure Non- Linear Data Structure In a linear data structure, data elements are arranged in a linear order where each and every elements are attached to its previous and next adjacent. In a non-linear data structure, data elements are attached in hierarchically manner. In linear data structure, single level is involved. Whereas in non-linear data structure, multiple levels are involved. In linear data structure, data elements can be traversed in a single run only. While in non-linear data structure, data elements can’t be traversed in a single run only. In a linear data structure, memory is not utilized in an efficient way. While in a non-linear data structure, memory is utilized in an efficient way. Its examples are: array, stack, queue, linked list, etc. While its examples are: trees and graphs. Applications of linear data structures are mainly in application software development. Applications of non-linear data structures are in Artificial Intelligence and image processing.
  • 7. Linear data structure 1. Array: An array is a collection of items stored at contiguous memory locations. The idea is to store multiple items of the same type together. This makes it easier to calculate the position of each element by simply adding an offset to a base value, i.e., the memory location of the first element of the array (generally denoted by the name of the array).
  • 8. Linear data structure ► Stack : Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out).
  • 9. Linear data structure ► Queue: A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. The difference between stacks and queues is in removing. In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added.
  • 10. ► Link list: A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers as shown in the below image:
  • 11. Non- Linear Data Structure ► Tree: A tree is a hierarchical data structure defined as a collection of nodes. Nodes represent value and nodes are connected by edges. A tree has the following properties: 1. The tree has one node called root. The tree originates from this, and hence it does not have any parent. 2. Each node has one parent only but can have multiple children. 3. Each node is connected to its children via edge.
  • 12. Non- Linear Data Structure ► Graph : A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. More formally a Graph can be defined as