Back to marketplace

Algorithms

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

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

Card preview (16)

#1
Front (Question)

Stacks

Back (Answer)

• first in, last out • uses a pointer that points to the element at the top of the list PEEK - to look at the top item without popping it off POP - removing the top item of the stack PUSH - to add an item to the top of the stack

#2
Front (Question)

Queues

Back (Answer)

• first in, first out • uses two pointers for the front and back. The front holds the first element, and the back stores the next available space ENQUEUE - adds to the end of the queue DEQUEUE - removes the first item

#3
Front (Question)

Algorithm definition

Back (Answer)

A series of steps that completes a task

#4
Front (Question)

Linked list

Back (Answer)

A dynamic/ data structure Each node item consists of data and a pointer the pointer gives the location of the next node

#5
Front (Question)

Trees

Back (Answer)

Formed from nodes and edges that can be traversed.

#6
Front (Question)

Breadth first search

Back (Answer)

(row by row)

#7
Front (Question)

Depth first search

Back (Answer)

(column by column) v

#8
Front (Question)

Pre-order Traversal

Back (Answer)

Marker is on the left root, left leaf, right leaf

#9
Front (Question)

In-order traversal

Back (Answer)

the marker is below the node left leaf, root, right leaf

#10
Front (Question)

Post-order traversal

Back (Answer)

the marker is on the right left node, root, right node

#11
Front (Question)

Graphs

Back (Answer)

Set of vertices/ nodes, connected by edges/arcs Directed graph: edges can be traversed in both directions Weighted graph: each arc has a cost/ value attached to it.

#12
Front (Question)

Binary Search

Back (Answer)

A O(log(n)) algorithm to search a sorted list for a particular item by repeatedly halving the sublist which contains the item

#13
Front (Question)

Bubble sort

Back (Answer)

A O(n^2) sorting algorithm that iterates through a list comparing each element to its successor and swapping elements if the successor is greater than the current element. This is repeated until no more swaps can be made.

#14
Front (Question)

Linear search

Back (Answer)

A O(n) algorithm to search a list for a particular item by iterating through the list and checking each element until the required item is located, or the end of the list is reached.

#15
Front (Question)

Merge sort

Back (Answer)

A O(n log(n)) divide and conquer sorting algorithm that recursively halves the list into sublists until all sublists are length of 1 item. The sublists are then merged back together and sorted.

#16
Front (Question)

Quick sort

Back (Answer)

A O(n log(n)) sorting algorithm similar to merge sort, but relies on choosing a pivot element whenever the list is split. Elements greater than the pivot go into one sublist.