DS Mod-1
DS Mod-1
Manju K
1 Introduction
3 Algorithm
Introduction
System life cycle is a series of stages that are worked through during the
development of a new information system.
A lot of money and time is wasted if a system is developed that doesn’t work
properly or perform exactly how it is required.
System cycle- 5 phases
Requirements
Analysis
Design
Refinement and Coding
Verification
Requirements
Analysis
Design
The designer approaches the system from the perspective of both the data
objects that the program needs and the operations performed on them.
Program need leads to creation of abstract data type(ADT)
Operations lead to the specification of algorithms and a consideration of
algorithm design strategies.
Both are language independent
Verification
Requirements
Analysis: Bottom-up vs top-down
Design: data objects and operations
Refinement and coding
Verification
Proving program correctness
Testing
Debugging
Algorithm
Algorithm
Example
Performance analysis
Space Complexity
Time Complexity
Time taken by a program P is the sum of compile time and run time.
T (P ) = c + Tp (I)
The time Tp taken by a program P is the sum of its compile time and run time.
Compile time is similar to the fixed space component, since it does not depend on
instance characteristics.
Alternatively execution time is the number of operations the program performs.
The best case step count is the minimum number of steps that can be
executed for the given parameters.
The worst-case step count is the maximum number of steps that can be
executed for the given parameters.
The average step count is the average number of steps executed on instances
with the given parameters.
Asymptotic notations
Big-Oh
Big-Omega
Big-Theta
Thank you!
E-mail: [email protected]