Algorithm, Pseudocode and Flowchart Flashcards
is a step by step procedure for
solving a problem.
Algorithm
was an Islamic mathematician who
wrote on Hindu Arabic numerals.
Al’Khwarizmi
The word is derived from the phonetic pronunciation
of the last name of Abu Ja’far Mohammad in Musa al
Khwarizmi.
Algorithm
Is not the complete code or program, it is
just the core logic of a problem, which can be
expressed either as an informal high level
description.
Algorithm
What are the steps in writing an algorithm
1.Define the problem
2. List the inputs and the outputs
3. Describe the steps needed to convert or manipulate the input to produce the outputs
4. Test the algorithm
What are the three classifications of algorithm
- Sequence
- Branching (Selection)
- Loop (Repetition)
It is where one statement is executed after the another
Sequence
Is construct where statements can executed or
skipped depending on whether a condition evaluates to
TRUE or FALSE.
Branching (Selection)
Where statements can be executed repeatedly
until a condition evaluates to TRUE or FALSE.
Loop (Repetition)
Also known as Program Design Language
Pseudocode
It is a method of describing computer algorithms using a
combination of natural language and programming
language
Pseudocode
It is a method of describing computer algorithms using a
combination of natural language and programming
language
Pseudocode
It is also an outline of a program written in a form that
can easily be converted into real programming
statement but cannot be compiled or executed.
Pdeudocode
What are the 5 rules in writing a Pseudocode
- Write only one statement for line
- Capitalized initial word
- Indent to show hierachy
- End multiline structure
- Keep statement language independent
Is a graphical representation of an algorithm or
process, showing the steps as boxes of various
kinds and their order by connecting these with
arrows.
Flowchart