Software Development ii - Problem Decomposition Flashcards
Decomposition
Breaking down a problem into sub-problems.
Algorithm
A precise set of instructions in order to complete a certain task.
Subroutine
A set of instructions designed to perform a frequently used operation within the program.
Structure diagram / Hierarchy chart
Top level: whole program / project
Next level: major tasks, stages, ( normally become source code files
Bottom level: procedures/functions, ideally following the discrete Input->Process->Output pattern.
Function
Used to calculate a result from given inputs
Procedure
Used to perform a certain task in order
Trace Table
A mechanism of ‘dry running’ an algorithm at the design stage before you actually code it to check it is going to behave as planned.
Each column : a vriable
Each row : different stages of the algorithm.