Computational Thinking, Algorithms And Programming Flashcards
What is abstraction?
A technique that simplifies a problem by removing unnecessary detail so that you can focus on the important parts that are relevant to the problem
Give two examples of abstraction in every day life
- Maps
- Money
What is decomposition?
Decomposition means breaking a complex problem into smaller, more manageable sub-problems.
Each smaller part can then be solved individually, before all the sub-solutions are combined to solve the original problem.
Give two advantages of decomposition
- Decomposition allows large teams to each take a part of a problem and work on it.
- Decomposition allows seemingly impossible problems to be solved by splitting them into simple tasks.
What is a structure chart?
- Structure charts are used to visually represent breaking a large problem down into the smaller parts that make it up.
- Each box represents a smaller problem to be solved.
- Lines show which bigger problem the box is a part of.
What is algorithmic thinking?
A way of solving problems by producing algorithms.
What is an algorithm?
An algorithm is a reusable set of instructions (a series of steps) to solve a given problem.
Give two examples of algorithms used in every day life
- Make a cup of tea
- Get dressed
How are algorithms written in computing?
- Algorithms can be written as a set of numbered steps to follow.
- A non-technical example of a written algorithm is a cooking recipe.
- In computing, we often represent algorithms using pseudocode or flow diagrams.
What is pseudo code?
- A way to write out algorithms using code-like statements.
- It is intended to be very readable, and easy to understand.
What is the purpose of pseudo code?
- Pseudocode isn’t a programming language.
- Pseudocode is used to plan algorithms, focusing on the logic and steps rather than language-specific syntax.
What is the main focus of pseudo code?
To set out the logic of an algorithm
What is a flow diagram?
- Flow diagrams are used to visually represent the steps that make up an algorithm.
- A standard set of shapes are used to represent different types of step.
- Arrows represent the flow of control, or what to execute next.
What part of a flow diagram does the oval represent?
Start or end of a program
What part of a flow diagram does the rectangle represent?
A process
What part of a flow diagram does the parallelogram represent?
Input or output
What part of a flow diagram does the diamond represent?
A decision;
* A decision has two labelled arrows coming out of it.
* The ‘Yes’ arrow is followed if the condition in the diamond was true, otherwise the ‘No’ arrow is followed.
Can pseudo code be run on the computer?
No
What is an identifier in an algorithm and how can it help with interpreting?
- Identifiers are the names of variables, constants, and subroutines.
- These often give strong clues about the purpose of an algorithm.