ALGORITHM
Algorithm is a set of well-defined instructions in sequence to solve a problem . It is a step by
step procedure for solving a problem.
Definition Algorithm is a sequence of instructions to be carried out in order to
solve a problem.
Example
Step 1: Start
Step 2: Let a=10, b=20
Step 3: c= a+b
Step 4: Print c
Step 5: Stop
Characteristics of an Algorithm:
An algorithm must has following characteristics:
1. Finiteness: An algorithm should have finite number of steps.
2. Input: An algorithm may have many inputs and no inputs at all.
3. Output. It should result in at least one output
4. Definiteness: Each step must be clear, well defined - and precise.
5. Effectiveness: Each step must be Simple.
Advantages of Algorithms:-
- It is easy to understand
- Algorithm is a stepwise representation of a solution to a given Problem.
- In Algorithm the problem is broken down into smaller steps.
- It is not dependent on any Programming language.
- It reduced the complexity of Problem.
Disadvantages of Algorithms:-
- Algorithms are Time Consuming.
- Big tasks are difficult to put in Algorithms.
- Difficult to show branching and looking.
1 Comments
Good
ReplyDelete