INTRODUCTION TO DATA
STRUCTURE
Zaheer Abbas
DATA STRUCTURE
Data
Structure
Non-
Linear
Linear
Data structure is a
storage that is used to
store and organize
data.
Linear Data Structures
Array Data Structure
Stack Data Structure
Queue Data Structure
Linked List Data
Structure
Dynamic
Static
Non-Linear Data Structures
Graph Data
Structure
Tree Data
Structure
Array
Array
 Array: An ordered collection of values with two
distinguishing characters:
 Ordered and fixed length
 Homogeneous. Every value in the array must be of the same
type
 The individual values in an array are called elements.
 The number of elements is called the length of the
array
Stack
 It is an ordered group of homogeneous items of elements.
 Elements are added to and removed from the top of the
stack (the most recently added items are at the top of the
stack).
 The last element to be added is the first to be removed
(LIFO: Last In, First Out).
Stack Specification
 Definitions: (provided by the user)
 MAX_ITEMS: Max number of items that might be
on the stack
 ItemType: Data type of the items on the stack
 Operations
 MakeEmpty
 Boolean IsEmpty
 Boolean IsFull
 Push (ItemType newItem)
 Pop (ItemType& item) (or pop and top)
Queue
 It is an ordered group of homogeneous items
of elements.
 Queues have two ends:
 Elements are added at one end.
 Elements are removed from the other end.
 The element added first is also removed first
(FIFO: First In, First Out).
queue
elements
enter
no changes of order
elements
exit
2
3
4 1
tail head
Queue Specification
 Definitions: (provided by the user)
 MAX_ITEMS: Max number of items that might be
on the queue
 ItemType: Data type of the items on the queue
• Operations
– MakeEmpty
– Boolean IsEmpty
– Boolean IsFull
– Enqueue (ItemType newItem)
– Dequeue (ItemType & item) (serve and retrieve)
Linked 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
Any question?

More Related Content

PPTX
Data Structure Introduction- Arrays, Matrix, Linked List
PPTX
General Data structures
PPTX
DATA STRUCTURE INTRODUCITON FULL NOTES.pptx
DOCX
CDS artificial intelligence and Machine.docx
PPTX
Data Structures and algoithms Unit - 1.pptx
PPTX
TSAT Presentation1.pptx
PPTX
Data structure and its types.
PPTX
DATA STRUCTURE AND ALGORITHM with linked list
Data Structure Introduction- Arrays, Matrix, Linked List
General Data structures
DATA STRUCTURE INTRODUCITON FULL NOTES.pptx
CDS artificial intelligence and Machine.docx
Data Structures and algoithms Unit - 1.pptx
TSAT Presentation1.pptx
Data structure and its types.
DATA STRUCTURE AND ALGORITHM with linked list

Similar to Lect-1.pptx (20)

PPT
C++ Data Structure PPT.ppt
PPTX
introduction to data structure and algorithms.pptx
PPTX
Data structures in c#
PPTX
Collections and its types in C# (with examples)
DOC
Data Structure
DOCX
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
PDF
DATA STRUCTURES USING C -ENGGDIGEST
PDF
LectureNotes-03-DSA
PPTX
Introduction in Data Structure - stack, Queue
PPTX
Introduction to linked list in data structure.pptx
PPTX
C++ Data Structure PPT.pptx
PPTX
Collections lecture 35 40
PPTX
data structures and algorithms Unit 1
PDF
Datastructure 110410094008-phpapp02
PPTX
Data structure
PPTX
DS Module 1.pptx
PPT
LINKEDb2bb22bb3b3b3b3n3_LIST_UKL_1-2.ppt
PPTX
Data Structures Algorithms and Applications
PPTX
Data_structure.pptx
PPTX
Data -structures for class 12 , easy ppt
C++ Data Structure PPT.ppt
introduction to data structure and algorithms.pptx
Data structures in c#
Collections and its types in C# (with examples)
Data Structure
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
DATA STRUCTURES USING C -ENGGDIGEST
LectureNotes-03-DSA
Introduction in Data Structure - stack, Queue
Introduction to linked list in data structure.pptx
C++ Data Structure PPT.pptx
Collections lecture 35 40
data structures and algorithms Unit 1
Datastructure 110410094008-phpapp02
Data structure
DS Module 1.pptx
LINKEDb2bb22bb3b3b3b3n3_LIST_UKL_1-2.ppt
Data Structures Algorithms and Applications
Data_structure.pptx
Data -structures for class 12 , easy ppt
Ad

