Chapter 2: How Can Algorithms Be Used to Solve Problems? Flashcards
Algorithm
Set of step-by-step instructions for studying a problem
Input (algorithms)
Data or information used by an algorithm that can affect what is required for correct output
Output (algorithms)
Result produced by an algorithm
Problem definition
Definition of a task by specifying the requirements for valid input and correct output
Solution
Algorithm that always gives output satisfying the specified requirements when provided with some valid input
Decomposition
Breaking down a complex problem or process into smaller and more manageable parts
- Incremental approach:
- Identify quantitative features of the input or output
that are causing the problem to be too large to
handle
- Modular approach:
- Solve simple examples of the problem manually
and identify tasks that are of different natures.
Sub-problem
A problem whose solution contributes to the solution of a bigger problem
Pattern-recognition
Identifying similarities or common elements among two or more items
Generalisation
Technique of replacing two or more similar problems or solutions with a single, more general problem or solution