Professional Documents
Culture Documents
Lecture 2 - Algorithm and Algorithm Analysis
Lecture 2 - Algorithm and Algorithm Analysis
• Formula
• Uses mathematical expressions/theorems.
• To calculate the area A, of a rectangle
Area = Length x Width
Algorithm…
Algorithm Representation…
• Flow Chart
• The use of connected shapes with lines.
Algorithm…
Algorithm Representation…
• Pseudocode
• They are notations that resemble programming language representation.
• It is not executable by computing devices.
• Intended for human reading and not machine reading.
• Words
Example: Multiply Length and Width to get the Area.
Algorithm…
Problem Solving
• Programming is a process of problem solving.
• Books
• E-books
• Library