Before a computer can perform a task it must have an algorithm that tells it what to do.
An algorithm is a set of steps that defined how a task is performed. An algorithm is an ordered set of unambiguous executable steps, defining a terminating process.
Solving Computational Problem
Computational Problem is described by the property that the output has to satisfy given the input.
Problem Solving Techniques
- Analyse the problem
- Outline the problem requirements
- Design steps (algorithm) to solve the problem.
Algorithm Development
- Step by step problem-solving process
- Solution achieved in finished amount of time.
Problem Solving Process
Step 1 - Analyse the problem
- Outline the problem and it's requirement
- Design steps (algorithm) to solve the problem
Step 2 -Implement the algorithm
- Implement the algorithm in code
- Verify that the algorithm works
Step 3 - Maintenance
- Use and modify the program if the program domain changes
Below are examples of problem solve using algorithm: