Data - Structure Lecture - 1
Data - Structure Lecture - 1
and Algorithms
Lecture 1
• Introduction to Data Structure
• Big O
• Recursion
• Stacks
• Queues
Course • Lists and linked lists
Outline • Trees
• Sorting
• Searching
• Graphs
• Hashing
Introduction to Data
Structure and
Abstract Data Types
What is Data Structure?
Linked list
queue
tree stack
• The choice of particular data model
depends on two consideration:
• It must be rich enough in
structure to represent the
Selection of relationship between data
Data elements
Structure • The structure should be simple
enough that one can effectively
process the data when
necessary
Types 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)
The Core Operations of ADT
• Every Collection ADT should provide a way to:
• add an item
• remove an item
• find, retrieve, or access an item
• more possibilities
• is the collection empty
• make the collection empty
• give me a sub set of the collection
Software life cycle
• Without software a computer is of no use.
• A program goes through many phases called the life cycle of
the program. The three fundamental stages through which a
program goes are
development,
Use(Once users start using the program, they most
certainly discover problems or have suggestions to
improve it. )
maintenance. (the program is modified to fix the
(identified) problems and/or to enhance it.)
• Analysis
Software • Design
Development
Phase
• Implementation