Data Structure
Dr. Tauheed Ahmed
Lecture 1: Introduction
2
Contents
General information
Course content
Introduction to Data
Structure
Course weightage
Regarding Course
• Course Assignment and Lab Submissions: Mahindra Euclid
• Keeping the class strength in mind, you are encouraged to contact via email as it may
not be feasible to meet in person most of the time.
• It is mandatory to attend all the exams and submit the assignments on time.
• In a supplementary no grade better than grade “D” can be obtained.
Course Content
4
Searching- Linear Search, Binary Search
Sorting-Bubble, Insertion Sort, Selection Sort, Radix Sort, Quick sort, Heap Sort, Comparison of Sorting methods.
Basic concepts - Algorithm Specification - Introduction, Recursive algorithms, Data Abstraction Performance analysis -
time complexity and space complexity, Asymptotic Notation - Big O, Omega and Theta notations, Hashing.
Singly Linked Lists-Operations-Insertion, Deletion, Concatenating singly linked lists, Circularly linked
lists- Operations for Circularly linked lists, Doubly Linked Lists- Operations- Insertion, Deletion. Representation of
single, two dimensional arrays, sparse matrices-array and linked representations.
Stack ADT, definition, operations, array and linked implementations in C, applications-infix to postfix
conversion, Postfix expression evaluation, recursion implementation, Queue ADT, definition and operations, array and
linked Implementations in C, Circular Queues-Insertion and deletion operations, Deque (Double ended queue)
ADT, array and linked implementations in C
Course Content
5
Trees – Terminology, Representation of Trees, Binary tree ADT, Properties of Binary Trees, Binary
Tree Representations-array and linked representations, Binary Tree traversals, Max Priority Queue ADT-
implementation-Max Heap-Definition, Insertion into a Max Heap, Deletion from a Max Heap., Binary Search Trees,
Definition, Operations- Searching, Insertion and Deletion, AVL Tree.
Graphs – Introduction, Definition, Terminology, Graph ADT, Graph Representations- Adjacency matrix, Adjacency
lists, Graph traversals- DFS and BFS, Minimum Spanning Tree.
Text Books
6
Text Books:
1. Fundamentals of Data structures in C, 2nd Edition, E.Horowitz, S.Sahni and Susan Anderson-Freed,
Universities Press.
2. Data structures A Programming Approach with C, D.S.Kushwaha and A.K.Misra, PHI.
3. Data Structures, Seymour Lipschutz, 16th
Edition ,Schaum’s outlines
Reference Books:
4. Data structures: A Pseudocode Approach with C, 2nd edition, R.F.Gilberg And B.A.Forouzan,
Cengage Learning.
5. Data structures and Algorithm Analysis in C, 2nd edition, M.A.Weiss, Pearson.
6. Data Structures using C, A.M.Tanenbaum,Y. Langsam, M.J.Augenstein, Pearson.
7. Data structures and Program Design in C, 2nd edition, R.Kruse, C.L.Tondo and B.Leung,Pearson.
Course Weightage
Evaluation Parameter Weightage
Minor I 20%
Minor II 20%
End Sem 40%
Lab 20%
Why Study Data Structures?
Efficient Problem
Solving
Improves Coding
Skills
Adaptability to New
Technologies
Crucial for Job
Interviews
What is a Data Structure?
A data Structure is “the organization of data in a way so that it can be used efficiently”.
A way of organizing, managing, and storing data for efficient access and modification.
Performance
Efficiency ?
Memory
What is an Algorithm?
An algorithm is “A finite set of precise instructions for performing a computation or for
solving a problem”.
Introduction
Algorithm is a set of instruction written to carry out certain tasks & the data
structure is the way of organizing the data with their logical relationship
retained.
• To develop a program of an algorithm, we should
select an appropriate data structure for that
algorithm.
• Therefore, algorithm and its associated data
structures from a program.
What is a Program ?
• A Set of Instructions
• Data Structures + Algorithms
• Data Structure = A Container stores Data
• Algorithm = Logic + Control.
Classification of Data Structure
• Primitive Data Structure
• Non-Primitive Data Structure
Data structure are normally divided into two broad categories
Primitive Data Structure
Primitive data structures are the basic building blocks of data manipulation and storage.
They are predefined by programming languages and are used to represent single values
Classification of Data Structure
Data
Structures
Primitive
Data
Structures
Integer Float Character Boolean
Non-
Primitive
Data
Structures
Linear Data
Structure
Array Linked List Stack Queue
Non-Linear
Data
Structure
Trees Graphs
Non-Primitive Data Structure
These are derived from the primitive data structures.
The non-primitive
data structures
emphasize on
structuring of a group
of homogeneous
(same type) or
heterogeneous
(different type) data
items.
The choice of a particular data structure depends on following two
considerations
• It must be rich enough in structure to mirror the actual relationships of
the real world data.
• The structure should be simple enough that one can effectively process
the data when necessary.
Non-Primitive Data Structure: Operations
The most
commonly used
operation on data
structure are
broadly
categorized into
following types:
• Create
• Select or Access
• Update
• Search
• Sort
• Merge
• Destroy or Delete
Question
1. Which of the following best describes a data structure?
A. A way of solving problems logically
B. A method of organizing, managing, and storing data efficiently
C. A set of instructions for performing a computation
D. A program that processes data
2. What is the key feature of non-primitive data structures?
A. They are predefined by programming languages.
B. They emphasize structuring groups of data.
C. They represent single values only.
D. They require no memory allocation
B
B
Arrays
An array is defined as a set of finite number of homogeneous elements or same data items.
The simplest type of data structure is the linear array.
Definition
Note: Regardless of the notation, the number in is called as subscript and A[K] is called as subscripted variable
An array can contain one type of data only, either all integer, all float-point number or all character.
If we choose the name for the array, then the elements of are denoted by
I. Subscript notation :
II. Parenthesis notation:
III. Bracket notation:
Arrays
Declaration of array is as follows:
int arr[10]
Declaration
Where,
• int specifies the data type or type of elements arrays stores.
• “arr” is the name of array & the number specified inside the square brackets is the number of elements an
array can store, this is also called sized or length of array.
Arrays
The elements of array will
always be stored in the
consecutive (continues)
memory location.
The first element of the
array has index zero[0].
The number of elements that can be
stored in an array, that is the size of
array or its length is given by the
following equation:
Following are some of the concepts to be remembered about arrays:
Arrays: Example
A linear array STUDENT consisting of the names
of six student is pictured as:
Ex. 1.1
A chain of 28 stores, each having 4 department
may list its weekly sales as:
Ex. 1.2
John
Sandra
Tom
Kelly
Reed
Smith
Store/
Dept
1 2 3 4
1 31 342 2342 234
2 213 1234 2134 321
3 234 123 4654 4567
… … … … …
28 234 243 4567 342

