From Paper 1 (on-screen programming, practice version)
34 marks
State the time complexity in Big-O notation of a linear search, a binary search and a bubble sort, and explain why binary search is more efficient for large data sets.
From Paper 1 (on-screen programming, practice version)
56 marks
A weighted undirected graph has edges A–B 4, A–C 2, B–C 1, B–D 5, C–D 8, C–E 10, D–E 2, D–F 6, E–F 3. Use Dijkstra's algorithm to find the shortest distance from A to every other node and the shortest path from A to F.
From Paper 1 (on-screen programming, practice version)
This paper is written by Plasmo in the style of the AQA A-Level Computer Science exam. It is not a past paper and is not produced or endorsed by the exam board.