Pseudocode and Algorithm in relation to Structured Programming 2
Pseudocode and Algorithm in relation to Structured Programming 2
(i) Conversion of pseudocode to a program (in any programming language) is much easier than a
flowchart
(ii)Pseudocodes are much easier to modify (when required) as compared to a flowchart.
(iii) Less time and effort are used while writing a pseudocode in comparison to drawing a flowchart
(iv) Pseudocodes consume lesser space than flowchart
(v) Pseudocode implements structured design elements while flowchart does not.
Algorithm
Algorithm is a set of instructions or steps used solve a specific problem or perform a particular
task. It is usually written in a natural human language like English Language.
Characteristics/properties of Algorithms
(i) Input: An algorithm receives input, this can be inform of numbers, text, images, or other data
types.
(ii) Processing: An algorithm processes the input data using a series of instructions or operations.
(iii) Output: An algorithm produces output, which is the result of the processing step.
(iv) Finiteness: An algorithm must terminate after a finite number of steps.
(v) Correctness: An algorithm must produce the correct output for a given input.
(vi) Generality: An algorithm should be able to handle a wide range of inputs and produce the
correct output.