STEPS FOR WRITING
ALGORITHM
ā€œAn algorithm must be
seen to be believed.ā€-
Donald Knuth
Determine the
Input/Output
• Have a good idea of what you are aiming to accomplish.
• Can be determined by taking note of steps to get there.
Decide on a
starting point
• Find a starting point for listing the steps of
process.
Find the
ending point
• Your algorithm must end
at some point otherwise it
will be incomplete.
• You should know where to
end.
List all the
steps
• From the starting point with the
inputs, list every small required step
to achieve the ending point and the
output.
Determine
how each step
will be
accomplished
• Think about how each steps can be
coded
Review the
algorithm
• Evaluate all the processes
and make sure that the
algroithm accomplishes
the correct output.

Steps for writing algorithm