2.1.2 Designing, creating and refining algorithms
Practise exam questionsDesigning, creating and refining algorithms — Note 2 of 7
Produce simple diagrams to show:The structure of a problem, Subsections and their links to other subsections
Structure diagrams are visual representations that show how a problem can be broken down into smaller sub-problems. They use a tree-like hierarchy where the main problem is at the top and each level below breaks it into smaller tasks. This is a direct application of decomposition and helps plan the design of a program before writing code.
Scenario
A secondary school wants a parents' evening app so that parents can arrange meetings with their child's teachers. To use the app, a parent must first log in by entering their username and their password. Once logged in, the parent can book an appointment. To do this, they choose the teacher they want to see and then choose an available time slot. Parents can also view the appointments they have booked. They can choose to see their appointments on-screen, or print them out to bring with them on the evening. Draw a structure diagram to show how the parents' evening app can be decomposed into smaller sub-problems.
Ready to test yourself?
Practise 2.1.2 questionsBack to Designing, creating and refining algorithms
Revise another OCR GCSE topic: Searching and sorting algorithms, Computational Thinking