Introduction To Algorithms
Introduction To Algorithms
Introduction To Algorithms
Tutor Name:
Shahid Hussain
1
Books
Greedy approach
Dynamic programming
Graph algorithms; Shortest paths; Network flow;
Disjoint Sets; Polynomial and matrix calculations;
String matching
NP complete problems
Approximation algorithms.
4
Data Structure Recap
5
Data Structure Recap
Database
Refer to Permanent storage and manipulation of
6 data
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)
11 Dope Vector method is used to convert 2-D into 1-D
Data Structure Recap
12
Data Structure Recap
14
Data Structure Recap
15
Data Structure Recap
16
Summary
18