Design and Analysis of Algorithms CSC201: Shahid Hussain
Design and Analysis of Algorithms CSC201: Shahid Hussain
CSC201
Shahid Hussain
1
Books
2
Course Outline
3
Course Outline (Cont !!!)
4
Data Structure Recap
5
Data Structure Recap
– Database
Refer to Permanent storage and manipulation of data
E.g. MS Access, Foxpro etc
Data structure is way to process and manipulate data through set of operations
6
Data Structure Recap
7
Data Structure Recap
Type of Data Structures according to the presentation of data (i.e. How data is
presented)
1. Linear Data Structure
1. Sequential Data Structures
1. Array
2. Queue
3. Stack
2. Pointer Data Structure (Linked List)
2. Non Linear Data Structure
1. Tree
2. Graphs
8
Data Structure Recap
9
Data Structure Recap
10
Data Structure Recap
Array
– Linear and sequential
– Array is combination of homogenous element with
N Consecutive index numbers (Such as 1,2,3,4, . . .)
Successive memory location (such as 102, 104, 106 . . . )
– Successive memory location depend on the size of data types, such as in C language size of integer data type is 2
bytes)
– Two types of array are commonly used.
One Dimensional (1-D) ( Only logical data structure)
Two Dimensional (2-D) (Physical Data structure)
– Dope Vector method is used to convert 2-D into 1-D
11
Data Structure Recap
12
Data Structure Recap
13
Data Structure Recap
14
Data Structure Recap
15
Data Structure Recap
16
Summary
17
What to be Next
18