Lesson 3D.1.1
3D.1.1 Algorithms and the order of an algorithm Quiz: Pearson Edexcel Further Maths, Unit 35
20 questions
In partnership with Revision Ninja
Lesson 3D.1.1, Algorithms and the order of an algorithm: 20 multiple choice questions for the Pearson Edexcel Further Maths (9FM0), Unit 35: Algorithms and graph theory, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What does the order of an algorithm describe?
- how its running time grows with the size of the problem
- the number of lines of code it contains
- the amount of memory it uses only
- the exact time it takes on one computer
-
For algorithms on graphs, what is the size of a problem usually taken to be?
- the total weight of all edges
- the number of vertices
- the number of edges only
- the number of colours needed
-
In a list of N items with N odd, the middle item is in position
- N/2
- (N-1)/2
- N+1
- (N+1)/2
-
Bubble sort has order
- n log n
- 2^n
- n
- n^2
-
How is the efficiency of an algorithm usually measured?
- by the colour of the output
- by the number of operations it must carry out
- by the programming language used
- by the number of inputs only
-
The degree or valency of a vertex is
- the number of paths through it
- the number of edges incident to it
- the number of vertices adjacent to all others
- the sum of the weights of its edges
-
A path in a graph is a finite sequence of edges in which
- the start and end vertices coincide
- every edge is used exactly once
- every vertex is used
- no vertex appears more than once
-
An algorithm takes time proportional to n^2. If the problem size doubles, by roughly what factor does the running time increase?
- 8 times
- 16 times
- 2 times
- 4 times
-
A graph has vertex degrees 4, 3, 3, 2 and 2. How many edges does it have?
- 10
- 6
- 14
- 7
-
Which degree sequence cannot belong to any graph?
- 4, 3, 3
- 2, 2, 2
- 1, 1, 2
- 3, 3, 3
-
How many edges does the complete graph K5 have?
- 10
- 5
- 20
- 25
-
An algorithm needs T(n) = 3n^2 + 5n operations for input size n. What is its order?
- O(n^2)
- O(n)
- O(n^3)
- O(log n)
-
A list has 6 items. In which position is the middle item, using the usual definition for an even-length list?
- 6th
- 4th
- 3.5th
- 3rd
-
Bubble sort is applied to a list of 4 items. How many comparisons are made in the first pass?
- 4
- 6
- 3
- 2
-
Algorithm A needs n^2 operations and algorithm B needs 100n operations. For n = 10, which takes fewer operations, and how many does it need?
- B, with 1000 operations
- B, with 100 operations
- A, with 1000 operations
- A, with 100 operations
-
For which values of n does algorithm B (100n operations) need fewer operations than algorithm A (n^2 operations)?
- n > 100
- n < 100
- n > 1000
- n > 10
-
A tree has 8 vertices. How many edges does it have?
- 6
- 8
- 7
- 16
-
Which feature rules out two graphs being isomorphic?
- one is drawn with crossing edges
- they have different edge labels
- they have different vertex names
- their degree sequences differ
-
Why is the order of an algorithm more useful than timing it on one computer?
- It gives the exact time on every computer
- It counts only comparisons
- It measures only memory use
- It describes how running time grows with problem size, independent of hardware
-
A bubble sort of 20 items needs n(n - 1)/2 comparisons in the worst case. How many comparisons is that?
- 200
- 190
- 380
- 400
Related quizzes
- Bin packing, sorting, Eulerian graphs and planarity Quiz · 3D.1.2-3D.1.4 · 20 questions
- Proof by mathematical induction Quiz · 1.1 · 20 questions
- Quadratic equations and complex arithmetic Quiz · 2.1-2.2 · 20 questions
- Matrix arithmetic and inverses Quiz · 3.1-3.2 · 20 questions
- Expectation of discrete random variables Quiz · 3B.1.1 · 20 questions
- The Poisson distribution Quiz · 3B.2.1 · 20 questions
- Geometric and negative binomial models Quiz · 3B.3.1 · 20 questions
- Hypothesis tests for the Poisson distribution Quiz · 3B.4.1 · 20 questions
- Applying the Central Limit Theorem Quiz · 3B.5.1 · 20 questions
- Goodness of fit tests for discrete distributions Quiz · 3B.6.1 · 20 questions