Big O Notation and Classification of Algorithms (AQA A-Level Computer Science): Flashcards

📚Flashcards
Big O Notation and Classification of Algorithms
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

Algorithm definition

Set of instructions that performs a specific task

Big O notation purpose

Method to describe time/space complexity of algorithms

Time complexity meaning

How long an algorithm takes to run

O(1)O(1) complexity type

Constant time - same execution time regardless of input size

O(N)O(N) complexity type

Linear time - runtime proportional to input size

O(N2)O(N^2) complexity type

Polynomial time - runtime proportional to square of input

O(logN)O(\log N) complexity type

Logarithmic time - e.g., binary search splits data repeatedly

Tractable problem

Problem solvable in polynomial time

Intractable problem

Theoretically solvable but not in polynomial time

Heuristic algorithm purpose

Provides approximate solution to intractable problems

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.