FDS Session 2
FDS Session 2
FDS Session 2
Data
Data Structure
Problem
Algorithm
Information
Knowledge
Abstract Data Type (ADT):
Basic Built in Data Type not Sufficient.
Need to define own Data Type.
ADT refers to defining own Data Type which is defined by Programmer not by
Language.
Static
Category 2 Based upon Existence
Dynamic
Persistent
Category 3
Ephemeral
Data Structure Classification:
Linear: Data items are ordered Sequentially or Linearly one after another.
Traversing: one after another. So Accessing Last element is headache.
Memory Allocation: Linear
Homogeneous Data can be stored
Examples: Array, Linked List, Stack Queue.
Array
Linear Vs. Non- Linear
Linear: Data items are not ordered Sequentially or Linearly one after another.
Traversing: Cannot be traversed in single run.
Memory Allocation: Non-Linear
Examples: Graphs, Trees.
Trees Graphs
Static:
Size of the Structure is fixed.
Dynamic:
Size of the Structure is Varies Runtime.
Data Structure Classification:
Data Structure
Persistent Ephemeral
Persistent Data Structure :
Types