Introduction to Data Structures�
By
Mr. Abhijit T. Somnathe
Definition
Introduction
Introduction
Introduction
Classification of Data Structure
Classification of Data Structure
Primitive Data Structure
Primitive Data Structure
Non-Primitive Data Structure
Non-Primitive Data Structure
Linear Data structures:
Difference Between Primitive and Non – Primitive
Array
Array
Array
Array
(Upperbound-lowerbound)+1
Array
For(i=0;i<=9;i++)
{ scanf(“%d”,&arr[i]);
printf(“%d”,arr[i]); }
Array Types
Single Dimension Array
Two Dimension Array
Two Dimension Array
| A[0] | A[1] | A[2] |
A[0] | 10 | 20 | 30 |
A[1] | 40 | 50 | 60 |
A[2] | 70 | 80 | 90 |
Two Dimension Array
Two Dimension Array
1000 | 10 | A[0][0] |
1002 | 20 | A[0][1] |
1004 | 30 | A[0][2] |
1006 | 40 | A[1][0] |
1008 | 50 | A[1][1] |
1010 | 60 | A[1][2] |
1012 | 70 | A[2][0] |
1014 | 80 | A[2][1] |
1016 | 90 | A[2][2] |
Two Dimension Array
1000 | 10 | A[0][0] |
1002 | 40 | A[1][0] |
1004 | 70 | A[2][0] |
1006 | 20 | A[0][1] |
1008 | 50 | A[1][1] |
1010 | 80 | A[2][1] |
1012 | 30 | A[0][2] |
1014 | 60 | A[1][2] |
1016 | 90 | A[2][2] |
Static and Dynamic Array
Static and Dynamic Array
Static and Dynamic Array
Advantages of Array
Disadvantages of Array
Algorithm
Algorithm
Algorithm
Algorithm Analysis
Why Analysis of Algorithms is important?
Why Analysis of Algorithms is important?
What to Analyze?
What to Analyze?
Characteristics of Algorithm
Characteristics of Algorithm
Time and Space Complexities
Time and Space Complexities
Asymptotic Notations
Big-O Notation (O-notation)
Omega Notation (Ω-notation)
Theta Notation (Θ-notation)
ANY DOUBTS?