Formal definition of algorithm
An algorithm is an ordered set of unambiguous, executable steps that define a terminating process.
Algorithm representation
Primitives:
Programming language:
What is a flow chart?
A flow chart is a picture of the separate steps of a process in a sequential order
What’s pseudo code?
It’s a notational system in which algorithms can be expressed (less formal than real programming language code)
Loop control
Iterative structures
- Post test loop: 1 try if condition false
Insertion sort
Recursion
Algorithm efficiency
Software verification