Important Notice:

Algorithm & Flowchart

Algorithm & Flowchart

22 views 1 min read

Algorithm

An algorithm is a step-by-step procedure to solve a problem.

Properties of Algorithm

  • Input: Takes inputs
  • Output: Produces output
  • Definiteness: Clear steps
  • Finiteness: Must terminate
  • Effectiveness: Feasible steps

Example: Largest of 2 numbers

  1. Start
  2. Read A, B
  3. If A > B then print "A is largest"
  4. Else print "B is largest"
  5. Stop

Flowchart SymbolsSymbolNameUseOvalTerminalStart/StopRectangleProcessCalculationDiamondDecisionYes/NoParallelogramI/OInput/OutputArrowFlow lineDirection

Related Notes