Homework 2 Searching Algorithms
Homework 2 Searching Algorithms
Unit 6 Algorithms
1. Algorithms are used to create, display and store images, search data for a particular item,
control robots and millions of other applications.
State what is meant by the term algorithm.
[1]
A series of steps to solve a problem or complete a task.
(b) An online game allows players to race cars. They can play against other people or
computer players.
(i) In this context, explain what is meant by decomposition. [2]
Breaking the game down into smaller tasks, like setting up the race, controlling the car,
and managing opponents.
1
Homework 1: Computational Thinking
Unit 6 Algorithms
(iii) Draw a structure diagram to show how the online racing game could be
decomposed. [4]
Game
|
------------------------
| | |
Player Opponent Race
Control AI Setup
| |
Scoring Refuel Car
3. Satnav systems are used in cars to show a driver the streets that they are driving on.
Describe how abstraction is used by the designers of such devices when creating
their maps. [4]
Simplifies real maps to show only important details for driving, like roads and street names
[Total 15 Marks]