Data Structure and Algorithms Lecture 1
Data Structure and Algorithms Lecture 1
Algorithms Lecture 1
Lecture 1
Introduction to Data
Structure and
Abstract Data Types
What is Data Structure?
Data structure is a representation of data
and the operations allowed on that data.
● A data structure is a way to store and organize data in order to facilitate the
access and modifications.
Linked list
queue
tree stack
Selection of Data Structure
Data Structures
Physical implementation of an ADT
data structures used in implementations are provided in a
language (primitive or built-in) or are built from the language
constructs (user-defined)
Each operation associated with the ADT is implemented by one
or more subroutines in the implementation
Abstract Data Type
Data1
Queues
Collection with access only to the item that has been present the longest
Last in last out or first in first out
enqueue, dequeue, front
priority queues and dequeue
Front Back