Algorithms
- Created by: Samuel1746
- Created on: 14-09-15 19:28
View mindmap
- Algorithms
- Algorithms can be used for anything, not just computing
- There are 3 simple constructs in algorithms
- Iteration - a step or sequence of steps that are repeated until a condition is met
- All iteration starts with a phrase like: DO WHILE or REPEAT UNTIL
- Selection - a decision making path with two or more outcomes, most commonly yes/no
- All selection steps start with certain statements like: IF, IF-THEN or IF-ELSE
- Iteration - a step or sequence of steps that are repeated until a condition is met
- Before answering any algorithm question, you should always look for two things
- What data you have to work with provided by the question to answer the question
- What information should the solution provide
- Pseudocode is used to write an algorithm, it is basically very basic shortened English
Comments
No comments have yet been made