Algorithm Design Notes Ch-7
Algorithm Design Notes Ch-7
Notes
Program Development Life Cycle
Consists of: Analysis, Design, Coding, Testing.
It is a cycle, not a linear process. Revisions often needed during development.
Algorithms
A set of instructions for solving a problem or performing a task.
Can be expressed using pseudocode or flowcharts.
Real-life example: Driving a car. Software example: Alarm checking if time and day
match.
Flowchart Components
Terminator: Start/End of process.
Process: Represents an action/instruction.
Input/Output: Data input or information output.
Decision: Used to decide next step, has two outcomes.
Subroutine: Represents a procedure within a program.
Flowline: Arrows indicating the flow of the algorithm.
Testing Types
Normal Data: Expected valid input.
Extreme Data: Largest/smallest valid values.
Abnormal Data: Invalid data that should be rejected.
Boundary Data: Test values just inside and just outside valid range.