← Back to Dashboard

2.3 Algorithms

A-Level Computer Science

Fill in the blanks with the correct words. Click "Check Answer" to see if you're right!

Term: Binary search

Definition:

starts from the calculated . If the item at the midpoint is the item to be found it . If the item is not found, of the data set that cannot contain the item is discarded. Repeats until the data item is found or no items are left to check the data set must be first. Time efficiency of O log n which. Scales very well.
No attempts
Term: Linear search

Definition:

starts from the item in the data set. Each item of data is checked one at a time until the item is or the end of the data set is reached. The data set does not need to be sorted first. Time of O n. Does not scales as well as binary search.
No attempts
Term: Bubble sort

Definition:

Each pair of items in the data set are compared. If the two items are in the wrong order they are . The algorithm until no swaps are made. Time complexity of O n^2 (Polynomial).
No attempts
Term: Insertion sort

Definition:

Partitions the data into sorted and . The correct position of an item is found by comparing each item in the unsorted partition to all the other items in the sorted partition. All the items at the insertion position and above are up by one position.
No attempts
Term: Merge Sort

Definition:

step: the data set is split into lists of 1 item merge step: items in two adjacent lists are combined to create one new list maintaining the correct order of items as they are added merge step: the algorithm merging lists until only one sorted list remains. Linearithmic (O n log n)
No attempts
Term: Quick Sort

Definition:

Choose a . Compare each element to the pivot… Put items < pivot in the left sublist ... Put items > pivot in the right sublist. Choose a pivot in each sublist And until all sublists are sorted. Linearithmic) O n log n). Divide and Conquer.
No attempts
Term: A* algorithm

Definition:

Finds the path between two nodes on a graph. Uses a value to optimise performance.
No attempts
Term: Big O notation

Definition:

Describes the time or complexity of an algorithm. How the algorithm will perform as the data set gets bigger. O1, On, On^2, O2^n, Log N, N log N
No attempts
Term: Dijkstra’s shortest path

Definition:

An algorithm used on a . To find the path between a start node and all other nodes.
No attempts
Term: O(1)

Definition:

Constant. The time needed to perform an algorithm remains constant as the data set . No memory space needed.
No attempts
Term: O(n)

Definition:

Linear. The time needed to perform an algorithm at the same as the size of the data set. The amount of memory required increases at the same rate as the size of the data set.
No attempts
Term: O (log n)

Definition:

Logarithmic. The time needed to perform an algorithm increases at a rate as the data set grows, because the algorithm repeatedly the data size.
No attempts
Term: O(n^2)

Definition:

Polynomial. The time needed to perform an algorithm grows at a rate as the data set increases, usually because it involves loops. The amount of extra memory required grows quadratically as the data set increases, usually because uses a n x m matrix structure.
No attempts
Term: O(2^n)

Definition:

Exponential. The time needed to perform an algorithm with each additional in the input. The amount of extra memory required doubles with every additional input element.
No attempts
Term: Heuristic value

Definition:

Used in A* algorithm. An of how close a node is to the providing a guided “best guess” of the remaining cost so the search explores the most promising paths first.
No attempts