More Related Content

PPTX
Introduction to Data Structures and their importance
PPTX
Different types of sorting used in programming.pptx
PDF
M v bramhananda reddy dsa complete notes
PPTX
Dsa unit 1
PDF
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
PDF
Iare ds lecture_notes_2
DOCX
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
PPTX
1-Introduction to Data Structures beginner.pptx
Introduction to Data Structures and their importance
Different types of sorting used in programming.pptx
M v bramhananda reddy dsa complete notes
Dsa unit 1
Unit-I PPT hususi sisooshsgv. Eijeieieooekejj
Iare ds lecture_notes_2
Datastructures and algorithms prepared by M.V.Brehmanada Reddy
1-Introduction to Data Structures beginner.pptx

Similar to Lecture 1.pptxffffffffffffffcfffffffffff (20)

PDF
Data Structure and its Fundamentals
PPT
Data_Structure With C_LECTURE ONE PPT123
PPTX
DataStructureccvdgddfffdesddsssdssPpt.pptx
PPTX
project on data structures and algorithm
PPTX
ntroduction of Algorithms, Analysing Algorithms. Arrays: Sparse Matrices - Re...
PPTX
DataStructurePpt.pptx
PPT
The Stack in Data structure and algorithm
PPTX
Data Structures unit I Introduction - data types
PPTX
Introduction to data structures (ss)
DOC
DATA STRUCTURES - SHORT NOTES
PPTX
DS Module 1.pptx
PDF
Data File Structures Notes {dfs} MOD.pdf
PPTX
DS Module 1.pptx
PDF
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
PPTX
Data Structure , Classification of Data structure
PDF
104333 sri vidhya eng notes
PPTX
Introduction to datastructures presentation
PDF
Datastructures Notes
PDF
unit 1 ds.INTRODUCTION TO DATA STRUCTURES
PDF
Data structure
Data Structure and its Fundamentals
Data_Structure With C_LECTURE ONE PPT123
DataStructureccvdgddfffdesddsssdssPpt.pptx
project on data structures and algorithm
ntroduction of Algorithms, Analysing Algorithms. Arrays: Sparse Matrices - Re...
DataStructurePpt.pptx
The Stack in Data structure and algorithm
Data Structures unit I Introduction - data types
Introduction to data structures (ss)
DATA STRUCTURES - SHORT NOTES
DS Module 1.pptx
Data File Structures Notes {dfs} MOD.pdf
DS Module 1.pptx
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
Data Structure , Classification of Data structure
104333 sri vidhya eng notes
Introduction to datastructures presentation
Datastructures Notes
unit 1 ds.INTRODUCTION TO DATA STRUCTURES
Data structure
Ad

