Representing Algorithms (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
First step when given an algorithm
First step when given an algorithm
Figure out what it's supposed to do
How to understand simple algorithms
How to understand simple algorithms
Look at code directly/visual inspection
Tool needed for complex algorithms
Tool needed for complex algorithms
Trace tables (for systematic analysis)
What is a trace table?
What is a trace table?
Detailed record tracking algorithm execution step by step
4 things trace tables record
4 things trace tables record
Code lines, variable values, outputs, comments
Purpose of using trace tables
Purpose of using trace tables
Track how algorithm processes data at each stage
Variable persistence in programs
Variable persistence in programs
Variables keep values throughout unless changed
Step-by-step tracking principle
Step-by-step tracking principle
Every single line of algorithm gets recorded
Method for simple algorithms
Method for simple algorithms
Visual inspection of code
Method for complex algorithms
Method for complex algorithms
Systematic analysis using trace tables
Stock mgmt algorithm purpose (example)
Stock mgmt algorithm purpose (example)
Determine when stock needs reordering based on inventory
Trace table column labels needed
Trace table column labels needed
Line, variable names, Output, Comments
