Big O Notation and Classification of Algorithms (AQA A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
Algorithm definition
Algorithm definition
Set of instructions that performs a specific task
Big O notation purpose
Big O notation purpose
Method to describe time/space complexity of algorithms
Time complexity meaning
Time complexity meaning
How long an algorithm takes to run
complexity type
complexity type
Constant time - same execution time regardless of input size
complexity type
complexity type
Linear time - runtime proportional to input size
complexity type
complexity type
Polynomial time - runtime proportional to square of input
complexity type
complexity type
Logarithmic time - e.g., binary search splits data repeatedly
Tractable problem
Tractable problem
Problem solvable in polynomial time
Intractable problem
Intractable problem
Theoretically solvable but not in polynomial time
Heuristic algorithm purpose
Heuristic algorithm purpose
Provides approximate solution to intractable problems
