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
Indicates any type of internal operation inside the processor or memory, represented by rectangles.
Process
Indicates that the computer is to obtain or output results, represented by parallelograms
Input/Output
Used to ask question that can be answered in a binary format (Yes/No, True/False)
Decision
Pairs of labeled connectors replaced long or confusing lines on a flowchart page. Represented by a small circle with a letter inside
On-page connector
A labeled connector for use when the target is on another page. Represented by as a home plate-shaped pentagon.
Off-page connector
Used to invoke a subroutine or interrupt program
Predefined process/Modules
Indicates the starting or ending of the program, process, or interrupt program, presented by rounded triangles
Terminal
Show direction of flows
Flow lines
What are the advantages of using a flowchart
- Communication
- Effective Analysis
- Proper Documentation
- Efficient Coding
- Proper Debugging
- Efficient Program Maintenance
What are the limitations of using a flowchart
- Complex Logic
- Alterations and modifications
- Reproduction