Thinking Procedurally Flashcards
1
Q
What are the Elements of Thinking Procedurally
A
- Decomposition
- Order of Steps
- Components of a Process
2
Q
What is Problem Decomposition
A
A large, complex problem is continually broken down into smaller subproblems which can be solved more easily
3
Q
What is a Top-Down Design
A
- You start with a big problem and break it down into smaller and smaller problems
4
Q
What is the aim of Top-Down Designs
A
- Keep splitting problems into subproblems until each subproblem can be represented as a single task
- Each task can then be solved and developed as a subroutine by a different person
- Once programmed, subroutines can also be tested separately, before being brought together
5
Q
How do you identify the components of a solution
A
- In order to identify the components of the solution, each programmer must evaluate the component of the problem allocated to them and assess how it can best be solved
- For example through a procedure, function or database search
6
Q
How do you find the order of steps needed to solve a problem
A
- Some programs might require certain inputs to be entered by the user before the processing can be carried out
- Some inputs may require preconditions to be checked before hand
- Some subroutines may be able to be executed simultaneously within a program, and programmers must identify where this is possible by looking at the required inputs