Efficiency of Simple Algorithms (AQA GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
Algorithm efficiency
Algorithm efficiency
How well an algorithm performs (time & resources needed)
How algorithm efficiency is measured
How algorithm efficiency is measured
By counting steps/operations, not actual time
Why efficiency isn't measured by actual time
Why efficiency isn't measured by actual time
Computers run at different speeds
Multiple solutions to same problem
Multiple solutions to same problem
Different approaches may have very different efficiency levels
Sorting algorithm definition
Sorting algorithm definition
Instructions to arrange a list in order (e.g., smallest to largest)
Searching algorithm definition
Searching algorithm definition
Locates a specific value in a list or confirms it exists
When efficiency matters most
When efficiency matters most
With larger data - small differences become huge time savings
Printing 1-100000: separate outputs vs loop
Printing 1-100000: separate outputs vs loop
100000 statements vs changing 1 number - loops more efficient
Euclidean method vs division method for GCD
Euclidean method vs division method for GCD
Euclidean more efficient - requires fewer steps
Impact of small algorithm improvements
Impact of small algorithm improvements
Can lead to massive time savings in real-world applications
Working algorithm = best way?
Working algorithm = best way?
No - just because it works doesn't mean it's the best way
Importance of sorting & searching algorithms
Importance of sorting & searching algorithms
Fundamental building blocks - reusable in many programmes
