Algorithms and Problem Solving (algorithms:sequence of steps to be…
Algorithms and Problem Solving
algorithms:sequence of steps to be followed to solve the problem by computer.
phase 1: derivation of algorithm to solve a problem
phase 2: conversion of algorithm to a program
algorithm development process
step1:Obtain a description of the problem.
step 2: Analyse the problem
step 3: Develop a high-level algorithm
step 4: Refine the algorithm by adding more detail.
step 5: Review the algorithm.
notation for writing programs
ex: c,c++,python,java etc
algorithm building block
order of instruction execution
lines of code executed based on true or false condition
controls the execution to choose which of two or more paths have to be executed
informal language in plain English later converted to programming langage
one statement per line
capitalized initial keyword ex:READ
show hierarchy and multi-line and language independent
graphical representation of algorithm
• Process / Operation Symbols
• Branching and Control of Flow Symbols
• Input and Output Symbols
• File and Information Storage Symbols
• Data Processing Symbols
follows the path from starting till end of algorithm
depending on output
depending on input
algorithm calling itself based on condition