Problem Solving Flashcards
What is algorithmic thinking?
Algorithmic thinking is 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.
How do we represent algorithms in computing?
In computing, we often represent algorithms using pseudocode or flow diagrams.
How do we interpret algorithms?
Look out for identifiers, identify inputs and outputs, examine output messages and looking for comments.
What are identifiers?
Identifiers are the names of variables, constants and subroutines. These give clues bout the purpose of an algorithm.
What are comments?
Comments are descriptions of the code. They often state the purpose of the algorithm. They are often the clearest way to identify an algorithm.
What is pseudocode?
Pseudocode is 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 pseudocode?
Pseudocode is not an actual programming language, it is used to plan algorithms, focusing on the logic and steps rather than language-specific syntax.
What are flow charts?
Flow charts are used to visually represent the steps that make up an algorithm.
What are ovals used for in flow charts?
An oval is used for the start and end of a program.
What are rectangles used for in flow charts?
A rectangle is used to represent a process.
What are parallelograms used for in flow charts?
A parallelogram is used to represent an input or an output.
What are diamonds used for in flow charts?
A diamond is used to represent a decision.
Why do the diamonds have labelled arrows coming out of it in flow charts?
A diamond/decision has two labelled arrows coming out of it to represent what happens if the condition in the diamond was true or false. ‘Yes’ arrows are for true, and ‘No’ arrows are for false.
What are the common mistakes in programming?
Incorrect identifiers - such as lowercase and uppercase letters and similar looking character like 0 and O.
Incorrect operators - like less than signs put in the wrong way.
Missing processes - like when line of codes are forgotten.