Define ‘Abstraction’ as a computational thinking technique.
The process of removing or hiding unnecessary details from a problem to focus on the important details in order to reduce complexity.
Define ‘Decomposition’ as a computational thinking technique.
Breaking a complex problem down into smaller, more manageable sub-problems.
State a mandatory pre-requisite for a ‘Binary Search’ algorithm to work.
The data set must be sorted or in order before the search can begin.
Describe the steps of a ‘Binary Search’ on a sorted list.
Select the middle value and compare it to the target; if the target is larger, discard the left half; if smaller, discard the right half; repeat on the remaining half until the item is found or the list is empty.
Describe the steps a ‘Linear Search’ follows to find a value.
The algorithm starts at the first value and checks each value one by one in order until the target is found or the end of the list is reached.
Explain one advantage of a ‘Merge Sort’ compared to a ‘Bubble Sort’.
Merge sort is faster and more efficient for large or highly unordered lists and has a consistent running time regardless of the original order.