7 Algorithm design and problem solving Flashcards
(22 cards)
Stages of the program development life cycle (4)
analysis, design, coding, and testing
Analysis
abstraction, decomposition of the problem, identification of the problem and requirements
Design
decomposition, structure diagrams, flowcharts, pseudocode
Coding
writing program code and iterative testing
Testing
testing program code with the use of test data
What can a problem be decomposed into (4)
inputs
processes
outputs
storage
What are the methods to design and construct a solution to a problem (3)
structure diagrams
flowcharts
pseudocode
What are the standard methods of solution (5)
linear search
bubble sort
totalling
counting
finding maximum, minimum, and average values
What are the types of validation checks (6)
range check
length check
type check
presence check
format check
check digit
What is a range check
checks that the value of a number is between an upper value and a lower vcalue
What is a length check
checks that the data entered is a reasonable number or an exact number of characters
What is a type check
checks that the data entered is of a given data type
What is a presence check
checks to ensure that some data has been entered and the value has not been left blank
What is a format check
checks that the characters entered conform to a pre-defined pattern
What are the types of verification checks (2)
visual check
double entry check
What is a visual check
a manual check to ensure the data on the screen is the same as the form
What is a double entry check
the data is entered twice and compared to ensure both entries are the same
What are the types of test data (4)
normal
abnormal
extreme
boundary
Normal data meaning
test data that is accepted and the algorithm is expected to work with
Abnormal data meaning
test data that is rejected by the algorithm as not suitable
Boundary data meaning
at each boundary two values are required; one value is accepted and the other value is rejected
Extreme data meaning
the largest and smallest values that normal data can take