Algorithmic Foundations and Problem Solving Week 1
CS10115
Algorithmic Foundations And
Problem Solving
Algorithmefficiency:asymptoticanalysis
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong at U
CS10115
Algorithmic Foundations And Problem
Solving
The RSA Algorithm
DrWe njinLu
De p a rtm e nto fC o m p ute rS c ie nc e
What we have learnt so far
methodology
Asymp
totic
idea
Brute
force
Divide &
Conquer
Dynamic
Programming
Greedy
Space/Ti
me
Branch
CS10115
Algorithmic Foundations And Problem
Solving
CopingwiththeLimitationsofAlgorithmPower
Copingwith
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
AlgorithmicFoundations
COMP108
TacklingDif
CS10115
Algorithmic Foundations And Problem
Solving
The Limitations of Algorithm Power
- Introduction to Computational Complexity Theory
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Whatwehav
CS10115
Algorithmic Foundations CS10115
Algorithmic Foundations And Problem
Solving
More Shortestpaths:BellmanfordAlgorithm,
FloydsAlgorithm
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Algor
Algorithmic Foundations CS10115
CS10115
Algorithmic Foundations And Problem
Solving
DoesGreedyalgorithmalwayswork?Knapsack
Problem
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Greedymethods
H
Algorithmic Foundations CS10115
CS10115
Algorithmic Foundations And
Problem Solving
Greedy Methods
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Algorithmic Foundations CS10115
Greedymethods
L
CS10115
Algorithmic Foundations And
Problem Solving
Dynamic Programming
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Dynamicprogramming
anefficientwaytoimplementsome
divideandconqueralgorithm
CS10115
Algorithmic Foundations And
Problem Solving
Graph Theory
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Learningoutcomes
Abletotellwhatisanundirectedgraphandwhatisa
directedgraph
Know
CS10115
Algorithmic Foundations And
Problem Solving
Divide and Conquer
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
DivideandConquer
Learningoutcomes
Understandhowdivideandconquerworksandabl
Algorithmicfoundations
CS10115atXJTLU
CS10115
Algorithmic Foundations And
Problem Solving
Algorithmefficiency+Searching/Sorting
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Learningoutcomes
A
AlgorithmicFoundations
COMP108
CS10115
Algorithmic Foundations And
Problem Solving
Algorithmefficiency+Searching/Sorting
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Learningoutcomes
Algorith
AlgorithmicFoundations
COMP108
CS10115
Algorithmic Foundations And
Problem Solving
Algorithmefficiency+AsymptoticNotation
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
AlgorithmicFoundations
C
CS10115
Algorithmic Foundations And Problem Solving
Revision
Revision
DrWenjinLu
DepartmentofComputerScience
Acknowledgment: The slides are adapted from ones by Dr. Prudence Wong
Whatwehavelearntsofar
methodology
Asym
ptotic
Bruteforce
Conquer
idea
proble