Tuesday, 23 February 2016

Algorithms

Designing an Algorithm:

-specify what you must accomplish
-Design the algorithm
-Check the correctness(dry run / trace table)
-Analysis of the algorithm
-implement the algorithm
-Test the resulting program

All possible inputs of an algorithm are known as the domain
All possible outcomes of an algorithm are known as the codomain

A Basic Algorithm:
Input x --> algorithm f --> output y

No comments:

Post a Comment