Algorithm Analysis Chapter 1
Algorithm Analysis Chapter 1
Chapter one
Introduction
1
Outline
• Introduction
• Study of algorithms
• Motivation
• Efficient programs
• Objective
2
Introduction
• The same problem can frequently be solved with
algorithms that differ in efficiency.
• The difference between the algorithms may be
immaterial for processing a small number of data items,
• but these differences grow proportionally with the
amount of data.
Study of algorithms
– Design of algorithms
– Algorithm validation
– Analysis of algorithms
– Algorithm testing
3
Design of algorithms
• Various designing techniques are available which yield
good and useful algorithm.
• In the forthcoming sections, we will deal with the major
methods of algorithm design.
• These techniques are not only applicable to only
computer science but also to other areas such as
electrical engineering.
6
Algorithm analysis cont’d...
• To compare the efficiency of algorithms, a measure
of the degree of difficulty of an algorithm called
computational complexity is used.
7
Algorithm analysis cont’d...
8
Algorithm analysis cont’d...
9
Algorithm testing
This phase involves testing of a program.
10
Motivation:
Why we study this subject?
11
Efficient programs
Factors influencing program efficiency:
– Problem being solved
– Programming language
– Compiler
– Programmer ability
– Programmer effectiveness
– Algorithm
12
Objective
13