AQA A Level · Computer Science 7517

Classification of algorithms: Practice Questions

5 multiple-choice questions marked as you go, and 4 written questions with worked solutions. All on Classification of algorithms.

9 questions21 marksFree, no account
Question 1
1 mark

In the classification of algorithms, an algorithm is described as having a complexity of \(O(n^2)\). Which of the following best describes this order of complexity?

Question 2
1 mark

Which of the following statements regarding the Halting problem is correct?

Question 3
1 mark

An algorithm is used to solve a version of the Traveling Salesperson Problem. If the problem is classified as intractable, which of the following is most likely true regarding the classification of algorithms for this problem?

Question 4
1 mark

A specific problem has an algorithm that solves it in \(O(2^n)\) time. According to the classification of algorithmic problems, how would this problem be categorized if no polynomial-time solution exists?

Question 5
1 mark

Which of the following best describes the use of heuristics in the classification of algorithms?

Question 6
2 marks

In the context of the Classification of algorithms, explain why the Halting problem is significant for the theory of computation.

Write your answer out first, then check it against the worked solution.

Question 7
3 marks

In the classification of algorithmic problems, a problem is found to have no known solution that runs in polynomial time, with the best-known solution being \(O(2^n)\). Define the specific term used to describe such a problem.

Write your answer out first, then check it against the worked solution.

Question 8
6 marks

The Halting Problem is a classic example of a non-computable problem.

(a) Describe what the Halting Problem is.
(b) Explain the significance of the Halting Problem for the theory of computation and what it tells us about the limits of what computers can do.
(c) Why can't we simply run a program to see if it stops to solve the Halting Problem?

Write your answer out first, then check it against the worked solution.

Question 9
5 marks

In the classification of algorithms, problems are categorized as tractable or intractable.

(a) Define what makes a problem 'intractable' in terms of its time complexity.
(b) If an algorithm has a complexity of \(O(2^n)\), classify the problem it solves and justify your answer.
(c) When an exact solution for an intractable problem is not feasible, what approach do programmers typically use to find a 'good enough' solution?

Write your answer out first, then check it against the worked solution.

* The content provided by thinka is generated by AI and may not always be accurate or up-to-date. Please use it as a supplementary resource and verify with official materials.

You've seen the model answer. Now get yours marked.

This page can show you how a good answer looks. It cannot tell you what your answer was missing. thinka marks your written work against the real mark scheme in about 15 seconds.

Want more questions like these? Get a fresh set on this topic, graded as you go.

Practice More