

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of key concepts related to algorithms in computer science, including definitions of terms such as algorithm, decomposition, pseudocode, abstraction, and algorithm efficiency. It also covers various sorting algorithms like bubble sort, merge sort, and insertion sort, as well as search algorithms like linear search and binary search. Additionally, it discusses the principles of structured programming, including the use of functions, meaningful variable naming, and the advantages of this approach. This document could be useful for students preparing for the aqa gcse computer science exam, as it covers fundamental topics that are likely to be assessed.
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Algorithmcorrect answerA set of steps to complete a task / reach a goal Decompositioncorrect answerBreaking down a problem into smaller (more solveable) parts Pseudocodecorrect answerStructured English words which describe the steps in an algorithm. Abstractioncorrect answerRemoving the complexity so that what remains is all that is needed to solve the problem. Algorithm Efficiencycorrect answerThe length of time it takes to run an algorithm Bubble Sortcorrect answerA sorting algorithm. Each item in a list is compared to the one next to it. If first item is greater - swap places. Compare next items - until end of list is reached. Repeat the process until the array is sorted. Merge Sortcorrect answerA sorting algorithm that splits an array into smaller and smaller sections. then merges each section back together by comparing the smallest two items to be merged. Insertion Sortcorrect answerA sorting algorithm that starts at item 1 of a list, removes it, and inserts it in the correct place by using a second list of the same size. Once the end of the array is reached, item 0 is inserted into the correct position. Linear searchcorrect answerChecking each item in a list to see if it is what you are looking for. Suitable for an unsorted list. For a list of n items, it takes an average of n/2 comparisons to find the item.
Binary searchcorrect answerUses "divide and conquer" method for quickly finding a target value in a sorted array. Checks the middle item in a list for a value. If not found, discard half the list, check the middle value. Repeat until found or remaining list is empty. Structured programmingcorrect answerTechniques for developing programs: Writing re-useable functions Giving functions / variables meaningful names Passing parameters (values) to the function Functions return values Variablecorrect answerA value that changes when a program runs. Constantcorrect answerA value that does not change when a program runs. Advantages of structured programmingcorrect answerPrograms easier to read Easier to test / find / correct errors Can reuse code Easy to add in new features