Recently uploaded (20)

PPTX
Growth Capital Investment - Espresso Capital.pptx
PDF
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
PDF
ICT grade for 8. MATATAG curriculum .P2.pdf
PPTX
unit1d-communitypharmacy-240815170017-d032dce8.pptx
DOCX
Copy-OT LIST 12.8.25.docxjdjfufufufufuuffuf
PDF
Topic-1-Main-Features-of-Data-Processing.pdf
PDF
Dozuki_Solution-hardware minimalization.
PDF
PakistanCoinageAct-906.pdfdbnsshsjjsbsbb
PPTX
Unit-1.pptxgeyeuueueu7r7r7r77r7r7r7uriruru
PDF
ISS2022 present sdabhsa hsdhdfahasda ssdsd
PPTX
AI_ML_Internship_WReport_Template_v2.pptx
PDF
2_STM32&SecureElements2_STM32&SecureElements
PDF
CAB UNIT 1 with computer details details
PDF
Maxon CINEMA 4D 2025 Crack Free Download Latest Version
PDF
2- Physical Layer (06).pdfgshshshbsbshshshhs
PPT
System Unit Components and its Functions
PDF
GENERATOR AND IMPROVED COIL THEREFOR HAVINGELECTRODYNAMIC PROPERTIES
PPTX
ELETRONIC-PRODUCTS-ASSEMBLY-AND-SERVICING-NC-II-WEEK-1-Copy.pptx
PPTX
Pin configuration and project related to
PPTX
AIR BAG SYStYEM mechanical enginweering.pptx
Growth Capital Investment - Espresso Capital.pptx
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
ICT grade for 8. MATATAG curriculum .P2.pdf
unit1d-communitypharmacy-240815170017-d032dce8.pptx
Copy-OT LIST 12.8.25.docxjdjfufufufufuuffuf
Topic-1-Main-Features-of-Data-Processing.pdf
Dozuki_Solution-hardware minimalization.
PakistanCoinageAct-906.pdfdbnsshsjjsbsbb
Unit-1.pptxgeyeuueueu7r7r7r77r7r7r7uriruru
ISS2022 present sdabhsa hsdhdfahasda ssdsd
AI_ML_Internship_WReport_Template_v2.pptx
2_STM32&SecureElements2_STM32&SecureElements
CAB UNIT 1 with computer details details
Maxon CINEMA 4D 2025 Crack Free Download Latest Version
2- Physical Layer (06).pdfgshshshbsbshshshhs
System Unit Components and its Functions
GENERATOR AND IMPROVED COIL THEREFOR HAVINGELECTRODYNAMIC PROPERTIES
ELETRONIC-PRODUCTS-ASSEMBLY-AND-SERVICING-NC-II-WEEK-1-Copy.pptx
Pin configuration and project related to
AIR BAG SYStYEM mechanical enginweering.pptx
Ad

