Section 4 - Algorithms Flashcards
What are the three techniques for computational thinking?
Decomposition, algorithmic thinking, abstraction
What is decomposition?
Breaking down a complex problem into smaller problems and solving each one individually.
What is algorithmic thinking?
A logical way of getting from the problem to the solution. If the steps you take to solve a problem follow an algorithm then they can be reused and adapted to solve similar problems in the future.
What is abstraction?
Picking out the important bits of information from the problem, ignoring the specific details that don’t matter.
What is an algorithm?
A set of instructions for solving a problem, that can be in the from of pseudocode or flow charts
Advantages of pseudocode?
- Quick to write
- Easy to convert into any programming language
What is the oval for in pseudocode?
Beginning/end
What is the parallelogram for in pseudocode?
Inputs/outputs
What is the rectangle for in pseudocode?
General instructions, processes and calculations
What is the diamond for in pseudocode?
Decisions
What is the rectangle with lines for in pseudocode?
Sub routines - reference to other flow diagrams
What is the arrow for in pseudocode?
Connecting boxes and showing direction
What is a sequence?
A set of instructions in a specific order
What is selection?
A section of code that is only run if certain conditions are met
What is iteration?
Repeating steps or instructions in a loop until certain conditions are met