Algorithm Flashcards
1
Q
- It is a step by step procedure for solving a problem.
- It is not the complete code or program, it is just the core logic of a problem
A
Algorithm
2
Q
It derived from the phonetic pronunciation of the last name of Abu Ja’far Mohammad in _______
A
Musa al-Khowarizmi
3
Q
Enumerate the steps in writing an algorithm
A
- Define the problem
- List the inputs
- Describe the steps needed to convert or manipulate the inputs to produce the outputs.
- Test the algorithm
4
Q
A good algorithm must be?
A
- It must be correct
- It must be finite
- It must terminate
- It must be unambigous
- It must be space and time efficient
5
Q
Classification of algorithm according to Structures
A
- Sequence
- Branching (Selection)
- Loop (Repetition)
6
Q
Is construct where one statement is executed after another.
A
Sequence
7
Q
Is construct where statements can executed or skipped depending on whether a condistion evaluates to TRUE or FALSE
A
Branching (Selection)
8
Q
It is where the statements can be executed repeatedly until a condition evaluates to TRUE or FALSE.
A
Loop (Repetition)