Algorithm and Flowchart
What is an algorithm?
https://www.youtube.com/watch?v=40GHilyDwpc
An algorithm is a list of rules to follow in order to solve a problem. Algorithms need to have their
steps in the right order.
Why is it better for a programmer to design the algorithm before starting to
write the code?
You use program to tell a computer what to do. Before you write program code you need
an algorithm. To make a computer do anything, you have to write a computer program. To write
a computer program, you have to tell the computer, step by step, exactly what you want it to do.
The computer then "executes" the program, following each step mechanically, to accomplish the
end goal.
When you are telling the computer what to do, you also get to choose how it's going to do it.
That's where computer algorithms come in. The algorithm is the basic technique used to get the
job done. Let's follow an example to help get an understanding of the algorithm concept.
Flow Chart
A flow chart is a graphical or symbolic representation of a process or algorithm. Each step in
the process is represented by a different symbol and contains a short description of the process
step. The flow chart symbols are linked together with arrows showing the process flow
direction.
An organized combination of shapes, lines, and text that graphically illustrates a
process or structure
What is a Flowchart used for ?
Crystal Clear Communication
Flowcharts are recognized as one of the most important ways to effectively
communicate ideas between people who may differ in knowledge, education, and
position
Without flowcharts, you can spend a ton of energy explaining how the process is
to be done!
Flowchart Symbols
Exercise:
Write down the steps How you would make a cup of tea?
These steps or instructions are called Algorithm.
Q2. Algorithm to fix a lamp.
Study the following questions for your Exam.
Q1. What is an algorithm?
Q2. What is a flowchart? Use?
Q3. Study different symbols used in flowchart.
Q4. Study to write an algorithm and Draw flowchart for a given problem.
Consider the following problem,