Module 1 Data Structure
Module 1 Data Structure
Introduction To
Data Structure
What is DATA STRUCTURE? Any Idea…
Data Structure
A study of various ways of storing and organizing
data in a computer.
Data Structure is designed
Linked Lists
array
linked list
queue
tree stack
Types of Data Structure
Linear : values are arrange in linear fashion.
– Array
– Linked-list
– Stack
– Queue
Types of Data Structure
Non-Linear : The data values in this structure are not
arranged in order.
Data2
Data1
Stacks Operation
Insert – Adding Data Item
Container
Elements
Queues
• Collection with access only to the item that
has been present the longest
Front Back
• Remove
• Front
Queues Operations
Queues Example
List
• A Flexible structure, because can grow and
expand on demand.
last
first
List Operations
Elements can be:
Inserted
Deleted
Accessed
At any position
List Example
Tree
• A Tree is a collection of elements called nodes.