Lecture 1.pptxffffffffffffffcfffffffffff

  • 1. Data Structure Dr. Tauheed Ahmed Lecture 1: Introduction
  • 3. Regarding Course • Course Assignment and Lab Submissions: Mahindra Euclid • Keeping the class strength in mind, you are encouraged to contact via email as it may not be feasible to meet in person most of the time. • It is mandatory to attend all the exams and submit the assignments on time. • In a supplementary no grade better than grade “D” can be obtained.
  • 4. Course Content 4 Searching- Linear Search, Binary Search Sorting-Bubble, Insertion Sort, Selection Sort, Radix Sort, Quick sort, Heap Sort, Comparison of Sorting methods. Basic concepts - Algorithm Specification - Introduction, Recursive algorithms, Data Abstraction Performance analysis - time complexity and space complexity, Asymptotic Notation - Big O, Omega and Theta notations, Hashing. Singly Linked Lists-Operations-Insertion, Deletion, Concatenating singly linked lists, Circularly linked lists- Operations for Circularly linked lists, Doubly Linked Lists- Operations- Insertion, Deletion. Representation of single, two dimensional arrays, sparse matrices-array and linked representations. Stack ADT, definition, operations, array and linked implementations in C, applications-infix to postfix conversion, Postfix expression evaluation, recursion implementation, Queue ADT, definition and operations, array and linked Implementations in C, Circular Queues-Insertion and deletion operations, Deque (Double ended queue) ADT, array and linked implementations in C
  • 5. Course Content 5 Trees – Terminology, Representation of Trees, Binary tree ADT, Properties of Binary Trees, Binary Tree Representations-array and linked representations, Binary Tree traversals, Max Priority Queue ADT- implementation-Max Heap-Definition, Insertion into a Max Heap, Deletion from a Max Heap., Binary Search Trees, Definition, Operations- Searching, Insertion and Deletion, AVL Tree. Graphs – Introduction, Definition, Terminology, Graph ADT, Graph Representations- Adjacency matrix, Adjacency lists, Graph traversals- DFS and BFS, Minimum Spanning Tree.
  • 6. Text Books 6 Text Books: 1. Fundamentals of Data structures in C, 2nd Edition, E.Horowitz, S.Sahni and Susan Anderson-Freed, Universities Press. 2. Data structures A Programming Approach with C, D.S.Kushwaha and A.K.Misra, PHI. 3. Data Structures, Seymour Lipschutz, 16th Edition ,Schaum’s outlines Reference Books: 4. Data structures: A Pseudocode Approach with C, 2nd edition, R.F.Gilberg And B.A.Forouzan, Cengage Learning. 5. Data structures and Algorithm Analysis in C, 2nd edition, M.A.Weiss, Pearson. 6. Data Structures using C, A.M.Tanenbaum,Y. Langsam, M.J.Augenstein, Pearson. 7. Data structures and Program Design in C, 2nd edition, R.Kruse, C.L.Tondo and B.Leung,Pearson.
  • 7. Course Weightage Evaluation Parameter Weightage Minor I 20% Minor II 20% End Sem 40% Lab 20%
  • 8. Why Study Data Structures? Efficient Problem Solving Improves Coding Skills Adaptability to New Technologies Crucial for Job Interviews
  • 9. What is a Data Structure? A data Structure is “the organization of data in a way so that it can be used efficiently”. A way of organizing, managing, and storing data for efficient access and modification. Performance Efficiency ? Memory
  • 10. What is an Algorithm? An algorithm is “A finite set of precise instructions for performing a computation or for solving a problem”.
  • 11. Introduction Algorithm is a set of instruction written to carry out certain tasks & the data structure is the way of organizing the data with their logical relationship retained. • To develop a program of an algorithm, we should select an appropriate data structure for that algorithm. • Therefore, algorithm and its associated data structures from a program. What is a Program ? • A Set of Instructions • Data Structures + Algorithms • Data Structure = A Container stores Data • Algorithm = Logic + Control.
  • 12. Classification of Data Structure • Primitive Data Structure • Non-Primitive Data Structure Data structure are normally divided into two broad categories
  • 13. Primitive Data Structure Primitive data structures are the basic building blocks of data manipulation and storage. They are predefined by programming languages and are used to represent single values
  • 14. Classification of Data Structure Data Structures Primitive Data Structures Integer Float Character Boolean Non- Primitive Data Structures Linear Data Structure Array Linked List Stack Queue Non-Linear Data Structure Trees Graphs
  • 15. Non-Primitive Data Structure These are derived from the primitive data structures. The non-primitive data structures emphasize on structuring of a group of homogeneous (same type) or heterogeneous (different type) data items. The choice of a particular data structure depends on following two considerations • It must be rich enough in structure to mirror the actual relationships of the real world data. • The structure should be simple enough that one can effectively process the data when necessary.
  • 16. Non-Primitive Data Structure: Operations The most commonly used operation on data structure are broadly categorized into following types: • Create • Select or Access • Update • Search • Sort • Merge • Destroy or Delete
  • 17. Question 1. Which of the following best describes a data structure? A. A way of solving problems logically B. A method of organizing, managing, and storing data efficiently C. A set of instructions for performing a computation D. A program that processes data 2. What is the key feature of non-primitive data structures? A. They are predefined by programming languages. B. They emphasize structuring groups of data. C. They represent single values only. D. They require no memory allocation B B
  • 18. Arrays An array is defined as a set of finite number of homogeneous elements or same data items. The simplest type of data structure is the linear array. Definition Note: Regardless of the notation, the number in is called as subscript and A[K] is called as subscripted variable An array can contain one type of data only, either all integer, all float-point number or all character. If we choose the name for the array, then the elements of are denoted by I. Subscript notation : II. Parenthesis notation: III. Bracket notation:
  • 19. Arrays Declaration of array is as follows: int arr[10] Declaration Where, • int specifies the data type or type of elements arrays stores. • “arr” is the name of array & the number specified inside the square brackets is the number of elements an array can store, this is also called sized or length of array.
  • 20. Arrays The elements of array will always be stored in the consecutive (continues) memory location. The first element of the array has index zero[0]. The number of elements that can be stored in an array, that is the size of array or its length is given by the following equation: Following are some of the concepts to be remembered about arrays:
  • 21. Arrays: Example A linear array STUDENT consisting of the names of six student is pictured as: Ex. 1.1 A chain of 28 stores, each having 4 department may list its weekly sales as: Ex. 1.2 John Sandra Tom Kelly Reed Smith Store/ Dept 1 2 3 4 1 31 342 2342 234 2 213 1234 2134 321 3 234 123 4654 4567 … … … … … 28 234 243 4567 342