Algorithms (Edexcel A-Level Further Mathematics): Flashcards

📚Flashcards
General 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

Definition of an algorithm

Step-by-step instructions to solve a problem or perform a task

Three components of an algorithm

Input, Process, Output

'Order of an algorithm' measures

Efficiency in time/resources as input size nn grows

Big-O notation describes

Upper bound of an algorithm's complexity

O(1)O(1) complexity means

Constant time (independent of input size)

O(n)O(n) complexity means

Linear time (directly proportional to input size)

O(n2)O(n^2) complexity means

Quadratic time (e.g., nested loops)

O(logn)O(\log n) complexity means

Logarithmic time (e.g., binary search)

Standard matrix multiplication (n×nn \times n) complexity

O(n3)O(n^3)

Dijkstra's algorithm complexity

O(Elogn)O(E \log n) where EE is number of edges

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

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