Back to marketplace

2.3 Algorithms

No description yet. This curated deck is ready for daily study.

Total cards: 14•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (14)

#1
Front (Question)

Big-O notation

Back (Answer)

Used to express the time complexity or performance of an algorithm

#2
Front (Question)

O(1) (constant line)

Back (Answer)

An algorithm that takes constant time to execute

#3
Front (Question)

O(n) (linear line)

Back (Answer)

An algorithm that’s performance will grow in proportion to the size of the data

#4
Front (Question)

O(n²) (polynomial/quadratic time)

Back (Answer)

An algorithm whose performance is directly proportional to the square of the size of the data set

#5
Front (Question)

O(2n) (Exponential time)

Back (Answer)

An algorithm where the time taken doubles with every additional item added

#6
Front (Question)

O(log n) (Logarithmic time)

Back (Answer)

An algorithm that will grow very slowly as the size of the data set increases

#7
Front (Question)

Linear search

Back (Answer)

Where data items are searched one by one until the required one is found or the end of the list is reached

#8
Front (Question)

Binary search

Back (Answer)

The items must be sorted. Repeatedly divided the data list in half until there is only one data item left

#9
Front (Question)

Bubble sort

Back (Answer)

Comparing items in a list and swapping them into size order

#10
Front (Question)

Insertion sort

Back (Answer)

Sorts one data item at a time

#11
Front (Question)

Merge sort

Back (Answer)

Uses a divide and conquer approach. The list is divided in half repeatedly until there are sublists of only 1 element. It is then merged together into larger sublists until it is recombined into a single sorted list

#12
Front (Question)

Quick sort

Back (Answer)

Dividing the sequence into to 2 sublists around an element called the pivot and organises all smaller values below and larger values above. This repeats until sorted

#13
Front (Question)

Dijkstra’s shortest path

Back (Answer)

An algorithm designed to find the shortest path between one particular start node and another in a weighted graph

#14
Front (Question)

A* algorithm

Back (Answer)

Follows Dijkstra’s algorithm but uses heuristics that biases the search toward the target