SlideShare a Scribd company logo
Data
• Information that is stored in a computers.
• Various format like a numeric data, a non numeric
data or a character data.
• Stored in a storage device in the computer which
can be primary or secondary.
• Data travel in two directions that are from a user
to computer or from computer to user.
• Data give by the user to computer is termed as an
input data, given by a computer to user is termed
as an output data.
• Input data is to be stored in a computer system
either temporarily or permanently.
Concept and need of Data Structure
Structure or a format that is created by the programmer in a program to
store and manipulate user data.
The smallest and simplest data structure used in a program to store a user
data is a variable.
The problem with the variable is that it can store only one data at a time.
Thus to store multiple data at one place we can use as array data
structure. But the problem with array is that it does not support insertion
and deletion operations. Also it stores only one type of data in it.
Thus to store different types of data we can use structures. But even
structures do not support insertion and deletion operation.
So for this purpose we can implement some other linear and non-linear
data structure in our program like: Stacks, Queues, Linked lists, Trees and
graphs.
Data structures are used in every program or software system to arrange
the data.
Data Structures are a specialized means of organizing and storing data in
computers in such a way that we can perform operations on the stored
data more efficiently.
Uses of Data Structure
1.Data structures are being used in almost
every program or software system that has
been developed.
2.To store the customer order information
3.In contact lists, etc.
Types of data structure (Classification of Data Structure)
Data Structure
Primitive Non Primitive
int, char, float, Arrays, lists, structures, files
double, pointers
Linear Non Linear
stacks, queues, trees, graphs
linked lists
Operations on Data Structure
Traversing
In this operation we access each data item of a data structure in order to process it.
Insertion
In this operation we can insert a new data item in to the structure.
Deletion
In the operation we can remove an existing data item from the data structure.
Searching
In this operation we find the location of a given data item in the data structure. If
the element is found; we return its location otherwise we return null.
Sorting
In this operation we sort arrange the data items in the data structure either in
ascending or descending order.
Merging
In this operation we combine the data items of two similar sorted data structures in
to one single structure.
Linear
Stack
A stack is an ordered collection of items into which new item
can be inserted one end, and can be removed from same end
called as a top of the stack.
Queue
An ordered collection of items from which items may be
deleted from one end called the front and into which items
may be inserted from other end called rear is known as
Queue.
Linked List
A linked list is defined as a collection of nodes.
A node represents a small area of main memory used to store
the user data and pointers to previous and next data items in
the list in sequence.
Non Linear
1. Tree
Tree is a non- linear data structure defined as collection of nodes and lines.
It can also be defined as a set of elements which is either empty or
partitioned into three disjoint subsets.
i. The first subset is the root node.
ii. The other two subsets are called as left and right subtrees which
themselves are trees. Consider following tree:
2. Graph
A graph is an image that represents data symbolically.
A graph is used to represent complex information and in
simple, compact format.

More Related Content

What's hot

Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and Alogarithims
Victor Palmar
 
Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisation
Muzamil Hussain
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
Aakash deep Singhal
 

What's hot (20)

Data structures and Alogarithims
Data structures and AlogarithimsData structures and Alogarithims
Data structures and Alogarithims
 
Data structures Lecture no. 2
Data structures Lecture no. 2Data structures Lecture no. 2
Data structures Lecture no. 2
 
Data structures lectures no 1
Data structures lectures no 1Data structures lectures no 1
Data structures lectures no 1
 
Data Structure # vpmp polytechnic
Data Structure # vpmp polytechnicData Structure # vpmp polytechnic
Data Structure # vpmp polytechnic
 
Struktur data ppt
Struktur data pptStruktur data ppt
Struktur data ppt
 
Introduction of data structures
Introduction of data structuresIntroduction of data structures
Introduction of data structures
 
Elementary data organisation
Elementary data organisationElementary data organisation
Elementary data organisation
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]
 
Data processing
Data processingData processing
Data processing
 
introduction to Data Structure and classification
 introduction to Data Structure and classification introduction to Data Structure and classification
introduction to Data Structure and classification
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Data Structure - Elementary Data Organization
Data Structure - Elementary  Data Organization Data Structure - Elementary  Data Organization
Data Structure - Elementary Data Organization
 
Data structure
Data  structureData  structure
Data structure
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Lecture 1 data structures and algorithms
Lecture 1 data structures and algorithmsLecture 1 data structures and algorithms
Lecture 1 data structures and algorithms
 
Tableau Interview Questions
Tableau Interview QuestionsTableau Interview Questions
Tableau Interview Questions
 
Ui path interview questions
Ui path interview questionsUi path interview questions
Ui path interview questions
 
Over view of data structures
Over view of data structuresOver view of data structures
Over view of data structures
 

Similar to Data structure (basics)