Recently uploaded (20)

PDF
Navigating the Thai Supplements Landscape.pdf
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PDF
Global Data and Analytics Market Outlook Report
PPTX
CYBER SECURITY the Next Warefare Tactics
PDF
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
PPTX
DS-40-Pre-Engagement and Kickoff deck - v8.0.pptx
PPT
statistic analysis for study - data collection
PPTX
Pilar Kemerdekaan dan Identi Bangsa.pptx
PPTX
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
PPTX
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
PDF
Introduction to Data Science and Data Analysis
PPTX
New ISO 27001_2022 standard and the changes
DOCX
Factor Analysis Word Document Presentation
PPTX
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
PDF
REAL ILLUMINATI AGENT IN KAMPALA UGANDA CALL ON+256765750853/0705037305
PPTX
Introduction to Inferential Statistics.pptx
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
PPTX
Business_Capability_Map_Collection__pptx
PPTX
SET 1 Compulsory MNH machine learning intro
Navigating the Thai Supplements Landscape.pdf
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
STERILIZATION AND DISINFECTION-1.ppthhhbx
Global Data and Analytics Market Outlook Report
CYBER SECURITY the Next Warefare Tactics
Votre score augmente si vous choisissez une catégorie et que vous rédigez une...
DS-40-Pre-Engagement and Kickoff deck - v8.0.pptx
statistic analysis for study - data collection
Pilar Kemerdekaan dan Identi Bangsa.pptx
FMIS 108 and AISlaudon_mis17_ppt_ch11.pptx
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
Introduction to Data Science and Data Analysis
New ISO 27001_2022 standard and the changes
Factor Analysis Word Document Presentation
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
REAL ILLUMINATI AGENT IN KAMPALA UGANDA CALL ON+256765750853/0705037305
Introduction to Inferential Statistics.pptx
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
Business_Capability_Map_Collection__pptx
SET 1 Compulsory MNH machine learning intro
Ad

Lect-1.pptx

  • 2. DATA STRUCTURE Data Structure Non- Linear Linear Data structure is a storage that is used to store and organize data.
  • 3. Linear Data Structures Array Data Structure Stack Data Structure Queue Data Structure Linked List Data Structure Dynamic Static
  • 4. Non-Linear Data Structures Graph Data Structure Tree Data Structure
  • 6. Array  Array: An ordered collection of values with two distinguishing characters:  Ordered and fixed length  Homogeneous. Every value in the array must be of the same type  The individual values in an array are called elements.  The number of elements is called the length of the array
  • 7. Stack  It is an ordered group of homogeneous items of elements.  Elements are added to and removed from the top of the stack (the most recently added items are at the top of the stack).  The last element to be added is the first to be removed (LIFO: Last In, First Out).
  • 8. Stack Specification  Definitions: (provided by the user)  MAX_ITEMS: Max number of items that might be on the stack  ItemType: Data type of the items on the stack  Operations  MakeEmpty  Boolean IsEmpty  Boolean IsFull  Push (ItemType newItem)  Pop (ItemType& item) (or pop and top)
  • 9. Queue  It is an ordered group of homogeneous items of elements.  Queues have two ends:  Elements are added at one end.  Elements are removed from the other end.  The element added first is also removed first (FIFO: First In, First Out). queue elements enter no changes of order elements exit 2 3 4 1 tail head
  • 10. Queue Specification  Definitions: (provided by the user)  MAX_ITEMS: Max number of items that might be on the queue  ItemType: Data type of the items on the queue • Operations – MakeEmpty – Boolean IsEmpty – Boolean IsFull – Enqueue (ItemType newItem) – Dequeue (ItemType & item) (serve and retrieve)
  • 11. Linked 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

Editor's Notes

  • #6: Explain that not all projects require funding…. Distinction between project and process!! Use pinnacle example….
  • #7: Explain that not all projects require funding…. Distinction between project and process!! Use pinnacle example….