Fitness for purpose and efficiency (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
15 cards from this deck
ShowHide
Practise the cards
15 cards from this deck
Fitness for purpose meaning
Fitness for purpose meaning
Program does exactly what it's supposed to do
Efficiency in programming meaning
Efficiency in programming meaning
Using least computer power, memory, and time possible
Things to check for efficiency
Things to check for efficiency
Comparisons, loops, memory usage, unnecessary data copies
Loop optimization: early stopping benefit
Loop optimization: early stopping benefit
Stop loop when you find what you're looking for
Why sort data before searching
Why sort data before searching
Allows more efficient searching and early termination
While loops advantage over for loops
While loops advantage over for loops
Can stop early when don't need to check everything
Lists vs separate variables for similar data
Lists vs separate variables for similar data
Use single lists instead of multiple separate variables
Memory efficiency: data copying
Memory efficiency: data copying
Don't make unnecessary copies of data
Early termination in sorted search means
Early termination in sorted search means
Stop when you pass where the number should be
When to use dictionaries
When to use dictionaries
For quick lookups of data
Nested loops efficiency issue
Nested loops efficiency issue
Avoid them when possible for better efficiency
Memory optimization: variable reuse
Memory optimization: variable reuse
Reuse variables where appropriate
Common mistake: loops after finding target
Common mistake: loops after finding target
Not stopping loops early when answer found
Common mistake: similar data storage
Common mistake: similar data storage
Using separate variables instead of lists
Key measures of program efficiency
Key measures of program efficiency
Count comparisons and loop passes