Similar to Data structure (basics) (20)

Unit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data StructuresresUnit.1 Introduction to Data Structuresres
Unit.1 Introduction to Data Structuresres
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdf
 
UNIT II.docx
UNIT II.docxUNIT II.docx
UNIT II.docx
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
Data Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdfData Structures & Recursion-Introduction.pdf
Data Structures & Recursion-Introduction.pdf
 
Unit 1-Introduction to Data Structures-BCA.pdf
Unit 1-Introduction to Data Structures-BCA.pdfUnit 1-Introduction to Data Structures-BCA.pdf
Unit 1-Introduction to Data Structures-BCA.pdf
 
Datastructures Notes
Datastructures NotesDatastructures Notes
Datastructures Notes
 
Ch1
Ch1Ch1
Ch1
 
Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Data Structure Ppt for our engineering college industrial training.
Data Structure Ppt  for our engineering college industrial training.Data Structure Ppt  for our engineering college industrial training.
Data Structure Ppt for our engineering college industrial training.
 
DataStructurePpt.pptx
DataStructurePpt.pptxDataStructurePpt.pptx
DataStructurePpt.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
Data structure
Data structureData structure
Data structure
 
Unit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptxUnit-1 DataStructure Intro.pptx
Unit-1 DataStructure Intro.pptx
 
DS Module 1.pptx
DS Module 1.pptxDS Module 1.pptx
DS Module 1.pptx
 
DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS DATA STRUCTURE AND ALGORITHMS
DATA STRUCTURE AND ALGORITHMS
 
UNIT I - Data Structures.pdf
UNIT I - Data Structures.pdfUNIT I - Data Structures.pdf
UNIT I - Data Structures.pdf
 
Data Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.pptxData Structures and algoithms Unit - 1.pptx
Data Structures and algoithms Unit - 1.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...
 
Data Structure & Algorithm.pptx
Data Structure & Algorithm.pptxData Structure & Algorithm.pptx
Data Structure & Algorithm.pptx
 

Recently uploaded

Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 

Data structure (basics)

  • 1.
  • 2. Data • Information that is stored in a computers. • Various format like a numeric data, a non numeric data or a character data. • Stored in a storage device in the computer which can be primary or secondary. • Data travel in two directions that are from a user to computer or from computer to user. • Data give by the user to computer is termed as an input data, given by a computer to user is termed as an output data. • Input data is to be stored in a computer system either temporarily or permanently.
  • 3. Concept and need of Data Structure Structure or a format that is created by the programmer in a program to store and manipulate user data. The smallest and simplest data structure used in a program to store a user data is a variable. The problem with the variable is that it can store only one data at a time. Thus to store multiple data at one place we can use as array data structure. But the problem with array is that it does not support insertion and deletion operations. Also it stores only one type of data in it. Thus to store different types of data we can use structures. But even structures do not support insertion and deletion operation. So for this purpose we can implement some other linear and non-linear data structure in our program like: Stacks, Queues, Linked lists, Trees and graphs. Data structures are used in every program or software system to arrange the data. Data Structures are a specialized means of organizing and storing data in computers in such a way that we can perform operations on the stored data more efficiently.
  • 4. Uses of Data Structure 1.Data structures are being used in almost every program or software system that has been developed. 2.To store the customer order information 3.In contact lists, etc.
  • 5. Types of data structure (Classification of Data Structure) Data Structure Primitive Non Primitive int, char, float, Arrays, lists, structures, files double, pointers Linear Non Linear stacks, queues, trees, graphs linked lists
  • 6. Operations on Data Structure Traversing In this operation we access each data item of a data structure in order to process it. Insertion In this operation we can insert a new data item in to the structure. Deletion In the operation we can remove an existing data item from the data structure. Searching In this operation we find the location of a given data item in the data structure. If the element is found; we return its location otherwise we return null. Sorting In this operation we sort arrange the data items in the data structure either in ascending or descending order. Merging In this operation we combine the data items of two similar sorted data structures in to one single structure.
  • 7. Linear Stack A stack is an ordered collection of items into which new item can be inserted one end, and can be removed from same end called as a top of the stack. Queue An ordered collection of items from which items may be deleted from one end called the front and into which items may be inserted from other end called rear is known as Queue. Linked List A linked list is defined as a collection of nodes. A node represents a small area of main memory used to store the user data and pointers to previous and next data items in the list in sequence.
  • 8. Non Linear 1. Tree Tree is a non- linear data structure defined as collection of nodes and lines. It can also be defined as a set of elements which is either empty or partitioned into three disjoint subsets. i. The first subset is the root node. ii. The other two subsets are called as left and right subtrees which themselves are trees. Consider following tree:
  • 9. 2. Graph A graph is an image that represents data symbolically. A graph is used to represent complex information and in simple, compact format.