Analysis of Algorithms: Dr. Muhammad Habib
Analysis of Algorithms: Dr. Muhammad Habib
(CSC-333)
Instructor:
Dr. Muhammad Habib
Algorithm
Problem
2
Algorithm
3
Algorithms as a Technology?
• Suppose computers are ideally fast and
memory free
– Still need to study, design, learn, and use
algorithms?
• Yes, it is still desirable that the solution method
terminates and
• Produces the correct output
– Bounding resources for computing are:
• Computing time
• Space in memory
Algorithms as a Technology?
• Rapid advancement in technologies such as:
– Computer architectures and Graphical User Interfaces
– Integrated Web technologies and Wireless networking
• Applications rely heavily on algorithms
– Does the application rely on hardware?
• Hardware design use algorithms
– Does the application rely on GUI?
• GUI design relies on algorithms
– Does the application rely on networking?
• Routing in networks relies heavily on algorithms
Algorithm Vs Program
• Algorithm
• Defines specific steps required to solve a problem
• Program
• A computer program is the implementation of an
algorithm
Algorithm Program
Design Implementation
Domain Knowledge Programming Knowledge
Any language Programming language
Hardware/OS Independent Hardware/OS Dependent
Analysis Testing
Thank you