Chapter 2: Algorithms Flashcards
What is an algorithm?
Set of step-by-step instructions for solving a problem
What is an input?
Data used by an algorithm that can affect what is required for correct output
What is an output?
Results produced by an algorithm
What is a solution?
Algorithm that always gives correct outputs when provided with valid inputs
What is decomposition?
Breaking down a complex problem of process into smaller and more manageable parts
What is a sub-problem?
A problem whose solution contributes to the solution of a bigger problem
Decomposing a problem
Incremental approach
Modular approach
Pattern recognition
Identifying similarities among two or more items
Generalisation
Technique of replacing two or more similar problems or solution into a single, more general problem or solution