Back to marketplace

Algorithms (2.1)

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

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

Card preview (18)

#1
Front (Question)

What is a linear search

Back (Answer)

• searches for the target value on ANY list (ordered/unordered) in a sequence starting from the first value and going through the list until it finds the target (returns true) or the list is complete (returns false) • (goes through every value in the list)

#2
Front (Question)

What are the positives of linear searches

Back (Answer)

• Linear search is easier to understand than binary and works on any list

#3
Front (Question)

What are the negatives of linear searches

Back (Answer)

• much more inefficient when searching longer lists compared with binary search

#4
Front (Question)

What is a binary search

Back (Answer)

• Divides the list in 2, checks the midpoint to see if its the correct value, if not it will check if the value is higher or lower than midpoint, if higher it will take the right side of the list and find the midpoint and repeat the process • same process if the value is lower, but it will check the left side • only works for sorted lists • MIDPOINT = (LowestIndex + HighestIndex) DIV 2

#5
Front (Question)

What are the positives of binary searches

Back (Answer)

• Binary search is more efficient with longer lists than linear search

#6
Front (Question)

What are the negatives of binary searches

Back (Answer)

• it is harder to understand and can only work on sorted lists.

#7
Front (Question)

What is insertion sort

Back (Answer)

• simplest sorting algorithm which arrives at the final sorted list, by inserting each value in its correct place from left to right (values are inserted towards left only)

#8
Front (Question)

What are the positives of insertion sort

Back (Answer)

• Insertion sort is the simplest sorting algorithm to understand

#9
Front (Question)

What are the negatives of insertion sort

Back (Answer)

• it is very time consuming and ineffective with longer lists

#10
Front (Question)

What is bubble sort

Back (Answer)

• sorts the values by comparing two values at a time and swapping them if they are not in order. Repeat process until you have gone through the values (this is called a pass). When the required value is at the end, start back from the beginning. Only stops when a pass returns 0 swaps

#11
Front (Question)

What are the positives of bubble sort

Back (Answer)

• easier to understand than merge sort

#12
Front (Question)

What are the negatives of bubble sort

Back (Answer)

• very inefficient when sorting longer lists/datasets

#13
Front (Question)

What is a merge sort

Back (Answer)

• divide the dataset into smaller sub-sets (halving each time until you end up with individual values). Then compare subset values and re-order in correct order, merging each subset until you reach the full dataset (in order)

#14
Front (Question)

What are the positives of a merge sort

Back (Answer)

• Merge sort is more efficient than the bubble and insertion sort with longer lists

#15
Front (Question)

What are the negatives of a merge sort

Back (Answer)

• is more difficult to understand and uses more memory

#16
Front (Question)

What is an algorithm

Back (Answer)

• An Algorithm is a sequence of instructions used to solve a problem/complete a task Algorithms can be represented using two main methods: 1 Flowcharts 2 Pseudocode

#17
Front (Question)

What is decomposition

Back (Answer)

• breaking a large problem down into smaller more manageable subproblems

#18
Front (Question)

What is abstraction

Back (Answer)

• removing the unnecessary detail from a problem to leave only the important details