What Is Algorithm? Algorithm Basics
What Is Algorithm? Algorithm Basics
Algorithm
Basics
The word Algorithm means “a process or set of
rules to be followed in calculations or other
problem-solving operations”. Therefore
Algorithm refers to a set of rules/instructions
that step-by-step define how a work is to be
executed upon in order
What are the Characteristics of an
Algorithm?
Characteristic
• Clear and Unambiguous
• Well defined inputs
• Well defined outputs
• Finite-ness
• Feasible
• Language independent
Howthattois todesign
• The problem an Algorithms?
be solve by this algorithm
• The constraints of the problem that must be considered while
solving the problem
• The input to be taken to solve the problem
• The output to be expected when the problem is solve
• The solution to this problem, in the given constraits
Then the algorithm is written with
the help of above parameters such
that it solves the problem
• Step 1: Fulfilling the pre-requisites
• Step 2: Designing the algorithm
• Step 3: Testing the algorithm by
implementing it.
Advantages
• Easy to understand
• Algorithm is a step-wise representation of a solution to a
given problem.
• In Algorithm the problem is broken down into smaller pieces
or steps hence,
• it is easier for the programmer to convert it into an actual
program.
Disadvantages
• Writing an algorithm takes a long time so its time consuming
• Branching and looping statements are difficult to show in
Algorithms
What is a Flowchart?